local function doRemoveMonster(topLeft, bottomRight) -- remove monsters and items and players ;)
checking = {x=topLeft.x, y=topLeft.y, z=topLeft.z, stackpos=topLeft.stackpos}
playerArena = false
monsterArena = false
repeat
creature = getThingfromPos(checking)
if creature.itemid > 0 then
if isCreature(creature.uid) == TRUE then
doRemoveCreature(creature.uid)
monsterArena = true
else
doRemoveItem(creature.uid)
monsterArena = true
end
if isPlayer(creature.uid) == TRUE then
fullArena = true
end
end
checking.x=checking.x+1
if checking.x>bottomRight.x then
checking.x=topLeft.x
checking.y=checking.y+1
end
until checking.y>bottomRight.y
end