From 85f6f317c6f086c1155eb5a45c93781f4cf95943 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Jul 2021 15:41:42 -0300 Subject: Do not kill instantly on scripted death; And honor $HARDCORE flag if set --- npc/functions/main.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'npc/functions/main.txt') diff --git a/npc/functions/main.txt b/npc/functions/main.txt index d072ff60..4a0c9c22 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -294,12 +294,12 @@ function script any_of { function script die { if ($HARDCORE) { @grace=true; - percentheal -100, -100; + addtimer 10, "#GlobalHandler::OnDie"; // Wait script execution to finish //setparam(Hp, 1); //warp "000-1", 22, 22; //end; // MUST be end; to mimic official behavior } else { - percentheal -100, -100; + addtimer 10, "#GlobalHandler::OnDie"; // Wait script execution to finish } return; } -- cgit v1.2.3-70-g09d2