silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 211
hello folks, I need make it work for a big script, I want that the function remove all items from determined area to me load a map ...
the function..
also, it need remove ground items aswell, also some tile positions have more than 1 item
the function..
Code:
local function removeItems()
for x = config.position.fromPosition.x, config.position.toPosition.x do
for y = config.position.fromPosition.y, config.position.toPosition.y do
for z = config.position.fromPosition.z, config.position.toPosition.z do
local tile = Tile(Position(x, y, z))
if not tile then
break
end
-- HERE I NEED THAT CODE
end
end
end
end