Jump to content
  • 0

mapflags nowarpto and warp with gmlevel bypass


Phaige

Question


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   3
  • Joined:  01/28/12
  • Last Seen:  

Can I request a mapflag "nowarpto" and "warp"  with GM  level that can override it

 

just like how the mapflag nocommand is working.  

for example:

guild_vs1       mapflag     nocommand 60

Edited by Phaige
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


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

trunk/conf/groups.conf

	permissions: {
		any_warp: true
	}

 

 

trunk/doc/permissions.txt

any_warp : Ability to bypass nowarp, nowarpto, noteleport and nomemo mapflags.
           This option is mainly used in commands which modify a character's
           map/coordinates (like @memo, @mapmove, @go, @jump, etc...).
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   3
  • Joined:  01/28/12
  • Last Seen:  

trunk/conf/groups.conf

	permissions: {
		any_warp: true
	}

 

 

trunk/doc/permissions.txt

any_warp : Ability to bypass nowarp, nowarpto, noteleport and nomemo mapflags.
           This option is mainly used in commands which modify a character's
           map/coordinates (like @memo, @mapmove, @go, @jump, etc...).

Thank you for the reply Emistry.That is setting the permission for  a particular group ip..But  I just want want a mapflag that reacts the sameway like the mapflag nocommand so that i can restrict a players and gm level going to that particular map.. 

Edited by Phaige
Link to comment
Share on other sites


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

just add that permission to those GM Group that you allow them to bypass it....

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   3
  • Joined:  01/28/12
  • Last Seen:  

just add that permission to those GM Group that you allow them to bypass it....

Let say if i dont permit any_warp to group id 4 , He wont be able to warp to any map with mapflag nowarpto on right?.. like pvp arena/gvg arena.

 

But I just want to set it   for example  a custom map that only an admin can warp to it . while allowing other gmlevel with any_warp permission to warp to other nowarpto maps

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  182
  • Reputation:   36
  • Joined:  01/26/12
  • Last Seen:  

You can easily do that via scripting and mapflags:

 

-	script	dontwarphereplz	-1,{
	OnPCLoadMapEvent:
	if (!.init) donpcevent strnpcinfo(3)+"::OnInit";
	getmapxy(.@map$,.@x,.@y,0);
	for (set .@i,0; .@i < getarraysize(.RestrictedMaps); set .@i, .@i+1) {
		if((.@map$ == .RestrictedMaps$[.@i]) && (getgmlevel() < MinGMLv)){
			dispbottom "You shall not pass!!!!!!"
			warp "SavePoint";
		}
	}
	end;
	
	OnInit:
	set .MinGMLv, 40;
	setarray .RestrictedMaps$[0],"map1","map2","map3","map4","map5","map6","map7","mapN";
	set .init, 1;
	end;
}

map1	mapflag	loadevent
map2	mapflag	loadevent
map3	mapflag	loadevent
map4	mapflag	loadevent
map5	mapflag	loadevent
map6	mapflag	loadevent
map7	mapflag	loadevent
mapN	mapflag	loadevent

Not tested and may contain errors. I'm quite rusty on scripting right now.

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