Code:
function Armagan_Mortalstrike(Unit)
Unit:CastSpellOnTarget(43441)
end
function Armagan_Consecration(Unit)
Unit:CastSpell(32773)
end
function Armagan_Repentance(Unit)
Unit:CastSpell(32779)
end
function Armagan_Start(Unit, Event)
Unit:RegisterEvent("Armagan_Mortalstrike",15000, 0)
Unit:RegisterEvent("Armagan_Consecration",8000, 0)
Unit:RegisterEvent("Armagan_Repentance",20000, 0)
Unit:SendChatMessage(12, 0, "You must be one of those ghouls, well you centraintly look like them! you wil bite the snow like all the others ive killed!")
end
RegisterUnitEvent(100010, 1, "Armagan_start")
function Armagan_OnDied(Unit)
Unit:RemoveEvents()
end
RegisterUnitEvent(100010, 4, "Armagan_OnDied")
function Armagan_OnLeaveCombat(Unit)
Unit:RemoveEvents()
end
RegisterUnitEvent(100010, 2, "Armagan_OnLeaveCombat")
this one doesnt work with the error
Code:
Tried to call invalid LUA function 'Armagan_start' from ascent
can anyone tell me whats wrong with this one
?