mana cost -1 means get the correct mana cost from the spell file, probably means the same for recast delay
mana cost -2 means no mana cost for this spell and it also means that cast time is 0 instant
attack_proc is the spell id of the proc -1 means no proc
proc_chance is the % chance the proc will trigger on a hit
An npc spell entry in the database consists of an id in the table npc_spells which has the above two entries and the actual spell in the table npc_spells_entries. It has an id and then the npc_spells_entry that points back to the entry in the npc_spells table. The spell entry then has the spell id the type of spell it is (detailed below) and the level range the spell is usable. The mana cost and recast delay I covered above, and there's the priority field for the npc ai to use as to which spell is more important to cast with 0 being higher piority than 1.
Spell Types are:
Nuke=1;
Heal=2;
Root=4;
Buff=8;
Escape=16;
Pet=32;
Lifetap=64;
Snare=128;
DOT=256;
Dispel=512;
|