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 .@map$,.@x,.@y,0;
if ( .@map$ == "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 .@map$,.@x,.@y,0;
if ( .@map$ == "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
Question
ItsRas
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 .@map$,.@x,.@y,0; if ( .@map$ == "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 .@map$,.@x,.@y,0; if ( .@map$ == "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
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.