local area = {
{x = 837, y = 964, z = 7}, -- top left position of area
{x = 842, y = 967, z = 7} -- bottom right position of area
}
function onThink(interval)
for _, pid in pairs(getPlayersOnline()) do
local pos = getThingPos(pid)
if pos.x >= area[1].x and pos.x <= area[2].x and pos.y >= area[1].y and pos.y <= area[2].y and pos.z == area[1].z then
doMoveCreature(pid, math.random(0, 3))
end
end
return true
end