diff options
Diffstat (limited to 'src/emap')
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/script_buildins.c | 30 | ||||
-rw-r--r-- | src/emap/script_buildins.h | 1 |
3 files changed, 0 insertions, 32 deletions
diff --git a/src/emap/init.c b/src/emap/init.c index 9bc7608..d46254d 100644 --- a/src/emap/init.c +++ b/src/emap/init.c @@ -140,7 +140,6 @@ HPExport void plugin_init (void) addScriptCommand("npcstand", "*", npcStand); addScriptCommand("npcwalkto", "ii", npcWalkTo); addScriptCommand("rif", "is*", rif); - addScriptCommand("misceffect", "i*", miscEffect); addScriptCommand("setmapmask", "si", setMapMask); addScriptCommand("addmapmask", "si", addMapMask); addScriptCommand("removemapmask", "si", removeMapMask); diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c index 8891311..ae705ce 100644 --- a/src/emap/script_buildins.c +++ b/src/emap/script_buildins.c @@ -702,36 +702,6 @@ BUILDIN(rif) return true; } -BUILDIN(miscEffect) -{ - int type = script_getnum(st, 2); - struct block_list *bl = NULL; - - if (script_hasdata(st, 3)) - { - if (script_isstring(st, 3)) - { - TBL_PC *sd = map->nick2sd(script_getstr(st, 3)); - if (sd) - bl = &sd->bl; - } - else if (script_isint(st, 3)) - { - bl = map->id2bl(script_getnum(st, 3)); - } - } - - if (!bl) - { - TBL_PC *sd = script->rid2sd (st); - if (sd) - bl = &sd->bl; - } - if (bl) - clif->specialeffect(bl, type, AREA); - return true; -} - BUILDIN(setMapMask) { const char *const mapName = script_getstr(st, 2); diff --git a/src/emap/script_buildins.h b/src/emap/script_buildins.h index 96c9bf2..374e1eb 100644 --- a/src/emap/script_buildins.h +++ b/src/emap/script_buildins.h @@ -28,7 +28,6 @@ BUILDIN(getqTime); BUILDIN(setq); BUILDIN(setNpcDir); BUILDIN(rif); -BUILDIN(miscEffect); BUILDIN(setMapMask); BUILDIN(getMapMask); BUILDIN(addMapMask); |