diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-13 07:07:02 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-13 07:07:02 -0300 |
commit | e7f5a469e883efac52e41287ecefd3aba823d8c8 (patch) | |
tree | ccf21162a6192044b40b5f0ae1ca27e8dee92238 | |
parent | 444d8eded5222e6f1d46dda80760363d1c3be137 (diff) | |
download | serverdata-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.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)); |