local rewards = {2148,2152,2160}
local ilosc = {4,7,9}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, item.uid) == -1 then
rand = math.random(1,#rewards)
doPlayerAddItem(cid, rewards[rand], ilosc[rand])
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Wesolych Swiat!")
setPlayerStorageValue(cid, item.uid, 1)
end
return true
end