PDA

View Full Version : NPC Self buff in POK


druid64
11-20-2015, 06:14 PM
I am trying to get some npcs to self buff in Pok but they never cast past the frist spell.

function event_spawn(e)
e.self:CastSpell(5473, e.self:GetID());
e.self:CastSpell(3031, e.self:GetID());
end

Shin Noir
02-09-2016, 06:22 AM
https://github.com/EQEmu/Server/wiki/Lua-Mob

spellfinished

two successive castspell calls have a delay between casts, and the script doesn't wait for the first to finish to continue to second


Boolean SpellFinished(Integer spell_id, Mob target);
Boolean SpellFinished(Integer spell_id, Mob target, Integer slot);
Boolean SpellFinished(Integer spell_id, Mob target, Integer slot, Integer mana_used);
Boolean SpellFinished(Integer spell_id, Mob target, Integer slot, Integer mana_used, Integer inventory_slot);
Boolean SpellFinished(Integer spell_id, Mob target, Integer slot, Integer mana_used, Integer inventory_slot, Integer resist_adjust);
Boolean SpellFinished(Integer spell_id, Mob target, Integer slot, Integer mana_used, Integer inventory_slot, Integer resist_adjust, Boolean proc);