Advertisement
Guest User

BW plugin example

a guest
Mar 31st, 2013
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. --------------------------------------------------------------------------------
  2. -- Module Declaration
  3. --
  4.  
  5. local mod = BigWigs:NewBoss("Horridon Flasher", 930) -- Throne of Thunder id
  6. if not mod then return end
  7. mod:RegisterEnableMob(68476, 69374) -- Horridon, War-God Jalak
  8.  
  9. --------------------------------------------------------------------------------
  10. -- Initialization
  11. --
  12.  
  13. function mod:GetOptions()
  14.     return {
  15.         {137458, "FLASH"} -- Add "Dire Call" option and add a flash sub-option
  16.     }
  17. end
  18.  
  19. function mod:OnBossEnable()
  20.     self:Log("SPELL_CAST_START", "DireCall", 137458) -- Register Dire Call spell id
  21.  
  22.     self:Death("Disable", 68476) -- Disable on death
  23. end
  24.  
  25. --------------------------------------------------------------------------------
  26. -- Event Handlers
  27. --
  28.  
  29. function mod:DireCall(args)
  30.     self:Flash(args.spellId)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement