diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-22 16:20:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-22 16:20:58 -0300 |
commit | e949105b053717a08116f102fe2710db9d0fb57a (patch) | |
tree | 7c1d60d155bb6c1fc85e11f6a089414ae19d79f7 /npc | |
parent | a2a0047ddbe74db5b846d5da2471d3fe559bb246 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/magic/abizit.txt | 28 | ||||
-rw-r--r-- | npc/scripts.conf | 1 |
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", |