From 7059445040b0e591ffdacb8a22450b84a0993f45 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 3 Jul 2018 10:48:09 -0300 Subject: Time bonus applies to near people --- npc/008-0/master.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/npc/008-0/master.txt b/npc/008-0/master.txt index 64fecbaee..d4604fbaf 100644 --- a/npc/008-0/master.txt +++ b/npc/008-0/master.txt @@ -60,7 +60,7 @@ warpparty("008-1", 176, 20, getcharid(1), "008-0", true); // TODO: Monsters - monster("008-1", 90, 69, "Time Bonus", Scorpion, 1, "Party Master::OnAddTime"); + monster("008-1", 90, 69, "Time Bonus", Scorpion, 1, "Party Master::OnMobTime"); close; @@ -116,7 +116,11 @@ OnLoop: } end; -// TODO: We must use areatimer() and grant time bonus to everyone who killed it +OnMobTime: + getmapxy(.@m$, .@x, .@y, 0); + areatimer(.@m$, .@x-4, .@y-4, .@x+4, .@y+4, 10, "Party Master::OnAddTime"); + end; + OnAddTime: @pmloop=60; end; -- cgit v1.2.3-60-g2f50