summaryrefslogtreecommitdiff
path: root/npc/functions/hub.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-02-04 11:27:10 -0300
committerJesusaves <cpntb1@ymail.com>2020-02-04 11:27:10 -0300
commit32eb788a74aee008fc5e740dd234b0e39bfc85c6 (patch)
treee371d2ff4200ffa1e5b552d23339993d9ecb07b6 /npc/functions/hub.txt
parenta7b995e30a913295a1c14e426ea13038caba3397 (diff)
downloadserverdata-32eb788a74aee008fc5e740dd234b0e39bfc85c6.tar.gz
serverdata-32eb788a74aee008fc5e740dd234b0e39bfc85c6.tar.bz2
serverdata-32eb788a74aee008fc5e740dd234b0e39bfc85c6.tar.xz
serverdata-32eb788a74aee008fc5e740dd234b0e39bfc85c6.zip
Configure HUB_Login to keep my char reg clean.
It will erase the time tracking from RNGTREASURE when all of them elapsed. This is done with HUB_Logut(). (You must stay offline for at least 15 min)
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r--npc/functions/hub.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 2a1bb9fed..d95a18c0d 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -14,6 +14,10 @@ function script HUB_Login {
addtimer(1000, "#BlueSageHUB::OnCycle");
}
+ // Random Treasure cleaning
+ if (CLEANUP < gettimetick(2)-CHEST_WAITTIME)
+ deletearray RNGTREASURE_DATE;
+
return;
}
@@ -169,6 +173,9 @@ function script HUB_Logout {
addtimer(300, "#QuirinoHUB::OnNoPenaltyCommand");
}
+ // Register logout time
+ if (!.@dead)
+ CLEANUP=gettimetick(2);
return;
}