From e949105b053717a08116f102fe2710db9d0fb57a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 22 Jun 2019 16:20:58 -0300 Subject: Implement abizit magic skill (there's no alias, you must @sk-abizit) --- npc/magic/abizit.txt | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 npc/magic/abizit.txt (limited to 'npc/magic') diff --git a/npc/magic/abizit.txt b/npc/magic/abizit.txt new file mode 100644 index 000000000..86bfa1822 --- /dev/null +++ b/npc/magic/abizit.txt @@ -0,0 +1,28 @@ +// TMW2 script +// Author: Jesusalva +// +// Magic Script: - +// +// Abizit() reports your magic power + +- script sk#abizit 32767,{ + end; + +OnCall: + // Check cooldown + if (@abizit_at > gettimetick(2)) { + dispbottom l("Skill is in cooldown for @@.", FuzzyTime(@abizit_at)); + end; + } + + abizit(false); + + // set cooldown + @abizit_at=gettimetick(2); + @abizit_at=@abizit_at+4; + end; + +OnInit: + bindatcmd "sk-abizit", "sk#abizit::OnCall", 0, 100, 0; + end; +} -- cgit v1.2.3-60-g2f50