A maioria vem com uma talkaction para checar.
Posta o seu vip, que eu tento fazer um para você.
info
Grupo: Lorde
Registrado: 17/01/09
Posts: 2.1k
Reputação: +395
Char no Tibia: Adra Sata

A maioria vem com uma talkaction para checar.
Posta o seu vip, que eu tento fazer um para você.
info
Grupo: Artesão
Registrado: 13/07/11
Posts: 104
Reputação: +4
Char no Tibia: Willliam Serravalle

meu system vip e por item!
actions
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, 13540)
local timenow = os.time()
if getPlayerStorageValue(cid, 13540) - 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, 13540, time)
local quantity = math.floor((getPlayerStorageValue(cid, 13540) - 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
Editado Novembro 21 por Churupetinhaa
info
Grupo: Conde
Registrado: 30/10/11
Posts: 625
Reputação: +101
Gênero: Masculino

se for pro proprio player(n testado)
function onSay(cid, words, param) local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(x, 13540) - timenow)/(24 * 60 * 60)) if quantity ~= 0 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "o player "..param.." tem ".. quantity .." dias de VIP restantes.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "o player "..param.." n tem vip .") end end
se for pro god (n testado)
function onSay(cid, words, param) x = getCreatureByName(param) local timenow = os.time() local quantity = math.floor((getPlayerStorageValue(x, 13540) - timenow)/(24 * 60 * 60)) if param == " " or x == nill then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Invalid param specified.") return true end if(not isPlayer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "o nome n e de um player online...") return true end if quantity ~= 0 then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "o player "..param.." tem ".. quantity .." dias de VIP restantes.") else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "o player "..param.." n tem vip .") return true end end
info
Grupo: Artesão
Registrado: 13/07/11
Posts: 104
Reputação: +4
Char no Tibia: Willliam Serravalle

ae manin deu erro da uma olhada ae quando o player fala da isso
[22/11/2011 12:54:27] [Error - TalkAction Interface]
[22/11/2011 12:54:27] data/talkactions/scripts/chekvip.lua:onSay
[22/11/2011 12:54:27] Description:
[22/11/2011 12:54:27] (luaGetCreatureStorage) Creature not found
[22/11/2011 12:54:27] [Error - TalkAction Interface]
[22/11/2011 12:54:27] data/talkactions/scripts/chekvip.lua:onSay
[22/11/2011 12:54:27] Description:
[22/11/2011 12:54:27] data/talkactions/scripts/chekvip.lua:3: attempt to perform arithmetic on a boolean value
[22/11/2011 12:54:27] stack traceback:
[22/11/2011 12:54:27] data/talkactions/scripts/chekvip.lua:3: in function <data/talkactions/scripts/chekvip.lua:1>
info
Grupo: Visconde
Registrado: 23/02/08
Posts: 273
Reputação: +101
Char no Tibia: Foxx Rookslayer

function onSay(cid, words, param) local timenow = os.time() if not isPlayer(getPlayerByName(param)) then doPlayerSendCancel(cid, 'Player \''..param..'\' not found.') return true end local pid = getPlayerByName(param) local quantity = math.floor((getPlayerStorageValue(pid, 13540) - timenow)/(24 * 60 * 60)) if quantity ~= 0 then doPlayerSendTextMessage(cid, 27, "The player '"..param.."' have ".. quantity .." VIP days left.") else doPlayerSendTextMessage(cid, 27, "The player '"..param.."' is not VIP.") end return true end
Creditos: lordbug99
@Lordbug (offtopic)
A frase que voce mandou o Google traduzir esta em falta com uma virgula, por isso foi mal traduzida. Tenta traduzir isto:
An ancient persian, God of death and demon of deceit and mendacity. He loves to destroy lifes.
Editado Novembro 22 por Byerne
info
Grupo: Artesão
Registrado: 13/07/11
Posts: 104
Reputação: +4
Char no Tibia: Willliam Serravalle

mas esse ae e pra god eu quero o para o player
pow vlw pela ajuda!
info
Grupo: Artesão
Registrado: 13/07/11
Posts: 104
Reputação: +4
Char no Tibia: Willliam Serravalle
Boa tarde galera to querendo um script que check a vip do player pode ser por comando ou por globaleventes , pq tenho aki em meu ot um system de vip de da use no item , so achei aki no forum talkaction com !buyvip , nao quero buyvip quero sem agradecido desde ja