Hi,
i am scripting a boss with lua at the moment and i looked on the ascent wiki for events. I found the :SpawnCreatur(entryID, x, y, z, o, faction, duration)
event and wanted to try it out but no of my scripts work:
function Boss_OnCombat(Unit, event)
x=Unit:GetX();
y=Unit:GetY();
z=Unit:GetZ();
o=Unit:GetO();
Unit:SpawnCreature(999998, x y, z, o, 0, 600000)
end
RegisterUnitEvent(999999, 1, "Boss_OnCombat")
and
function Boss_Spawn(Unit)
Unit:SpawnCreature(999998, -4353, -11471, 1, 18, 0, 60000)
end
RegisterUnitEvent(999999, 1, "Boss_OnCombat")
What am i doing wrong or is there any other way to spawn a creatur with lua?
Is there any lua maybe freak ^^ who could help me how to fix this problems? Thanks!
sry for my bad english sry sry sry