From e4234ca6464d8ea04e94dab9145dab5de98df944 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 9 Aug 2018 23:36:37 -0300 Subject: Fix Zarkor skill cooldown, as I'm on magic scripts. --- npc/magic/zarkor.txt | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'npc/magic') diff --git a/npc/magic/zarkor.txt b/npc/magic/zarkor.txt index 6c4980c33..c303a0665 100644 --- a/npc/magic/zarkor.txt +++ b/npc/magic/zarkor.txt @@ -24,10 +24,9 @@ OnCall: } // Check cooldown - /* TODO */ - // This will only vanish upon logout =/ - if (@zark_caveat) { - dispbottom l("Skill is in cooldown."); + // This will vanish upon logout =/ + if (@zark_at > gettimetick(2)) { + dispbottom l("Skill is in cooldown for @@.", FuzzyTime(@zark_at)); end; } @@ -47,11 +46,9 @@ OnCall: // Get a single mana experience point (this is NOT used by Mana Stone) GetManaExp(@sk, 1); - /* // set cooldown - @skzarkor_cooldown=gettimetick(2)+20; - */ - @zark_caveat=1; + @zark_at=gettimetick(2); + @zark_at=@parum_at+20; end; OnInit: -- cgit v1.2.3-60-g2f50