diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-02 02:58:13 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-02 02:58:13 -0300 |
commit | efb732d949f25eafbc3473ddee7289b47cb77df6 (patch) | |
tree | 1e816daf60baf7564554ef6f35be86cce5020f27 /npc/042-10/ctrl.txt | |
parent | 968f737094350daec8e3cfec27b26c28277a8920 (diff) | |
download | serverdata-efb732d949f25eafbc3473ddee7289b47cb77df6.tar.gz serverdata-efb732d949f25eafbc3473ddee7289b47cb77df6.tar.bz2 serverdata-efb732d949f25eafbc3473ddee7289b47cb77df6.tar.xz serverdata-efb732d949f25eafbc3473ddee7289b47cb77df6.zip |
Katazuli will now take 1% HP/MP per cycle.
It'll make you sit after this damage is computed
Diffstat (limited to 'npc/042-10/ctrl.txt')
-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."); |