summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/magic/abizit.txt28
-rw-r--r--npc/scripts.conf1
2 files changed, 29 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;
+}
diff --git a/npc/scripts.conf b/npc/scripts.conf
index 2187ee5fe..c41d800d4 100644
--- a/npc/scripts.conf
+++ b/npc/scripts.conf
@@ -107,6 +107,7 @@
"npc/commands/ucp.txt",
// Magic Commands
+"npc/magic/abizit.txt",
"npc/magic/cuteheart.txt",
"npc/magic/demure.txt",
"npc/magic/dragokin.txt",