Foob Posted October 1, 2017 Posted October 1, 2017 Hi, How to remove @warp command or disable the command for all instance dungeons or instance maps? I know its possible if we add it via mapflag but will it be easier if add it via script? Regards, Quote
0 Digos Posted October 1, 2017 Posted October 1, 2017 Yes you can set a mapflag via script. It certainly is more flexible but if it's easier it's a point of view as it need to be invoked from a running script. Quote *setmapflag "<map name>",<flag>{,<zone>{,<type>}}; This command marks a specified map with the given map flag, which will alter the behavior of the map. A full list of mapflags is located in 'src/map/script_constants.h' with the 'mf_' prefix, and documentation can be found in 'doc/mapflags.txt'. The map flags alter the behavior of the map regarding teleporting (mf_nomemo, mf_noteleport, mf_nowarp, mf_nogo), storing location when disconnected (mf_nosave), dead branch usage (mf_nobranch), penalties upon death (mf_nopenalty, mf_nozenypenalty), PVP behavior (mf_pvp, mf_pvp_noparty, mf_pvp_noguild), WoE behavior (mf_gvg,mf_gvg_noparty), ability to use skills or open up trade deals (mf_notrade, mf_novending, mf_noskill, mf_noicewall), current weather effects (mf_snow, mf_fog, mf_sakura, mf_leaves, mf_rain, mf_clouds, mf_fireworks) and whether night will be in effect on this map (mf_nightenabled). The optional parameter 'zone' is used to set the zone for restricted mapflags. For the 'skill_damage' mapflag, 'zone' functions as 'value' (-100 to 100000) and 'type' can be: 1: damage against players 2: damage against mobs 3: damage against bosses 4: damage against other 5: caster type To disable all kind of commands, you should use mf_nocommand 1 Quote
Question
Foob
Hi,
How to remove @warp command or disable the command for all instance dungeons or instance maps?
I know its possible if we add it via mapflag but will it be easier if add it via script?
Regards,
2 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.