Phaige Posted April 4, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 60 Reputation: 3 Joined: 01/28/12 Last Seen: January 20, 2021 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted April 4, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 20 hours ago Share 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 Link to comment Share on other sites More sharing options...
Phaige Posted April 4, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 60 Reputation: 3 Joined: 01/28/12 Last Seen: January 20, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted April 4, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: 20 hours ago Share Posted April 4, 2013 just add that permission to those GM Group that you allow them to bypass it.... Quote Link to comment Share on other sites More sharing options...
Phaige Posted April 4, 2013 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 60 Reputation: 3 Joined: 01/28/12 Last Seen: January 20, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
jaBote Posted April 4, 2013 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 182 Reputation: 36 Joined: 01/26/12 Last Seen: October 6, 2021 Share 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 Link to comment Share on other sites More sharing options...
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 PhaigeLink to comment
Share on other sites
5 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.