This is the updated code, please help me add a message when player receive item, Example: "You won 1 Diamond (11447)"
local winnable_items = {
-- {item_id, item_count, % chance}
{11447, 1, 90},
{11442, 1, 40}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if...