summaryrefslogtreecommitdiff
path: root/npc/magic/kalmurk.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/magic/kalmurk.txt')
-rw-r--r--npc/magic/kalmurk.txt26
1 files changed, 12 insertions, 14 deletions
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: