script .
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config={
removeOnUse = "yes" -- remover quando usar ("yes" or "no")
}
local storage = 8301 -- storage da vip
if getPlayerStorageValue(cid, storage) >= 1 then
doPlayerSendTextMessage(cid, 22, "Desculpe voce ja clico no item")
return true
end
setPlayerStorageValue(cid, storage, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você ganhou vip")
doSendMagicEffect(getPlayerPosition(cid), math.random(28,30))
if (config.removeOnUse == "yes") then
doRemoveItem(item.uid, 1)
end
return TRUE
end