EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::LUA (https://www.eqemulator.org/forums/forumdisplay.php?f=680)
-   -   NPC Self buff in POK (https://www.eqemulator.org/forums/showthread.php?t=40190)

druid64 11-20-2015 06:14 PM

NPC Self buff in POK
 
I am trying to get some npcs to self buff in Pok but they never cast past the frist spell.

Code:

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

Code:

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);



All times are GMT -4. The time now is 05:27 AM.

Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.