summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 9665773..97e973d 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -600,34 +600,6 @@ BUILDIN(removeMapMask)
return true;
}
-BUILDIN(getNpcClass)
-{
- 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 false;
- }
-
- if (!nd)
- nd = (struct npc_data *) map->id2bl(st->oid);
-
- if (!nd)
- {
- script_pushint(st, -1);
- return false;
- }
-
- script_pushint(st, (int)nd->class_);
-
- return true;
-}
-
BUILDIN(setNpcSex)
{
struct npc_data *nd = NULL;