From efb732d949f25eafbc3473ddee7289b47cb77df6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 2 May 2020 02:58:13 -0300 Subject: Katazuli will now take 1% HP/MP per cycle. It'll make you sit after this damage is computed --- npc/042-10/ctrl.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/npc/042-10/ctrl.txt b/npc/042-10/ctrl.txt index 0cea4e0a7..a94df5e0b 100644 --- a/npc/042-10/ctrl.txt +++ b/npc/042-10/ctrl.txt @@ -98,6 +98,9 @@ function script KatazuliInfo { mes l("Multiple players may conduct Katazuli at once. If you move or stand, the spell may be aborted."); mes l("Remember: Taking damage will make you stand!"); next; + mes l("Katazuli breaking proccess will cause the breaker some harm."); + mes l("It'll also drain mana in the proccess. If you run out of mana, its over."); + next; mes l("After casting %s, you must wait %d seconds before casting it again.", b("katazuli"), b("60")); mes l("However, as long as you remain seated and immobile, the spell will slowly destroy the seal."); next; @@ -120,6 +123,10 @@ function script KatazuliCore { if (.@x != .x || .@y != .y) end; + // No mana - do nothing + if (!Sp) + end; + // Initialize local variables .@start=getarg(0); .@id=getarg(1); @@ -194,6 +201,14 @@ function script KatazuliCore { // TODO: Spawn monsters, drop Dark Petal // (Probably spawn Dark Rose Field) + // Take away some HP and MP, but do not make you stand + percentheal -1, -1; + sit(); + + // If it took all your mana - its over + if (!Sp) + end; + // Set cooldown on start if (.@start) { dispbottom l("Please wait 60 seconds to cast again."); -- cgit v1.2.3-60-g2f50