Jump to content
  • 0
nuna

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

Question

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

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

×
×
  • Create New...

Important Information

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