Frozie Posted November 28, 2016 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 11/26/16 Last Seen: April 13, 2020 Share Posted November 28, 2016 is it possible to kick a player at certain level ,ex: lvl 150 from a certain map? if yes, how can i do that? Quote Link to comment Share on other sites More sharing options...
-1 Azura Skyy Posted November 28, 2016 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 545 Reputation: 221 Joined: 03/01/13 Last Seen: January 2, 2023 Share Posted November 28, 2016 (edited) You could use OnPCBaseLvUpEvent, do a check for, BaseLevel, and warp the user wherever you'd like. With this example, nothing happens if you aren't hitting level 150 OnPCBaseLvUpEvent: if (BaseLevel > 149) { warp "prontera", 150,150; close; } end; Hope this helps, ~Azura Skyy Edited November 28, 2016 by Azura Skyy Quote Link to comment Share on other sites More sharing options...
1 Emistry Posted November 28, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 28, 2016 - script baselvl_kick_map -1,{ OnInit: .max_level = 150; .map$ = "prontera"; setmapflag .map$,mf_loadevent; end; OnPCLoadMapEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "SavePoint",0,0; } end; } 1 Quote Link to comment Share on other sites More sharing options...
0 Frozie Posted November 28, 2016 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 11/26/16 Last Seen: April 13, 2020 Author Share Posted November 28, 2016 (edited) 8 minutes ago, Azura Skyy said: You could use OnPCBaseLvUpEvent, do a check for, BaseLevel, and warp the user wherever you'd like. With this example, nothing happens if you aren't hitting level 150 OnPCBaseLvUpEvent: if (BaseLevel > 149) { warp "prontera", 150,150; close; } end; Hope this helps, ~Azura Skyy - script baselvl_kick_map -1,{ OnInit: .max_level = 150; .map$ = "prontera"; setmapflag .map$,mf_loadevent; end; OnPCLoadMapEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "SavePoint",0,0; } end; } thank you. i believe that will solve my problem Edited November 28, 2016 by Frozie Quote Link to comment Share on other sites More sharing options...
0 Azura Skyy Posted November 28, 2016 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 545 Reputation: 221 Joined: 03/01/13 Last Seen: January 2, 2023 Share Posted November 28, 2016 Just now, Frozie said: thank you. i believe that will solve my problem I was in the process of correcting mine. Mine would warp you to specific coordinates anytime you hit level 150 regardless of map. Refer to Emistry's post. Regards, ~Azura Skyy Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted November 28, 2016 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 28, 2016 2 minutes ago, Azura Skyy said: would warp you to specific coordinates anytime you hit level 150 regardless of map. yup, but they can re-enter the map, but your script also affect players in other map since it doesnt have the map checking. anyway, combination of OnPCBaseLvUpEvent + OnPCLoadMapEvent = ideal solution. Quote Link to comment Share on other sites More sharing options...
0 Frozie Posted November 28, 2016 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 11/26/16 Last Seen: April 13, 2020 Author Share Posted November 28, 2016 (edited) 39 minutes ago, Emistry said: yup, but they can re-enter the map, but your script also affect players in other map since it doesnt have the map checking. anyway, combination of OnPCBaseLvUpEvent + OnPCLoadMapEvent = ideal solution. umm.. i alr try the script and the result is when my char level up to 150, it didnt kick me out of the map instantly.. instead i must relog first for it to kick me out of the map.. --------------------------------------- woot i got the solution.. i try to add this to emistry script and it works.. i got kick when i reach 150 and i cant get in there again.. OnPCBaseLvUpEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "SavePoint",0,0; } end; Edited November 28, 2016 by Frozie Quote Link to comment Share on other sites More sharing options...
0 Neffletics Posted November 28, 2016 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 149 Reputation: 24 Joined: 02/11/16 Last Seen: May 16, 2023 Share Posted November 28, 2016 56 minutes ago, Frozie said: woot i got the solution.. i try to add this to emistry script and it works.. i got kick when i reach 150 and i cant get in there again.. OnPCBaseLvUpEvent: if ( strcharinfo(3) == .map$ && BaseLevel >= .max_level ) { warp "SavePoint",0,0; } end; You have to keep Emistry's OnPCLoadMapEvent: to accommodate the players who are already level 150 and just happened to be there suddenly. Quote Link to comment Share on other sites More sharing options...
0 Frozie Posted November 28, 2016 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 4 Reputation: 0 Joined: 11/26/16 Last Seen: April 13, 2020 Author Share Posted November 28, 2016 Just now, Neffletics said: You have to keep Emistry's OnPCLoadMapEvent: to accommodate the players who are already level 150 and just happened to be there suddenly. yea i keep that too, i only add that OnPCBaseLvUpEvent part Quote Link to comment Share on other sites More sharing options...
Question
Frozie
is it possible to kick a player at certain level ,ex: lvl 150 from a certain map?
if yes, how can i do that?
Link to comment
Share on other sites
8 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.