Caso tenha um sistema vip faça isso:
ACTION ITEM: CRIE UM ARQUIVO CHAMADO VIP VIP Item.lua em /actions/scripts
function onUse(cid, item, fromPosition, itemEx, toPosition)
local config={
removeOnUse = "yes" -- remover quando usar ("yes" or "no")
}
local days = 30 -- dias que serão adicionados
local daysvalue = days * 24 * 60 * 60
local storageplayer = getPlayerStorageValue(cid, AQUI STORAGE DO SEU VIP SYSTEM)
local timenow = os.time()
if getPlayerStorageValue(cid, AQUI STORAGE DO SEU VIP SYSTEM) - os.time() <= 0 then
time = timenow + daysvalue
else
time = storageplayer + daysvalue
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.")
setPlayerStorageValue(cid, AQUI STORAGE DO SEU VIP SYSTEM, time)
local quantity = math.floor((getPlayerStorageValue(cid, AQUI STORAGE DO SEU VIP SYSTEM) - timenow)/(24 * 60 * 60))
doSendMagicEffect(getPlayerPosition(cid), math.random(28,30))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.")
if (config.removeOnUse == "yes") then
doRemoveItem(item.uid, 1)
end
return TRUE
end
Em actions.xml ponha :
<action itemid="ID QUE VAI CLICAR E DAR VIP" script="VIP Item.lua"/>
Quanto ao storage do seu vip,depende do sistema vip que você usa.