Jump to content
  • 0

Kick from a map


Frozie

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  11/26/16
  • Last Seen:  

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

  • 1

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


-	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;
}

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  11/26/16
  • Last Seen:  

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 by Frozie
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  11/26/16
  • Last Seen:  

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 by Frozie
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  11/26/16
  • Last Seen:  

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

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  545
  • Reputation:   220
  • Joined:  03/01/13
  • Last Seen:  

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 by Azura Skyy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...