06-24-2011, 07:38 AM
Lol, thats beginner lua. But If you can script something like this
*I didn't do this*
function Elemental_OnCombat(Unit, Event)
Unit:SendChatMessage(13, 0, "Thunder will destroy you!")
Unit:RegisterEvent("Elemental_Arc", 2000, 0)
Unit:RegisterEvent("Elemental_Chain", 20000, 0)
Unit:RegisterEvent("Elemetal_Shield", 10000, 0)
Unit:RegisterEvent("Elemetal_Change", 1000, 1)
Unit:RegisterEvent("SummonWater",1000, 1)
Unit:RegisterEvent("SummonThunder", 1000, 1)
Unit:RegisterEvent("SummonEarth", 1000, 1)
Unit:RegisterEvent("Phase2", 1000, 1)
end
*I didn't do this*
function Elemental_OnCombat(Unit, Event)
Unit:SendChatMessage(13, 0, "Thunder will destroy you!")
Unit:RegisterEvent("Elemental_Arc", 2000, 0)
Unit:RegisterEvent("Elemental_Chain", 20000, 0)
Unit:RegisterEvent("Elemetal_Shield", 10000, 0)
Unit:RegisterEvent("Elemetal_Change", 1000, 1)
Unit:RegisterEvent("SummonWater",1000, 1)
Unit:RegisterEvent("SummonThunder", 1000, 1)
Unit:RegisterEvent("SummonEarth", 1000, 1)
Unit:RegisterEvent("Phase2", 1000, 1)
end