Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::LUA

Quests::LUA Section regarding LUA scripts, help, questions, answers

Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2015, 06:14 PM
druid64
Fire Beetle
 
Join Date: Dec 2011
Posts: 20
Default 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
Reply With Quote
  #2  
Old 02-09-2016, 06:22 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 502
Default

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

~Shin Noir
DungeonEQ.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:23 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3