1. function boss_OnCombat(event, unit, plr)
  2. unit:SendUnitSay("I KNOW YOU! YOU ARE MEAT!", 1)
  3. unit:CastSpell(plr, 64719)
  4. unit:RegisterEvent(spell_90, 1, 0)
  5. end
  6. function spell_90(eventID, delay, pCall, unit, plr)
  7. if (unit:GetHealthPct() <= 90) then
  8. unit:RemoveEventById(eventID)
  9. unit:SendUnitSay("Testin dat shiz", 0)
  10. unit:CastSpell(plr, 31436)
  11. end
  12. end
  13. function boss_OnLeaveCombat(event, unit)
  14. unit:SendUnitSay("Why no meat?", 0)
  15. end
  16. function boss_OnDied(event, unit)
  17. unit:SendUnitSay("How can a couple of tiny meatlings beat me, my lord?...", 0)
  18. end
  19. function boss_OnKilledTarget(event, unit)
  20. unit:SendUnitSay("MEAT!", 0)
  21. end
  22. RegisterCreatureEvent(NPC_ID, 1, boss_OnCombat)
  23. RegisterCreatureEvent(NPC_ID, 2, boss_OnLeaveCombat)
  24. RegisterCreatureEvent(NPC_ID, 3, boss_OnKilledTarget)
  25. RegisterCreatureEvent(NPC_ID, 4, boss_OnDied)