summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-13 07:07:02 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-13 07:07:02 -0300
commite7f5a469e883efac52e41287ecefd3aba823d8c8 (patch)
treeccf21162a6192044b40b5f0ae1ca27e8dee92238
parent444d8eded5222e6f1d46dda80760363d1c3be137 (diff)
downloadserverdata-e7f5a469e883efac52e41287ecefd3aba823d8c8.tar.gz
serverdata-e7f5a469e883efac52e41287ecefd3aba823d8c8.tar.bz2
serverdata-e7f5a469e883efac52e41287ecefd3aba823d8c8.tar.xz
serverdata-e7f5a469e883efac52e41287ecefd3aba823d8c8.zip
Edge bug on Hard Core
-rw-r--r--npc/functions/hub.txt11
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));