no sir haha but thanks anyway. I want the player all player to be restricted in payon : Just example. lets make it moc_fild22Not 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
Thanks a lot!!!!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
We use essential cookies to make this site work, and optional cookies to enhance your experience.