local GOLD_COIN_ID = 3031
local PLATINUM_COIN_ID = 3035
local CRYSTAL_COIN_ID = 3043
local belt_slot = belt()
if belt_slot.id == GOLD_COIN_ID and belt_slot.count == 100 then
useitem(GOLD_COIN_ID, 'belt')
wait(800, 1200)
belt_slot = belt()
if belt_slot.id == PLATINUM_COIN_ID and belt_slot.count == 1 then
moveitems(PLATINUM_COIN_ID, 0, 'belt', 100)
wait(800, 1200)
else
stackitems('', true, PLATINUM_COIN_ID)
end
elseif belt_slot.id == PLATINUM_COIN_ID and belt_slot.count == 100 then
useitem(PLATINUM_COIN_ID, 'belt')
wait(800, 1200)
belt_slot = belt()
if belt_slot.id == CRYSTAL_COIN_ID and belt_slot.count == 1 then
moveitems(CRYSTAL_COIN_ID, 0, 'belt', 100)
wait(800, 1200)
else
stackitems('', true, CRYSTAL_COIN_ID)
end
elseif itemcount(GOLD_COIN_ID) >= 100 and belt_slot.count < 100 then
moveitems(GOLD_COIN_ID, 'belt', '', 100)
wait(1000)
elseif itemcount(PLATINUM_COIN_ID) >= 100 and belt_slot.count < 100 then
moveitems(PLATINUM_COIN_ID, 'belt', '', 100)
wait(1000)
end