Phaige Posted April 4, 2013 Posted April 4, 2013 (edited) 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 April 4, 2013 by Phaige Quote
Emistry Posted April 4, 2013 Posted April 4, 2013 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...). Quote
Phaige Posted April 4, 2013 Author Posted April 4, 2013 (edited) 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 April 4, 2013 by Phaige Quote
Emistry Posted April 4, 2013 Posted April 4, 2013 just add that permission to those GM Group that you allow them to bypass it.... Quote
Phaige Posted April 4, 2013 Author Posted April 4, 2013 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 Quote
jaBote Posted April 4, 2013 Posted April 4, 2013 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. Quote
Question
Phaige
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 Phaige5 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.