testa
function onLogin(cid)
if isVip(cid) == FALSE then
doPlayerSetPromotionLevel(cid,1)
end
local vip = isVip(cid)
if getVipTime(cid) > 0 and vip == FALSE then
local townid = 2
doPlayerSetTown(cid, townid)
local storage = XXXX -- valor da sua storage
local templePos = getTownTemplePosition(getPlayerTown(cid))
doTeleportThing(cid, templePos, false)
setPlayerStorageValue(cid, storage, -1)
setVipTime(cid, 0)
doTeleportPlayers(cid, templePos)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sua Vip acabou!")
elseif vip == TRUE then
local duration = getVipDate(cid)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você possui "..getVipDays(cid).." dia(s) de vip."..(duration and (" Ela irá durar até "..duration..". Agora você tem 20% de exp a mais!") or ""))
end
return TRUE
end