From 32eb788a74aee008fc5e740dd234b0e39bfc85c6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 4 Feb 2020 11:27:10 -0300 Subject: 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) --- npc/functions/hub.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/functions/hub.txt') 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; } -- cgit v1.2.3-70-g09d2