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:
andfunction 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")
What am i doing wrong or is there any other way to spawn a creatur with lua?function Boss_Spawn(Unit)
Unit:SpawnCreature(999998, -4353, -11471, 1, 18, 0, 60000)
end
RegisterUnitEvent(999999, 1, "Boss_OnCombat")
My second problem is that if my boss cast a cyclon it usually afflict the main tank so i tryed out this:
But now the Boss dont use the spell anymore and i get an error in the ascent window that the Unit:GetRandomPlayer(7) is wrong or so :/function Jessica_Cyclone(Unit)
Unit:FullCastSpellOnTarget(33786,Unit:GetRandomPlayer(7))
end
is there any lua maybe freak ^^ who can tell me how to fix this problems? Thanks!
sry for my bad englishsry sry sry