Savepoint

xeNium

New member
Messages
48
Points
0
  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

 
replace  this line

savepoint "prontera",156,199;

with

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

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

 
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;

 }
 
Last edited by a moderator:
Back
Top