diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-05 20:23:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-05 20:23:52 +0300 |
commit | d149f4bc57d1f46f84a2a68441a27271ce64674a (patch) | |
tree | 29b2cfd1137cc9b784d45bb43a79075f49819cb6 /src | |
parent | f49984841dc39c63e7a2befd2cef4f88f60cbade (diff) | |
download | plugin-d149f4bc57d1f46f84a2a68441a27271ce64674a.tar.gz plugin-d149f4bc57d1f46f84a2a68441a27271ce64674a.tar.bz2 plugin-d149f4bc57d1f46f84a2a68441a27271ce64674a.tar.xz plugin-d149f4bc57d1f46f84a2a68441a27271ce64674a.zip |
Remove areatimer from buildins.s20170627
Diffstat (limited to 'src')
-rw-r--r-- | src/emap/init.c | 1 | ||||
-rw-r--r-- | src/emap/script_buildins.c | 41 | ||||
-rw-r--r-- | src/emap/script_buildins.h | 1 |
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); |