From cbaeeca7d3b248f1c5544317701d6f3f9b0b057c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 16 Jul 2018 11:36:21 -0300 Subject: Stabilize stuff, Kalmurk prep --- npc/magic/kalmurk.txt | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'npc/magic/kalmurk.txt') diff --git a/npc/magic/kalmurk.txt b/npc/magic/kalmurk.txt index 8bd9f7f45..1471180eb 100644 --- a/npc/magic/kalmurk.txt +++ b/npc/magic/kalmurk.txt @@ -23,36 +23,34 @@ OnCall: } // Check cooldown - /* TODO */ - // This will only vanish upon logout =/ - if (@kalmurk_caveat) { - dispbottom l("Skill is in cooldown."); + if (@kalmurk_at > gettimetick(2)) { + dispbottom l("Skill is in cooldown for @@.", FuzzyTime(@kalmurk_at)); end; } // Setup - .@sk=TMW2_KALMURK; - .@mp=200; - .@amp=50; + @sk=TMW2_KALMURK; + @mp=200; + @amp=50; // Check if you have mana to cast // MagicCheck(SkillID, Mana{, MP per level}) - if (!MagicCheck(.@sk, .@mp, .@amp)) + if (!MagicCheck(@sk, @mp, @amp)) end; // Summon Magic - SummonMagic(.@sk, CaveMaggot, 2); + // SummonMagic(SkillID, MobID{, MobPerSkillLevel=2{, Level Override}}) + SummonMagic(@sk, Maggot, 2); delitem MaggotSlime, 2; // Get a single mana experience point (this is NOT used by Soul Menhir) - GetManaExp(TMW2_KALMURK, 1); + GetManaExp(@sk, 1); + - /* // set cooldown - @skkalmurkor_cooldown=gettimetick(2)+20; - */ - @kalmurk_caveat=1; + @kalmurk_at=gettimetick(2); + @kalmurk_at=@kalmurk_at+16; end; OnInit: -- cgit v1.2.3-70-g09d2