if ChangeDices then
if gettile(posx, posy-1, posz).count > 4 then
if toptileitem(posx,posy-1,posz) ~= 5792 and toptileitem(posx,posy-1,posz) ~= 5793 and toptileitem(posx,posy-1,posz) ~= 5794 and toptileitem(posx,posy-1,posz) ~= 5795 and toptileitem(posx,posy-1,posz) ~= 5796 and toptileitem(posx,posy-1,posz) ~= 5797 and toptileitem(posx,posy-1,posz) ~= 3035 and toptileitem(posx,posy-1,posz) ~= 3043 then
moveitems(toptileitem(posx, posy-1,posz), ground(posx, posy-1,posz), ground(posx+2, posy-1, posz), 100)
wait(500)
elseif toptileitem(posx,posy-1,posz) == 3035 then
moveitems(3035, ground(posx, posy-1,posz), ground(posx+1, posy-1, posz), 100)
wait(500)
elseif toptileitem(posx,posy-1,posz) == 3043 then
moveitems(3043, ground(posx, posy-1,posz), ground(posx+1, posy-1, posz), 100)
wait(500)
end
end
elseif not ChangeDices then
if gettile(posx, posy-1, posz).count > 4 then
if toptileitem(posx,posy-1,posz) ~= 3035 and toptileitem(posx,posy-1,posz) ~= 3043 then
moveitems(toptileitem(posx, posy-1,posz), ground(posx, posy-1,posz), ground(posx+2, posy-1, posz), 100)
wait(500)
elseif toptileitem(posx,posy-1,posz) == 3035 then
moveitems(3035, ground(posx, posy-1,posz), ground(posx+1, posy-1, posz), 100)
wait(500)
elseif toptileitem(posx,posy-1,posz) == 3043 then
moveitems(3043, ground(posx, posy-1,posz), ground(posx+1, posy-1, posz), 100)
wait(500)
end
end
end
Zakładki