• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Request] clean script :)

ScorpiOOn93

etherno.net
Joined
Jun 19, 2008
Messages
662
Reaction score
1
Location
CookieLand :DDD
Try this one, not tested:
Lua:
function CleanArea(startPos, endPos)
local startPos={x=32707, y=32345, z=7, stackpos=255}
local endPos={x=32725, y=32357, z=7, stackpos=255}
    for posX=startPos.x, endPos.x do
        for posY=startPos.y, endPos.y do
            for posZ=startPos.z, endPos.z do
                local check = getThingfromPos({x=posX, y=posY, z=posZ, stackpos=255})
                if isPlayer(check.uid) == FALSE then
			if isItemMovable(check.uid) == TRUE then
                   	 	creatures.monsters = creatures.monsters+1
		   		check = {x=posX, y=posY, z=posZ, stackpos=255}
                    		doRemoveItem(check.uid)
			end
                end
            end
        end
    end
    return TRUE
end
 
Back
Top