diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/functions/hub.txt | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 778aa63ce..0de66cb85 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -33,15 +33,18 @@ function script HUB_Logout { // Hardcore Server if ($HARDCORE && .@dead) { + // Update Absolutions + if (ABSOLVE_DAY != gettimeparam(GETTIME_DAYOFMONTH)) { + ABSOLVE_DAY=gettimeparam(GETTIME_DAYOFMONTH); + ABSOLVE_CNT=0; + } + + // Main Loop if (@grace) { // Grace is upon you (ie. script death) @grace=false; } else if (.@zone$ == "MMO" && ABSOLVE_CNT <= 3) { // Absolve (limited attempts) - if (ABSOLVE_DAY != gettimeparam(GETTIME_DAYOFMONTH)) { - ABSOLVE_DAY=gettimeparam(GETTIME_DAYOFMONTH); - ABSOLVE_CNT=0; - } ABSOLVE_CNT+=1; dispbottom l("This is a special map so your death is not counted."); dispbottom b(l("You have %d non-counting deaths remaining today.", 3-ABSOLVE_CNT)); |