Hello, can anyone help me fix this script? I'm trying to improve this script which I got from SOURCE by adding base level limits. For example, only players within level 85-115 are allowed to enter the map. A player who doesn't meet the requirement will be warp to his save points.
Thanks in advance
Original:
- script Sample -1,{
OnPCLoadMapEvent:
getmapxy [email protected]$,[email protected],[email protected],0;
if ( [email protected]$ == "guild_vs1" && BaseLevel != 99 ) {
dispbottom "You cannot enter this map unless you are level 99";
sleep2 3000;
warp "SavePoint",0,0;
}
end;
}
guild_vs1 mapflag loadevent
Edited:
- script Sample -1,{
OnPCLoadMapEvent:
getmapxy [email protected]$,[email protected],[email protected],0;
if ( [email protected]$ == "guild_vs1" && BaseLevel < 85 || BaseLevel > 115 ) {
dispbottom "Sorry but you must be within level [85-115] to enter.";
sleep2 3000;
warp "SavePoint",0,0;
}
end;
}
guild_vs1 mapflag loadevent
Hello, can anyone help me fix this script? I'm trying to improve this script which I got from SOURCE by adding base level limits. For example, only players within level 85-115 are allowed to enter the map. A player who doesn't meet the requirement will be warp to his save points.
Thanks in advance
Original:
- script Sample -1,{ OnPCLoadMapEvent: getmapxy [email protected]$,[email protected],[email protected],0; if ( [email protected]$ == "guild_vs1" && BaseLevel != 99 ) { dispbottom "You cannot enter this map unless you are level 99"; sleep2 3000; warp "SavePoint",0,0; } end; } guild_vs1 mapflag loadevent
Edited:
- script Sample -1,{ OnPCLoadMapEvent: getmapxy [email protected]$,[email protected],[email protected],0; if ( [email protected]$ == "guild_vs1" && BaseLevel < 85 || BaseLevel > 115 ) { dispbottom "Sorry but you must be within level [85-115] to enter."; sleep2 3000; warp "SavePoint",0,0; } end; } guild_vs1 mapflag loadevent
Link to comment
Share on other sites