summaryrefslogblamecommitdiff
path: root/npc/magic/abizit.txt
blob: 311498b8794ba05930f45a2bff4a6563cf366621 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                       



                      
















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