warp portal causes map server crash

Angelmelody

(\ /) ( . .)
Messages
772
Points
0
Age
32
Location
new_1-1,53,111
Github
Angelmelody
Emulator
http://pastebin.com/KzxHKQFR

I want warp npc to cast  a warp portal , so commented out  line  311 and add  line  312

,but Unfortunately  it crashes my map server
default_mellow.png


Does anyone know how to fix the crash?

 
Try change this:
 
                        //warp .@map$, .@x, .@y;
                        warpportal 152, 182,.@map$,.@x,.@y;
 
For this:
 
                        //warp .@map$, .@x, .@y;
                        warp 152, 182,.@map$,.@x,.@y;
 
 
Or if not work:


                        warpportal .@map$,152,182;
 or


                        warp .@map$,152,182;




 
Last edited by a moderator:
Try change this:
 
                        //warp .@map$, .@x, .@y;
                        warpportal 152, 182,.@map$,.@x,.@y;
 
For this:
 
                        //warp .@map$, .@x, .@y;
                        warp 152, 182,.@map$,.@x,.@y;
 
 
Or if not work:


                        warpportal .@map$,152,182;
 or


                        warp .@map$,152,182;
tested , not working  , I don't think  your  syntax  of  warpportal script command  compatible  with  hercules 

 
Last edited by a moderator:
- script toastywarperbase -1,{
Code:
//Will create a warp portal on the NPC's map at 150,150 leading to prontera, coords 150,180.warpPortal 150,150,"prontera",150,180;
the npc is a floating npc, its map is locations is just  -

i guess you could give it a location, which would make your original script work

 
- script toastywarperbase -1,{
Code:
//Will create a warp portal on the NPC's map at 150,150 leading to prontera, coords 150,180.warpPortal 150,150,"prontera",150,180;
the npc is a floating npc, its map is locations is just  -

i guess you could give it a location, which would make your original script work
thank you 
default_smile.png


 
Here is working warper npc with warpportal style.
http://pastebin.com/5FGTTWgS

,but how to I duplicate this warp npc?

I try to duplicate  npc toastywarperbase  to new one  in geffen.

Unfortunately, I was failed and got this warning when click new npc in geffen.

[Warning]: npc_scriptcont: failed npc->checknear test.

here is my modification diff ( line 69~71 , line 312~314 , line 327~330 and line 1258~1267)
http://pastebin.com/YftnCjDW

 
Last edited by a moderator:
prontera,155,185,5 script abcde#1 100,{Onaaa: mes "testing ..."; next; mes "let's go !"; close2; getmapxy .@map$, .@x, .@y, 1; warpportal .@x+2, .@y+2, "yuno",157,51; end;}geffen,119,59,5 script abcde#2 100,{ doevent "abcde#1::Onaaa"; end;}change into
Code:
-	script	abcde	-1,{	mes "testing ...";	next;	mes "let's go !";	close2;	getmapxy .@map$, .@x, .@y, 1;	warpportal .@x+2, .@y+2, "yuno",157,51;	end;}prontera,155,185,5	duplicate(abcde)	abcde#1	100geffen,119,59,5	duplicate(abcde)	abcde#2	100
..

I hope you get what I mean

 
prontera,155,185,5 script abcde#1 100,{Onaaa: mes "testing ..."; next; mes "let's go !"; close2; getmapxy .@map$, .@x, .@y, 1; warpportal .@x+2, .@y+2, "yuno",157,51; end;}geffen,119,59,5 script abcde#2 100,{ doevent "abcde#1::Onaaa"; end;}change into
Code:
-	script	abcde	-1,{	mes "testing ...";	next;	mes "let's go !";	close2;	getmapxy .@map$, .@x, .@y, 1;	warpportal .@x+2, .@y+2, "yuno",157,51;	end;}prontera,155,185,5	duplicate(abcde)	abcde#1	100geffen,119,59,5	duplicate(abcde)	abcde#2	100
..

I hope you get what I mean
Hum Hum,I got what you mean , the warper npc now is working fine for me ,thank you , you are my savior.
default_biggrin.png
.

 
Last edited by a moderator:
Back
Top