summaryrefslogtreecommitdiff
path: root/npc/magic/abizit.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-22 16:20:58 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-22 16:20:58 -0300
commite949105b053717a08116f102fe2710db9d0fb57a (patch)
tree7c1d60d155bb6c1fc85e11f6a089414ae19d79f7 /npc/magic/abizit.txt
parenta2a0047ddbe74db5b846d5da2471d3fe559bb246 (diff)
downloadserverdata-e949105b053717a08116f102fe2710db9d0fb57a.tar.gz
serverdata-e949105b053717a08116f102fe2710db9d0fb57a.tar.bz2
serverdata-e949105b053717a08116f102fe2710db9d0fb57a.tar.xz
serverdata-e949105b053717a08116f102fe2710db9d0fb57a.zip
Implement abizit magic skill (there's no alias, you must @sk-abizit)
Diffstat (limited to 'npc/magic/abizit.txt')
-rw-r--r--npc/magic/abizit.txt28
1 files changed, 28 insertions, 0 deletions
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 <admin@tmw2.org>
+//
+// 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;
+}