Code:
function SWGuard_Spawn2(Unit, Event)
Unit:RegisterEvent("SWGuard_Spawn", 30000, 0)
end
function SWGuard_Spawn(Unit, Event)
local faction = 90
x = Unit:GetX();
y = Unit:GetY();
z = Unit:GetZ();
o = Unit:GetO();
Unit:SpawnCreature(68, x, y, z, o, faction, 30000)
end
Code:
function OrgGuard_Spawn2(Unit, Event)
Unit:RegisterEvent("OrgGuard_Spawn", 30000, 0)
end
function OrgGuard_Spawn(Unit, Event)
local faction = 90
x = Unit:GetX();
y = Unit:GetY();
z = Unit:GetZ();
o = Unit:GetO();
Unit:SpawnCreature(3296, x, y, z, o, faction, 30000)
end
Those are the LUA codes for it. Just copy each code into notepad and save the file as a ".lua" extension. Then put them into your "Scripts" folder in your core.