diff options
-rw-r--r-- | src/map/script.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index 950242e77..6d6ce4e85 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -10792,14 +10792,18 @@ BUILDIN(addtimer) script->check_event(st, event); sd = script->rid2sd(st); - if (sd == NULL) - return true; + if (sd == NULL) { + script_pushint(st, 0); + return false; + } if (!pc->addeventtimer(sd, tick, event)) { ShowWarning("script:addtimer: Event timer is full, can't add new event timer. (cid:%d timer:%s)\n", sd->status.char_id, event); + script_pushint(st, 0); return false; } + script_pushint(st, 1); return true; } /*========================================== |