summaryrefslogblamecommitdiff
path: root/world/map/npc/magic/level0-discharge.txt
blob: 17d1da76ce045107676cfd5d9d01962456adf59f (plain) (tree)
1
2
3
4
5


                                 

                                            














                                                                                                          
-|script|discharge spell|32767
{
    if(call("magic_checks")) end;
    set CASTS, CASTS + 1;
    if (CASTS < 0) set CASTS, 1; // overflow
    callfunc "magic_exp";

    // tell the spells they were discharged
    // XXX: maybe we could make it do area damage when you discharge (release your energy all of a sudden)
    addtimer 0, "::OnDischarge"; // seeks OnDischarge in ALL npcs
    end;

OnInit:
    set .school, SKILL_MAGIC;
    set .invocation$, chr(MAGIC_SYMBOL) + "discharge"; // used in npcs that refer to this spell
    void call("magic_register");
    set .level, 0;
    set .exp_gain, 0;
    end;
}