summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-03 00:01:42 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-03 00:01:42 -0300
commit1fe25d35152dbe2dcb1f451d9fb48641ef9c9a5e (patch)
tree847d08d9f04e461c3e16bcc5b16abea2bcd22248 /npc/functions
parent4cf99dfe633b24b65af22e602ec8c92c35a75611 (diff)
downloadserverdata-1fe25d35152dbe2dcb1f451d9fb48641ef9c9a5e.tar.gz
serverdata-1fe25d35152dbe2dcb1f451d9fb48641ef9c9a5e.tar.bz2
serverdata-1fe25d35152dbe2dcb1f451d9fb48641ef9c9a5e.tar.xz
serverdata-1fe25d35152dbe2dcb1f451d9fb48641ef9c9a5e.zip
Sketch for pipelines - Party Dungeon Master
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/timer.txt11
1 files changed, 11 insertions, 0 deletions
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("<map>", <tick>, "<npc>::<event>", 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;
+}
+