From 1fe25d35152dbe2dcb1f451d9fb48641ef9c9a5e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 Jul 2018 00:01:42 -0300 Subject: Sketch for pipelines - Party Dungeon Master --- npc/functions/timer.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'npc/functions') diff --git a/npc/functions/timer.txt b/npc/functions/timer.txt index e79070f3b..1b5fa8c57 100644 --- a/npc/functions/timer.txt +++ b/npc/functions/timer.txt @@ -54,3 +54,14 @@ function script mapdeltimer { } return .@i; } + +// partytimer("", , "::", partyid) +function script partytimer { + .@c = getunits(BL_PC, .@players, false, getarg(0)); + for (.@i = 0; .@i < .@c; .@i++) { + if (getcharid(2, strcharinfo(0,"",.@players[.@i]) ) == getarg(3)) + addtimer(getarg(1), getarg(2), .@players[.@i]); + } + return .@i; +} + -- cgit v1.2.3-70-g09d2