Jump to content
  • 0
nuna

Hello may i request if you warp on payon then you go back to your savepoint

Question

Hello may i request if you warp on payon then you go back to your savepoint thank you!!!

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

add this mapflag: loadevent

 

then do something like:

OnPCLoadMapEvent:
    if (strcharinfo(PC_MAP) == "moc_fild22" && !@auth_moc_fild22) {
        warp("SavePoint", 0, 0); // player is not authorized to be on moc_fild22
    }
    end;

 

and in the npc that warps the player to that map you'd just set @auth_moc_fild22 to true and warp to moc_fild22

Thanks a lot!!!!

Share this post


Link to post
Share on other sites
  • 0

Not sure I understand what you're asking for.. You want the player to be teleported to their savepoint when they pay some amount of zeny?

 

If so you would do the following:

if (Zeny >= .@cost) {
    Zeny -= .@cost;
    warp("SavePoint", 0, 0);
}

With .@cost being the amount of zeny to substract

Share this post


Link to post
Share on other sites
  • 0

Not sure I understand what you're asking for.. You want the player to be teleported to their savepoint when they pay some amount of zeny?

 

If so you would do the following:

if (Zeny >= .@cost) {
    Zeny -= .@cost;
    warp("SavePoint", 0, 0);
}

With .@cost being the amount of zeny to substract

 

no sir haha but thanks anyway. I want the player all player to be restricted in payon : Just example. lets make it moc_fild22 

i want moc_fild22 to be unwarpable or if anyplayers tries to warp or go to moc_fild22 then they will automatically go back to their savepoints.

Share this post


Link to post
Share on other sites
  • 0

add this mapflag: loadevent

 

then do something like:

OnPCLoadMapEvent:
    if (strcharinfo(PC_MAP) == "moc_fild22" && !@auth_moc_fild22) {
        warp("SavePoint", 0, 0); // player is not authorized to be on moc_fild22
    }
    end;

 

and in the npc that warps the player to that map you'd just set @auth_moc_fild22 to true and warp to moc_fild22

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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