summaryrefslogtreecommitdiff
path: root/npc/magic/abizit.txt
blob: 311498b8794ba05930f45a2bff4a6563cf366621 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// TMW2 script
// Author: Jesusalva <admin@tmw2.org>
//
// Magic Script: -
//
// Abizit() reports your magic power

-	script	sk#abizit	32767,{
    end;

OnCall:
    // Must have magic
    if (!MAGIC_LVL)
        end;

    // 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;
}