diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-08-09 23:36:37 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-08-09 23:36:37 -0300 |
commit | e4234ca6464d8ea04e94dab9145dab5de98df944 (patch) | |
tree | 61b8bad7e90e450a537ba83471da1afb75f2c910 /npc | |
parent | 4af79e0e276ba70148c22e2d84cbc02e778e36f2 (diff) | |
download | serverdata-e4234ca6464d8ea04e94dab9145dab5de98df944.tar.gz serverdata-e4234ca6464d8ea04e94dab9145dab5de98df944.tar.bz2 serverdata-e4234ca6464d8ea04e94dab9145dab5de98df944.tar.xz serverdata-e4234ca6464d8ea04e94dab9145dab5de98df944.zip |
Fix Zarkor skill cooldown, as I'm on magic scripts.
Diffstat (limited to 'npc')
-rw-r--r-- | npc/magic/zarkor.txt | 13 |
1 files changed, 5 insertions, 8 deletions
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: |