in the phase where he casts the spell add
x = pUnit:GetX()
y = pUnit:GetY()
z = pUnit:GetZ()
o = pUnit:GetO()
pUnit:SpawnCreature(npcid, x, y, z, o, faction, how long you want him out in milliseconds)
(btw 0 is permanent)
example
Code:
function Boar_Mini (pUnit, Event)
x = pUnit:GetX();
y = pUnit:GetY();
z = pUnit:GetZ();
o = pUnit:GetO();
pUnit:SpawnCreature(800009, x-10, y-2, z, 20, 14, 0);
pUnit:SendChatMessage(42, 0, "Agathelos Spawns a Minion!")
end
the sendchatmessage above as 42 is a raid warning. I added -10 so the mob appears a little bit away instead of right on him.
if you dont have pUnit, you could use Unit instead
Code:
function Boar_Mini (Unit, Event)
x = Unit:GetX();
y = Unit:GetY();
z = Unit:GetZ();
o = Unit:GetO();
Unit:SpawnCreature(800009, x-10, y-2, z, 20, 14, 0);
Unit:SendChatMessage(42, 0, "Agathelos Spawns a Minion!")
end