letstry Posted January 28, 2017 Share Posted January 28, 2017 (edited) Hello rathena, I would like to request a script wherein if a player has entered that certain map, he or she will be kicked out if the player's current level is more than 100. I am guessing that it is a OnPCLoadMapEvent: script. Edited January 28, 2017 by letstry Quote Link to comment Share on other sites More sharing options...
0 srhmike Posted January 28, 2017 Share Posted January 28, 2017 - script baselvl_kick_map -1,{ OnInit: .max_level = 35; .map$ = "new_zone01"; setmapflag .map$,mf_loadevent; end; OnPCLoadMapEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "prontera",150,150; } end; OnPCBaseLvUpEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "prontera",150,150; } end; } 2 Quote Link to comment Share on other sites More sharing options...
0 letstry Posted January 29, 2017 Author Share Posted January 29, 2017 On 28/01/2017 at 4:21 PM, srhmike said: - script baselvl_kick_map -1,{ OnInit: .max_level = 35; .map$ = "new_zone01"; setmapflag .map$,mf_loadevent; end; OnPCLoadMapEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "prontera",150,150; } end; OnPCBaseLvUpEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "prontera",150,150; } end; } I'll try this on my server maintenance and will update you on this. By the way, I'm using eathena SVN. I hope this also works on my server. Thank you so much ! Quote Link to comment Share on other sites More sharing options...
Hello rathena,
I would like to request a script wherein if a player has entered that certain map, he or she will be kicked out if the player's current level is more than 100.
I am guessing that it is a OnPCLoadMapEvent: script.
Edited by letstryLink to comment
Share on other sites