Jump to content
  • 0

Script for Auto-kick from map if GM lv >1


Rivers

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

Good day,

I'm having some troubles finding a resource here for sending a player back to @go 0 (or their saved locaed) when entering a map. I tried using the Mapflags built into the game, but players can still @warp to my GM maps even with nowarp/nowarpto enabled. Anyone have a simple script to remove players from a specified map? I'd appreciate it greatly.

Edited by Rivers
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

7 hours ago, Rivers said:

I just checked, but it wasn't under Lv 0. So what I did was add any_warp: false and it also did not resolved my problem.

Makes me confused why the mapflag nowarpto didn't workout. (it should be)

A little trick would be via scripting.

Try my script: Restriction

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

3 hours ago, Rivers said:

Good day,

I'm having some troubles finding a resource here for sending a player back to @go 0 (or their saved locaed) when entering a map. I tried using the Mapflags built into the game, but players can still @warp to my GM maps even with nowarp/nowarpto enabled. Anyone have a simple script to remove players from a specified map? I'd appreciate it greatly.

This might help. You just need to modify it.

 

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Here

 

-	script	InvisibleOnLoadEvent	-1,{


OnPCLoadMap:
			mes "This is me when you use loadmap event";
			next;
			mes "Ok lets do some checking";
			next;
			if ( getgmlevel() >= 1 ) goto L_Notice;
			mes "You are normal player thats why you reading this";
			end;
                            
L_Notice:
		mes "Your group id is greater than 1 so you are a GM and GM are now allowed here";
		mes "Now you see how i pass the condition to warp you if you are not gm";
		next;
		warp geffen,x,y;
		end;
}
prontera	mapflag	loadmap

Once a char warp or load the prontera its either GM or Player he/she will go for checking 

Edited by Poring King
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

Thank you both very much for this. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  123
  • Topics Per Day:  0.03
  • Content Count:  640
  • Reputation:   82
  • Joined:  04/07/14
  • Last Seen:  

On 10/30/2020 at 1:32 AM, Rivers said:

Thank you both very much for this. 

Well first of all. Your mapflags are wrong. You can just mapflag nowarpto and nowarp to any specific map. Can you post your mapflags?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

heroton	mapflag	nowarp
hallow01	mapflag	nowarp
halloween	mapflag	nowarp
pa2_in02	mapflag	nowarp
heroton	mapflag	nowarpto
hallow01	mapflag	nowarpto
halloween	mapflag	nowarpto
pa2_in02	mapflag	nowarpto

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.01
  • Content Count:  241
  • Reputation:   18
  • Joined:  06/04/14
  • Last Seen:  

Check your GM group level it might have anywarp on Group.conf

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

I just checked, but it wasn't under Lv 0. So what I did was add any_warp: false and it also did not resolved my problem.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  236
  • Reputation:   47
  • Joined:  12/04/13
  • Last Seen:  

Thanks, that worked perfectly. Did everything I needed it too.

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