summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorCairoLee <cairoliyu@gmail.com>2013-06-25 10:58:04 +0800
committerCairoLee <cairoliyu@gmail.com>2013-06-25 10:58:04 +0800
commitee23711201ddbcd9d92712e8d2b9c1e3c05e7194 (patch)
tree1f47f5d5c214f61834fa7100947f4f7cbf1a50f9 /src/map/script.c
parent5b40d0c2937c2fe4f8e133271d05602543d86277 (diff)
downloadhercules-ee23711201ddbcd9d92712e8d2b9c1e3c05e7194.tar.gz
hercules-ee23711201ddbcd9d92712e8d2b9c1e3c05e7194.tar.bz2
hercules-ee23711201ddbcd9d92712e8d2b9c1e3c05e7194.tar.xz
hercules-ee23711201ddbcd9d92712e8d2b9c1e3c05e7194.zip
Implemented notomb Mapflag
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index bbae42c6f..fdebcb452 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -238,7 +238,8 @@ enum {
MF_MONSTER_NOTELEPORT,
MF_PVP_NOCALCRANK, //50
MF_BATTLEGROUND,
- MF_RESET
+ MF_RESET,
+ MF_NOTOMB
};
const char* script_op2name(int op)
@@ -10344,6 +10345,7 @@ BUILDIN(getmapflag)
case MF_PVP_NOCALCRANK: script_pushint(st,map[m].flag.pvp_nocalcrank); break;
case MF_BATTLEGROUND: script_pushint(st,map[m].flag.battleground); break;
case MF_RESET: script_pushint(st,map[m].flag.reset); break;
+ case MF_NOTOMB: script_pushint(st,map[m].flag.notomb); break;
}
}
@@ -10460,6 +10462,7 @@ BUILDIN(setmapflag)
case MF_PVP_NOCALCRANK: map[m].flag.pvp_nocalcrank = 1; break;
case MF_BATTLEGROUND: map[m].flag.battleground = (val <= 0 || val > 2) ? 1 : val; break;
case MF_RESET: map[m].flag.reset = 1; break;
+ case MF_NOTOMB: map[m].flag.notomb = 1; break;
}
}
@@ -10548,6 +10551,7 @@ BUILDIN(removemapflag)
case MF_PVP_NOCALCRANK: map[m].flag.pvp_nocalcrank = 0; break;
case MF_BATTLEGROUND: map[m].flag.battleground = 0; break;
case MF_RESET: map[m].flag.reset = 0; break;
+ case MF_NOTOMB: map[m].flag.notomb = 0; break;
}
}