Esse script aê você coloca em data/creaturescripts/scripts, com o nome de VipFim, mas o arquivo tem que ser .lua
Em data/creaturescripts/xml adicione a linha:
<event type="login" name="VipFim" event="script" value="VipFim.lua"/>
E em data/creaturescripts/scripts/login.lua, adicione essa linha.
registerCreatureEvent(cid, "VipFim")
Já ia esquecendo, o storage da VIP usado nesse script é o 13540.
Flw.


info
Grupo: Campones
Registrado: 16/12/11
Posts: 31
Reputação: +3
Char no Tibia: Menoxcide
function onLogin(cid)
if getPlayerStorageValue(cid, 13540) - os.time() > 0 then
setPlayerStorageValue(cid, 9898, 1)
end
local pos = {x = 157, y = 50, z = 7} -- posiçao do templo.
function Vodka(cid)
if isPlayer(cid) then
db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid)..";")
doRemoveCreature(cid)
end
end
if getPlayerStorageValue(cid, 9898) == 1 and getPlayerStorageValue(cid, 13540) - os.time() < 1 or getPlayerStorageValue(cid, 13540) - os.time() == 0 then
doTeleportThing(cid, pos)
doPlayerPopupFYI(cid, "Sua vip Account acabou.")
setPlayerStorageValue(cid, 9898, -1)
if string.find(tostring(getCreatureName(cid)),"[[Vip]]") then
addEvent(Vodka, 3*1000, cid)
end
end
return TRUE
end
e eu tb nao sei qual storage é pra substitui pelo meu storage, pq tem 2 ai...se alguem puder ajudar agradeço =]