Jump to content
  • 0
Sign in to follow this  
Angelmelody

warp portal causes map server crash

Question

7 answers to this question

Recommended Posts

  • 0
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 by hannicaldummy

Share this post


Link to post
Share on other sites
  • 0

 

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 by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

-       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

Share this post


Link to post
Share on other sites
  • 0

 

-       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  :)

Share this post


Link to post
Share on other sites
  • 0

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 by Angelmelody

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

 

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. :D .

Edited by Angelmelody

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.