xfrom = 64 -- X-pos from
xto = 89 -- X-pos to
yfrom = 121 -- Y-pos from
yto = 186 -- Y-pos to
zpos = 7 -- Z-pos, floor
doPlayerSay(cid,"/bc white The Orcs are attacking Zion from the west",1) -- Message
monster = {
{m="Orc", num=50}, -- The monsters and count to summon
{m="Orc Warlord", num=30},
{m="Orc Shaman", num=40},
{m="Orc Leader", num=30},
{m="Orc Berserker", num=40},
{m="Orc Rider", num=40},
{m="Hydra", num=20}
}
for i, x in ipairs(monster) do
repeat
xpos = math.random(xfrom,xto) -- Creating the X-pos randomly
ypos = math.random(yfrom,yto) -- Creating the Y-pos randomly
pos = {x=xpos, y=ypos, z=zpos} -- Putting it together
doSummonCreature(x.m,pos) -- Summons creature
a = a + 1 -- Counter, don't touch
until a >= x.num -- Checks how many monsters you've created
a = 0 -- Counter, don't touch
end
doPlayerSendCancel(cid,"Raid executed.")