- function boss_OnCombat(event, unit, plr)
- unit:SendUnitSay("I KNOW YOU! YOU ARE MEAT!", 1)
- unit:CastSpell(plr, 64719)
- unit:RegisterEvent(spell_90, 1, 0)
- end
- function spell_90(eventID, delay, pCall, unit, plr)
- if (unit:GetHealthPct() <= 90) then
- unit:RemoveEventById(eventID)
- unit:SendUnitSay("Testin dat shiz", 0)
- unit:CastSpell(plr, 31436)
- end
- end
- function boss_OnLeaveCombat(event, unit)
- unit:SendUnitSay("Why no meat?", 0)
- end
- function boss_OnDied(event, unit)
- unit:SendUnitSay("How can a couple of tiny meatlings beat me, my lord?...", 0)
- end
- function boss_OnKilledTarget(event, unit)
- unit:SendUnitSay("MEAT!", 0)
- end
- RegisterCreatureEvent(NPC_ID, 1, boss_OnCombat)
- RegisterCreatureEvent(NPC_ID, 2, boss_OnLeaveCombat)
- RegisterCreatureEvent(NPC_ID, 3, boss_OnKilledTarget)
- RegisterCreatureEvent(NPC_ID, 4, boss_OnDied)