diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-07 13:09:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-07 13:09:17 +0300 |
commit | c7f3d116efdcc50b0b9a9b6649f1779caf972648 (patch) | |
tree | f36b0c387d5ea7ce890c138b0d7fb19fb661d909 /src | |
parent | 74a811c80e816b182b70fc2eeefd75cf7800494c (diff) | |
download | evol-hercules-c7f3d116efdcc50b0b9a9b6649f1779caf972648.tar.gz evol-hercules-c7f3d116efdcc50b0b9a9b6649f1779caf972648.tar.bz2 evol-hercules-c7f3d116efdcc50b0b9a9b6649f1779caf972648.tar.xz evol-hercules-c7f3d116efdcc50b0b9a9b6649f1779caf972648.zip |
Remove script command getnpcdir because going to upstream.
setnpcdir left for more optimal way to set npc direction.
Diffstat (limited to 'src')
-rw-r--r-- | src/map/init.c | 1 | ||||
-rw-r--r-- | src/map/script.c | 28 | ||||
-rw-r--r-- | src/map/script.h | 1 |
3 files changed, 0 insertions, 30 deletions
diff --git a/src/map/init.c b/src/map/init.c index 397be52..fb09b87 100644 --- a/src/map/init.c +++ b/src/map/init.c @@ -74,7 +74,6 @@ HPExport void plugin_init (void) addScriptCommand("requestitems", "v*", requestItems); addScriptCommand("getq", "i", getq); addScriptCommand("setq", "ii", setq); - addScriptCommand("getnpcdir", "*", getNpcDir); addScriptCommand("setnpcdir", "*", setNpcDir); addScriptCommand("rif", "is*", rif); addScriptCommand("countitemcolor", "v*", countItemColor); diff --git a/src/map/script.c b/src/map/script.c index d8ea254..fd34aa7 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -398,34 +398,6 @@ BUILDIN(getq) return true; } -BUILDIN(getNpcDir) -{ - struct npc_data *nd = 0; - - if (script_hasdata(st, 2)) - { - nd = npc->name2id (script_getstr(st, 2)); - } - if (!nd && !st->oid) - { - script_pushint(st, -1); - return true; - } - - if (!nd) - nd = (struct npc_data *) map->id2bl (st->oid); - - if (!nd) - { - script_pushint(st, -1); - return true; - } - - script_pushint(st, (int)nd->dir); - - return true; -} - BUILDIN(setNpcDir) { int newdir; diff --git a/src/map/script.h b/src/map/script.h index 7fc4ba6..c329359 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -19,7 +19,6 @@ BUILDIN(requestItem); BUILDIN(requestItems); BUILDIN(getq); BUILDIN(setq); -BUILDIN(getNpcDir); BUILDIN(setNpcDir); BUILDIN(rif); BUILDIN(countItemColor); |