can someone give me the commands so my boss *lua file* can summon creature near players?
Code:
function Arthas_onKillTarget(pUnit, Event)
local X = pUnit:GetX()
local Y = pUnit:GetY()
local Z = pUnit:GetZ()
local O = pUnit:GetO()
pUnit:SpawnCreature(68901, X, Y, Z, O, 18, 30000)
if pUnit:GetMaxHealth() == 1000000 then
pUnit:SetMaxHealth(1200000)
end
if pUnit:GetMaxHealth() == 120000 then
pUnit:SetMaxHealth(140000)
end
if pUnit:GetMaxHealth() == 140000 then
pUnit:SetMaxHealth(160000)
end
if pUnit:GetMaxHealth() == 160000 then
pUnit:SetMaxHealth(180000)
end
end
What i need is to make him to spawn the units every 100 sec and near him to assist. not only when he kill someone...