summaryrefslogtreecommitdiff
path: root/src/emap
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-03 00:49:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-03 00:49:58 +0300
commit534b7d425fcd6f0ab86e77b8404e09685a64d204 (patch)
tree76115b7c3d47a69c2ca9923c5b59ae00b8396985 /src/emap
parent2b6f23670b3add2cb845b9606d13e6aad6360f11 (diff)
downloadevol-hercules-534b7d425fcd6f0ab86e77b8404e09685a64d204.tar.gz
evol-hercules-534b7d425fcd6f0ab86e77b8404e09685a64d204.tar.bz2
evol-hercules-534b7d425fcd6f0ab86e77b8404e09685a64d204.tar.xz
evol-hercules-534b7d425fcd6f0ab86e77b8404e09685a64d204.zip
Add variable '.walkmask' for get/set npc walk mask.
Diffstat (limited to 'src/emap')
-rw-r--r--src/emap/script.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/emap/script.c b/src/emap/script.c
index 2939c1e..9e37f7a 100644
--- a/src/emap/script.c
+++ b/src/emap/script.c
@@ -138,6 +138,12 @@ void eset_reg_npcscope_num(struct script_state* st, struct reg_db *n, int64 *num
clif->sitting(&nd->bl);
hookStop();
}
+ else if (!strcmp(name, ".walkmask"))
+ {
+ getExt();
+ ext->walkMask = *val;
+ hookStop();
+ }
}
int eget_val_npcscope_num(struct script_state* st, struct reg_db *n, struct script_data* data)
@@ -146,7 +152,6 @@ int eget_val_npcscope_num(struct script_state* st, struct reg_db *n, struct scri
if (!strcmp(name, ".lang"))
{
getExtRet(0);
-
hookStop();
return ext->language;
}
@@ -210,6 +215,12 @@ int eget_val_npcscope_num(struct script_state* st, struct reg_db *n, struct scri
hookStop();
return nd->vd->dead_sit == 0 ? 1 : 0;
}
+ else if (!strcmp(name, ".walkmask"))
+ {
+ getExtRet(0);
+ hookStop();
+ return ext->walkMask;
+ }
return 0;
}