Jump to content
  • 0
Sign in to follow this  
xeNium

Savepoint

Question

 

  case 1:

 cutin "kafra_06",2;

 savepoint "prontera",156,199;

 callfunc "F_KafEnd",0,1,"in the city of Prontera";

   close;

 

Is there a way, I can savepoint exactly current location of the player when he execute the case 1? I don't like the specific savepoint like savepoint "prontera",156,199 because I am using duplicate NPC, so it will be weird if they execute the case 1 in Alberta but their savepoint is in Prontera

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

replace  this line

savepoint "prontera",156,199;

 

with

getmapxy .@m$, .@x, .@y, 0;

savepoint .@m$,.@x,.@y;

 

Okay, here we go for the conclusion

 

 

  case 1:

 cutin "kafra_06",2;

 getmapxy .@m$, .@x, .@y, 0;

 next;

 mes .n$;

 mes "Current Location:";

 mes "[ ^FF0000"+.@m$+" ^000000(^3366CC"+.@x+"^000000,^3366CC"+.@y+"^000000) ]";

 next;

 if(select("Save respawn point:Cancel") == 2) {

   mes "We, here at LegendaryRO Helper";

   mes "Corporation, are always endeavoring to provide you with the best services. We hope that we meet your adventuring needs and standards of excellence.";

   cutin "", 255;

   close;

 }

 else {

   mes "You have reset your respawn point to ^FF0000"+.@m$+"^000000!";

   savepoint .@m$,.@x,.@y;

   cutin "", 255;

   close;

 }

Edited by xeNium

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.