Hey there, I was wondering if anyone can help me with the LUA Script I've been working on, it's small and very simple but it's my first one appart from editing a teleporter.
Thanks.
Code:
local mob = 87979
function Mannoroth_OnEnterCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "Who do you think you are? You come into my sanctuary, thinking you can destroy all that I am? I shall destroy you like that orc fool, Grom!")
end
function Mannoroth_OnLeaveCombat(Unit, Event)
Unit:SendChatMessage(11, 0, "Flee! Feed me with your shame!")
end
function Mannoroth_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(11, 0, "DIE! Maggot, I'll kill you all with the power of the Legion!")
end
function Mannoroth_OnDied(Unit, Event)
Unit:SendChatMessage(11, 0, "I cannot die, I shall not die! Avenge.. me... master!")
end
Unit:RegisterUnitEvent(mob, 1, "Mannoroth_OnCombat")
Unit:RegisterUnitEvent(mob, 2, "Mannoroth_OnLeaveCombat")
Unit:RegisterUnitEvent(mob, 3, "Mannoroth_OnKilledTarget")
Unit:RegisterUnitEvent(mob, 4, "Mannoroth_OnDied")
If anyone's a Lore Junky, I realise Mannoroth was killed, I couldn't resist adding him though.
For some reason, when I attack the boss he doesn't say anything.