summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-07-16 00:19:50 -0300
committerJesusaves <cpntb1@ymail.com>2019-07-16 00:19:50 -0300
commitbb3a847c85f79e2f73379b21ee5cb9197d1ba145 (patch)
tree44b4bb1e6bdbc92edecd5c2a834930ecad25dd0e /npc
parent0e5387dfef923d87b3aab178165b8a539e676ed5 (diff)
downloadserverdata-bb3a847c85f79e2f73379b21ee5cb9197d1ba145.tar.gz
serverdata-bb3a847c85f79e2f73379b21ee5cb9197d1ba145.tar.bz2
serverdata-bb3a847c85f79e2f73379b21ee5cb9197d1ba145.tar.xz
serverdata-bb3a847c85f79e2f73379b21ee5cb9197d1ba145.zip
Let's start simple: 15 minutes per chest.
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/clientversion.txt3
-rw-r--r--npc/functions/treasure.txt2
2 files changed, 3 insertions, 2 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index d79a58aaf..702ec6077 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -283,7 +283,8 @@ function script clientupdater {
if (MERCENARY_DAILYQUEST > 100) {
getitem BountyHunterHelmet, 1;
}
-
+ // Cleanup
+ deletearray RNGTREASURE_DATE;
}
diff --git a/npc/functions/treasure.txt b/npc/functions/treasure.txt
index 834127a8b..0698d56ee 100644
--- a/npc/functions/treasure.txt
+++ b/npc/functions/treasure.txt
@@ -21,7 +21,7 @@ function script TreasureBox {
delitem TreasureKey, 1;
mesc l("You open the chest!");
- RNGTREASURE_DATE[.@id]=gettimetick(2)+60*4; // Minimum 4 hours
+ RNGTREASURE_DATE[.@id]=gettimetick(2)+60*15; // Minimum 15 minutes
.@empty=getvariableofnpc(.empty, strnpcinfo(0));
if (!.@empty) {