diff options
author | shennetsind <notind@gmail.com> | 2013-06-27 10:36:11 -0700 |
---|---|---|
committer | shennetsind <notind@gmail.com> | 2013-06-27 10:36:11 -0700 |
commit | 15398c9b90693707c3e49c349e24e6dd655f12a9 (patch) | |
tree | 8ba6c03f3e6f8775e854fd109d31ae6b64110e1a /src/map/script.c | |
parent | e5b1d3bdff66c9475755651a94d20057fc4d02dd (diff) | |
parent | ee23711201ddbcd9d92712e8d2b9c1e3c05e7194 (diff) | |
download | hercules-15398c9b90693707c3e49c349e24e6dd655f12a9.tar.gz hercules-15398c9b90693707c3e49c349e24e6dd655f12a9.tar.bz2 hercules-15398c9b90693707c3e49c349e24e6dd655f12a9.tar.xz hercules-15398c9b90693707c3e49c349e24e6dd655f12a9.zip |
Merge pull request #48 from CairoLee/master
Implemented notomb Mapflag
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c index 06830704b..f63202834 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; } } |