function onUse(cid, item, fromPosition, itemEx, toPosition)
local items = {8982, 2002, 2001, 2005, 2640, 9928, 2160}
local pos1 = {x = 1083, y = 1014, z = 7, stackpos=255}
local pos2 = {x = 1084, y = 1014, z = 7, stackpos=255}
local pos3 = {x = 1085, y = 1014, z = 7, stackpos=255}
if item.itemid == 9826 or item.itemid == 9825 and item.uid == 6431 then
doCreateItem(items[math.random(1, #items)], 1, pos1)
addEvent(function()
doCreateItem(getThingfromPos(pos1).itemid, 1, pos2)
doRemoveItem(getThingfromPos(pos1).uid, 1)
doCreateItem(items[math.random(1, #items)], 1, pos1)
end, 1*1000)
addEvent(function()
doCreateItem(getThingfromPos(pos2).itemid, 1, pos3)
doRemoveItem(getThingfromPos(pos2).uid, 1)
end, 2*1010)
addEvent(function()
doCreateItem(getThingfromPos(pos1).itemid, 1,pos2)
doRemoveItem(getThingfromPos(pos1).uid, 1)
doCreateItem(items[math.random(1, #items)], 1, pos1)
end, 2*1020)
end
return true
end