From 2567194d7a32ba02fbdad286e803d8b0fa0393ac Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 14 Feb 2021 15:33:55 -0300 Subject: Lilit jump: Override HP regeneration which ocurr while reading dialog. --- npc/017-1/drowned_man.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc/017-1') diff --git a/npc/017-1/drowned_man.txt b/npc/017-1/drowned_man.txt index 88e1230ed..14330b8c3 100644 --- a/npc/017-1/drowned_man.txt +++ b/npc/017-1/drowned_man.txt @@ -148,12 +148,15 @@ L_GoodJump: // Weight will be 2000g - so penalty will be 100% HP. .@penalty=max(0, (Weight/20)-1); percentheal -.@penalty, 0; + @finalhp = Hp; // vit/str counts on swimming minigame mesn l("Drowned Man"); mesq l("Good job! I wish you luck, because now you need to SWIM!"); next; closeclientdialog; + setparam(Hp, @finalhp); + @finalhp=0; addtimer(3000, "#01850SwimmingCtrl::OnLoop"); warp "018-5-0", 20, 25; end; -- cgit v1.2.3-60-g2f50