summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-07-11 10:14:13 -0300
committerJesusaves <cpntb1@ymail.com>2024-07-11 10:14:13 -0300
commitcb7f9d7a16a8881bf70524d099de0995da75f53e (patch)
treea340c0adfc8fc50b8f8e81cee3f3cd38dd3ef172
parentdd2931f3f23322aec6af69e626580e203db10e25 (diff)
downloadserverdata-cb7f9d7a16a8881bf70524d099de0995da75f53e.tar.gz
serverdata-cb7f9d7a16a8881bf70524d099de0995da75f53e.tar.bz2
serverdata-cb7f9d7a16a8881bf70524d099de0995da75f53e.tar.xz
serverdata-cb7f9d7a16a8881bf70524d099de0995da75f53e.zip
Some fixes and modify the permadeath duration
-rw-r--r--npc/functions/hub.txt7
1 files 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;