summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-06-05 11:23:41 -0400
committergumi <mekolat@users.noreply.github.com>2017-06-05 11:23:41 -0400
commitcf484334d22f41e3cd881fdc6aedd2df306dd2e0 (patch)
treebb439f4c41057b8ac759b0913f1d930d9a692bfc
parentd87f223424d15b6192f4873b9bdfd7818c695475 (diff)
downloadevol-hercules-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.tar.gz
evol-hercules-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.tar.bz2
evol-hercules-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.tar.xz
evol-hercules-cf484334d22f41e3cd881fdc6aedd2df306dd2e0.zip
remove misceffect
-rw-r--r--src/emap/init.c1
-rw-r--r--src/emap/script_buildins.c30
-rw-r--r--src/emap/script_buildins.h1
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);