Jump to content
  • 0

Autokick a player


letstry

Question


  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

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

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  261
  • Reputation:   53
  • Joined:  11/11/16
  • Last Seen:  

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

 

  • Upvote 2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  87
  • Topics Per Day:  0.02
  • Content Count:  219
  • Reputation:   0
  • Joined:  05/03/12
  • Last Seen:  

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 !

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...