summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-03 10:48:09 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-03 10:48:09 -0300
commit7059445040b0e591ffdacb8a22450b84a0993f45 (patch)
treed895cb1dd53ff9727a509fcb3753fdcbaa6befae
parentc87d43f590f01e17dc5dbd40575f412d31b902ad (diff)
downloadserverdata-7059445040b0e591ffdacb8a22450b84a0993f45.tar.gz
serverdata-7059445040b0e591ffdacb8a22450b84a0993f45.tar.bz2
serverdata-7059445040b0e591ffdacb8a22450b84a0993f45.tar.xz
serverdata-7059445040b0e591ffdacb8a22450b84a0993f45.zip
Time bonus applies to near people
-rw-r--r--npc/008-0/master.txt8
1 files 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;