diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-06-05 11:23:41 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-06-05 11:23:41 -0400 |
commit | cf484334d22f41e3cd881fdc6aedd2df306dd2e0 (patch) | |
tree | bb439f4c41057b8ac759b0913f1d930d9a692bfc | |
parent | d87f223424d15b6192f4873b9bdfd7818c695475 (diff) | |
download | plugin-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.tar.gz plugin-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.tar.bz2 plugin-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.tar.xz plugin-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.zip |
remove misceffect
-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); |