This should work man.
function onUse(cid, item, fromPosition, itemEx, toPosition)
local rewarditems = {
{id = 6132, chance = 5, count = 1}, -- start with the lowest chances
{id = 2361, chance = 10, count = 1},
{id = 2798, chance = 15, count = 15},
{id = 2160, chance =...