From cb7f9d7a16a8881bf70524d099de0995da75f53e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 11 Jul 2024 10:14:13 -0300 Subject: Some fixes and modify the permadeath duration --- npc/functions/hub.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index a96e7538e..63347206d 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -134,7 +134,8 @@ function script HUB_Logout { //resetlvl(2); // FIXME: Split the exp // TODO: Warp back to Candor or it'll be unplayable // TODO: It could be @jail, but it is buggy - atcommand("@jailfor 1d "+strcharinfo(0)); + .@sentence = ((REBIRTH*0) + BaseLevel)**2; + atcommand("@jailfor "+.@sentence+"m "+strcharinfo(0)); } // Vanished on Cindy Cave } else if (.@mapa$ == "021-4" && strcharinfo(0) == $@CINDY_HERO$) { @@ -304,8 +305,8 @@ function script HUB_Logout { } } // HardCore Sentence Bonus - if (LOGIN_TIME) { - if (##HARDCORE_JAILTIME) { + if (LOGIN_TIME && !.@dead) { + if (##HARDCORE_JAILTIME && $BETASERVER) { ##HARDCORE_JAILTIME += (gettimetick(2) - LOGIN_TIME) / 60; } LOGIN_TIME = 0; -- cgit v1.2.3-70-g09d2