Not tested but this should work:
local presents = {
[6570] = { -- item id of the item that will give u random items
{2687, 10}, {6394, 3}, 6280, 6574, 6578, 6575, 6577, 6569, 6576, 6572, 2114 --Setup the rewards here
}
}
function onUse(player, item, fromPosition, target...