Hey guys. My script dosent spawn NPC's and im sure on i done everything right.... +Rep x2 to hoever helps me :P
Used GUA: Gastricpenguin
function Zombie_Phase1(Unit, Event)
if Unit:GetHealthPct() < 85 then
Unit:RemoveEvents()
Unit:SendChatMessage(14, 0, "Come brothers... Fight for your king once more")
x=Unit:GetX()
y=Unit:GetY()
z=Unit:GetZ()
o=Unit:GetO()
SpawnCreature(900136, x+5, y, z, o, 100, 180000, 0, 0, 0)
SpawnCreature(900136, x-5, y, z, o, 100, 180000, 0, 0, 0)
SpawnCreature(900136, x, y+5, z, o, 100, 180000, 0, 0, 0)
SpawnCreature(900136, x, y-5, z, o, 100, 180000, 0, 0, 0)
Unit:RegisterEvent("Zombie_Phase2", 1000, 0)
end
end