summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emap/init.c1
-rw-r--r--src/emap/script_buildins.c41
-rw-r--r--src/emap/script_buildins.h1
3 files changed, 0 insertions, 43 deletions
diff --git a/src/emap/init.c b/src/emap/init.c
index 835d8b3..ccdc25c 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -154,7 +154,6 @@ HPExport void plugin_init (void)
addScriptCommand("getmapname", "", getMapName);
addScriptCommand("unequipbyid", "i", unequipById);
addScriptCommand("ispcdead", "", isPcDead);
- addScriptCommand("areatimer", "siiiii*", areaTimer);
addScriptCommand("getareadropitem", "siiiiv*", getAreaDropItem);
addScriptCommand("clientcommand", "s", clientCommand);
addScriptCommand("isunitwalking", "?", isUnitWalking);
diff --git a/src/emap/script_buildins.c b/src/emap/script_buildins.c
index 0c125c2..810f94f 100644
--- a/src/emap/script_buildins.c
+++ b/src/emap/script_buildins.c
@@ -979,47 +979,6 @@ BUILDIN(isPcDead)
return true;
}
-static int areatimer_sub(struct block_list *bl, va_list ap)
-{
- int tick;
- char *event;
- TBL_PC *sd;
-
- tick = va_arg(ap, int);
- event = va_arg(ap, char*);
-
- sd = (TBL_PC *)bl;
- if (!pc->addeventtimer(sd, tick, event))
- {
- if (sd)
- ShowWarning("buildin_addtimer: Event timer is full, can't add new event timer. (cid:%d timer:%s)\n", sd->status.char_id, event);
- }
- return 0;
-}
-
-BUILDIN(areaTimer)
-{
- const char *const mapname = script_getstr(st, 2);
- const int x1 = script_getnum(st, 3);
- const int y1 = script_getnum(st, 4);
- const int x2 = script_getnum(st, 5);
- const int y2 = script_getnum(st, 6);
- const int time = script_getnum(st, 7);
- const char *const eventName = script_getstr(st, 8);
- int m;
-
- if ((m = map->mapname2mapid(mapname)) < 0)
- {
- ShowWarning("map not found\n");
- script->reportsrc(st);
- return false;
- }
-
- map->foreachinarea(areatimer_sub, m, x1, y1, x2, y2, BL_PC, time, eventName);
-
- return true;
-}
-
static int buildin_getareadropitem_sub_del(struct block_list *bl, va_list ap)
{
if (!bl)
diff --git a/src/emap/script_buildins.h b/src/emap/script_buildins.h
index aebdb49..91b02b3 100644
--- a/src/emap/script_buildins.h
+++ b/src/emap/script_buildins.h
@@ -42,7 +42,6 @@ BUILDIN(setNpcDialogTitle);
BUILDIN(getMapName);
BUILDIN(unequipById);
BUILDIN(isPcDead);
-BUILDIN(areaTimer);
BUILDIN(getAreaDropItem);
BUILDIN(setMount);
BUILDIN(clientCommand);