function Poop_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "I am poop!!!")
Unit:RegisterEvent("Poop_Spell1", 60000, 2)
end
function Poop_Spell1(Unit, Event)
Unit:FullCastSpellOnTarget(65883, Unit:GetClosestPlayer())
end
function Poop_OnLeaveComabt(Unit, Event)
Unit:RemoveEvents()
end
function Poop_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(12, 0, "You a dumb fool!!!")
end
function Poop_OnDied(Unit, Event)
Unit:SendChatMessage(12, 0, "Noooooo")
Unit:RemoveEvents()
end
RegisterUnitEvent(23574, 1, "Poop_OnCombat")
RegisterUnitEvent(23574, 2, "Poop_OnLeaveComabt")
RegisterUnitEvent(23574, 3, "Poop_OnKilledTarget")
RegisterUnitEvent(23574, 4, "Poop_onDied")
P.S
Muffin , if you know if i messed anything up could u let me know?
Unit:SendChatMessage(12, 0, "I am poop!!!")
Unit:RegisterEvent("Poop_Spell1", 60000, 2)
end
function Poop_Spell1(Unit, Event)
Unit:FullCastSpellOnTarget(65883, Unit:GetClosestPlayer())
end
function Poop_OnLeaveComabt(Unit, Event)
Unit:RemoveEvents()
end
function Poop_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(12, 0, "You a dumb fool!!!")
end
function Poop_OnDied(Unit, Event)
Unit:SendChatMessage(12, 0, "Noooooo")
Unit:RemoveEvents()
end
RegisterUnitEvent(23574, 1, "Poop_OnCombat")
RegisterUnitEvent(23574, 2, "Poop_OnLeaveComabt")
RegisterUnitEvent(23574, 3, "Poop_OnKilledTarget")
RegisterUnitEvent(23574, 4, "Poop_onDied")
P.S
Muffin , if you know if i messed anything up could u let me know?