Angelmelody 221 Posted October 13, 2013 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 Does anyone know how to fix the crash? Quote Share this post Link to post Share on other sites
0 Yommy 265 Posted October 14, 2013 - script toastywarperbase -1,{ //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 1 Angelmelody reacted to this Quote Share this post Link to post Share on other sites
0 hannicaldummy 2 Posted October 14, 2013 (edited) 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; Edited October 14, 2013 by hannicaldummy Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted October 14, 2013 (edited) 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 Edited October 14, 2013 by Angelmelody Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted October 14, 2013 - script toastywarperbase -1,{ //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 Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted August 30, 2014 (edited) 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 Edited August 30, 2014 by Angelmelody Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted August 30, 2014 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- 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 1 Angelmelody reacted to this Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted August 30, 2014 (edited) 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- 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. . Edited August 31, 2014 by Angelmelody Quote Share this post Link to post Share on other sites
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
Does anyone know how to fix the crash?
Share this post
Link to post
Share on other sites