From eca038e00b9937d6c177bd8cddc8b5b1a2e9c5a9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 13 May 2020 00:57:23 -0300 Subject: Replace our script-induced deaths with new, custom, die() command This will fix one of the HardCore Server bugs. --- npc/042-9/ctrl.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'npc/042-9/ctrl.txt') diff --git a/npc/042-9/ctrl.txt b/npc/042-9/ctrl.txt index 8f8d3876d..0cb83c9cc 100644 --- a/npc/042-9/ctrl.txt +++ b/npc/042-9/ctrl.txt @@ -63,7 +63,7 @@ OnKillBoss: goto OnRespawn; // Maybe a reward is due .@g=getcharid(2); - if (.@g < 1) percentheal -100, -100; + if (.@g < 1) die(); getitem GuildCoin, 2+min(13, $KAMELOT_MX[.@g]/10); getexp $KAMELOT_MX[.@g]*14, $KAMELOT_MX[.@g]*8; mapannounce getmap(), strcharinfo(0)+" has defeated the boss!", 0; @@ -75,7 +75,7 @@ OnKillMob: goto OnRespawn; // Maybe a reward is due .@g=getcharid(2); - if (.@g < 1) percentheal -100, -100; + if (.@g < 1) die(); getexp $KAMELOT_MX[.@g]*7, $KAMELOT_MX[.@g]*4; .@delay=max(7000, 42000-$KAMELOT_PC[.@g]*2000); // FALLTHROUGH @@ -102,7 +102,7 @@ OnRespawn: OnTouch: .@g=getcharid(2); - if (.@g < 1) percentheal -100, -100; + if (.@g < 1) die(); if ($KAMELOT_KEYMASK[.@g] & 1) goto L_NoAccess; warp "042-5@"+.@g, 21, 43; end; -- cgit v1.2.3-70-g09d2