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

nuna

New member
Messages
136
Points
0
Emulator
Hello may i request if you warp on payon then you go back to your savepoint thank you!!!

 
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

 
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.

 
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

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

 
Back
Top