summaryrefslogtreecommitdiff
path: root/src/emap/script_buildins.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-05 20:23:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-05 20:23:52 +0300
commitd149f4bc57d1f46f84a2a68441a27271ce64674a (patch)
tree29b2cfd1137cc9b784d45bb43a79075f49819cb6 /src/emap/script_buildins.c
parentf49984841dc39c63e7a2befd2cef4f88f60cbade (diff)
downloadevol-hercules-d149f4bc57d1f46f84a2a68441a27271ce64674a.tar.gz
evol-hercules-d149f4bc57d1f46f84a2a68441a27271ce64674a.tar.bz2
evol-hercules-d149f4bc57d1f46f84a2a68441a27271ce64674a.tar.xz
evol-hercules-d149f4bc57d1f46f84a2a68441a27271ce64674a.zip
Remove areatimer from buildins.s20170627
Diffstat (limited to 'src/emap/script_buildins.c')
-rw-r--r--src/emap/script_buildins.c41
1 files changed, 0 insertions, 41 deletions
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)