diff options
Diffstat (limited to 'npc/042-10')
-rw-r--r-- | npc/042-10/ctrl.txt | 15 |
1 files changed, 15 insertions, 0 deletions
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."); |