From 0d0934aa30138a591481328eda0c8caa28a3e4d8 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 1 Jul 2018 18:39:07 -0300 Subject: Fixing --- npc/magic/zarkor.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'npc') diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt index 00fa109c3..b7a0e244a 100644 --- a/npc/magic/zarkor.txt +++ b/npc/magic/zarkor.txt @@ -19,16 +19,22 @@ OnCall: end; // Check cooldown - if (@skzarkor_cooldown > gettimetick(0)) + if (@skzarkor_cooldown > gettimetick(0)) { + dispbottom l("Cannot cast that now."); end; + } // Check mana - if (Sp < 400) + if (readparam(Sp) < 400) { + dispbottom l("Insufficient mana."); end; + } // Other requeriments - if (countitem(ZarkorScroll) < 1) + if (countitem(ZarkorScroll) < 1) { + dispbottom l("You need @@ to cast this skill.", getitemlink(ZarkorScroll)); end; + } // EXECUTION // Apply costs @@ -37,6 +43,7 @@ OnCall: // Cause effect getmapxy(.@map$,.@x,.@y,0); monster(.@map$, .@x, .@y, "Summoned Monster", CaveMaggot, 1, "sk#zarkor::OnNone", Size_Medium, 1); + dispbottom l("All monsters summoned!"); /* can be: Size_Medium = medium (default) -- cgit v1.2.3-60-g2f50