Tenta aí
function onUse(cid, item, frompos, item2, topos)
local storage = 60000
local effect = 263
local itemAdd = 12761
if getPlayerStorageValue(cid,storage) == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce ganhou uma Blue Capsule!")
doPlayerAddItem(cid,itemAdd,1)
setPlayerStorageValue(cid,storage,1)
doSendMagicEffect(frompos, effect)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Voce já recebeu seu item.")
end
return true
end