Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = {
- from = {x=31994, y=32446, z=7},
- to = {x=31989, y=32444, z=7}
- }
- function isCleanAbleArea(pos)
- pos.stackpos = 0
- local tile = getThingfromPos(pos, false)
- if tile ~= 0 and not hasProperty(tile.uid, CONST_PROP_BLOCKSOLID) and not isCreature(getTopCreature(pos).uid) then
- return true
- end
- end
- function onSay(cid, words, param)
- if words == "!cleanxx" then
- for x = p.from.x, p.topos.x do
- for y = p.from.y, p.to.y do
- for z = p.from.z, p.to.z do
- local c = {x = x, y = y, z = z}
- if isCleanAbleArea(c) then
- doCleanTile(c, false)
- end
- end
- end
- end
- return true
- end
Add Comment
Please, Sign In to add comment