Originally Posted by
xgamer08
here is the script:
function Deathwing_OnCombat (Unit, Event)
pUnit:SendChatMessage (12, 0, "You will burn by the fires of the Black Dragon Flight!")
pUnit:RegisterEvent ("Deathwing_Boulder", 5000, 5)
pUnit:RegisterEvent ("Deathwing_Armageddon", 10000, 0)
end
function Deathwing_Boulder (pUnit, Event)
pUnit:CastSpellOnTarget (59732, pUnit:GetRandomPlayer (0))
end
function Deathwing_Armageddon (pUnit, Event)
pUnit:CastSpell (45915)
end
function Deathwing_OnDied (Unit, Event)
pUnit:SendChatMessage (12, 0, "No........This cannot be.....I promise all of you will burn!")
pUnit:RemoveEvents()
end
function Deathwing_OnKilledTarget (Unit, Event)
pUnit:SendChatMessage (12, 0, "HAHAHAHA. Yet another incinerated soul!")
end
function Deathwing_OnLeaveCombat (Unit, Event)
pUnit:RemoveEvents()
end
RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
RegisterUnitEvent(50, 4, "Deathwing_OnDied")
RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")
Well, First off all it would be nice if you was to put it into [code] boxes, but none the less i will help you out, what you have done is placed a " " after each of the commands, which in call is probably not making them be called to work. So let me fix it up for you!
Code:
function Deathwing_OnCombat(Unit, Event)
Unit:SendChatMessage(12, 0, "You will burn by the fires of the Black Dragon Flight!")
Unit:RegisterEvent("Deathwing_Boulder", 5000, 5)
Unit:RegisterEvent("Deathwing_Armageddon", 10000, 0)
end
function Deathwing_Boulder(Unit, Event)
Unit:CastSpellOnTarget(59732, Unit:GetRandomPlayer (0))
end
function Deathwing_Armageddon(Unit, Event)
Unit:CastSpell(45915)
end
function Deathwing_OnDied(Unit, Event)
Unit:SendChatMessage(12, 0, "No........This cannot be.....I promise all of you will burn!")
Unit:RemoveEvents()
end
function Deathwing_OnKilledTarget(Unit, Event)
Unit:SendChatMessage(12, 0, "HAHAHAHA. Yet another incinerated soul!")
end
function Deathwing_OnLeaveCombat(Unit, Event)
Unit:RemoveEvents()
end
RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
RegisterUnitEvent(50, 4, "Deathwing_OnDied")
RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")
Now that is just from what i can quickly see, there seems to be no noticable errors so try that one. Thanks for posting
EDIT:Aha even noticed another one, you have a mix of "pUnit" and "Unit", which im guessing could also be clashing, and the fact you are sometimes calling on "Unit" and using "pUnit" instead. So, One sec ill fix it again.
There you go, that one should work.