Verrine
Member
- Joined
- Mar 2, 2016
- Messages
- 117
- Reaction score
- 7
Hi
I wrote in my old thread about that but it should be better to make another.
I need function that clean area I defined.
I have smth like this:
but it does not work ;<
Can someone tell me whats wrong, how to fix that or just give me any advices ? Im not good at this jet but Im trying all the time. Im just bored to reset all the time server to check that function (got this in libs so I cant just reload them)
I wrote in my old thread about that but it should be better to make another.
I need function that clean area I defined.
I have smth like this:
Code:
function doAreaClean(frompos, topos)
local Tile
local item = Tile(position):getItemById(itemid)
for x = frompos.x, topos.x do
for y = frompos.y, topos.y do
for z = frompos.z, topos.z do
local p = {x=x,y=y,z=z}
if isCleanAbleArea(p) then
if item then
item:remove()
end
end
end
end
end
end
Can someone tell me whats wrong, how to fix that or just give me any advices ? Im not good at this jet but Im trying all the time. Im just bored to reset all the time server to check that function (got this in libs so I cant just reload them)