qual sistema de vip vc usa?
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru

uso o system vip by mock
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

Pocha cara se ninguem atendeu tente não cometer flood as vezes não consiguimos de atender todos os pedidos.
Crie um arquivo chamado townvip.lua na pasta creature/scripts.
function onThink(cid, interval, lastExecution, thinkInterval)
local town = 6 -----Coloque o id da cidade que preferir----------
if vip.hasVip(cid) == FALSE and getPlayerStorageValue(cid, 86662) == 0 then
doPlayerSetTown(cid, town)
doPlayerSendTextMessage(cid, 24, "Sua vip acabou voce voltou para "..town.."")
setPlayerStorageValue(cid, 86662, 1)
return true
end
if vip.hasVip(cid) == TRUE then
setPlayerStorageValue(cid, 86662, 0)
return true
end
return true
end
Coloca esta tag em creaturescripts.xml
<event type="think" name="townvip" event="script" value="townvip.lua">
Vai la em login.lua e coloca isto antes do ultimo return.
registerCreatureEvent(cid, "townvip")</event>
Editado Julho 5 por caotic
info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru

e vai funcionar?
nao funcionou
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

ñão o que deu??
info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru

deu um erro no distro eu eu testie e nao funcionou
puis asism no login arurma certo ai em manda por favor
local config = {
loginMessage = getConfigValue('loginMessage'),
useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))
}
function onLogin(cid)
registerCreatureEvent(cid, "onPrepareDeath")
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid),
config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. " Please choose your outfit."
doPlayerSendOutfitWindow(cid)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")
elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "TopFrags")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "inquisitionPortals")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "ArenaKill")
registerCreatureEvent(cid, "reward")
registerCreatureEvent(cid, "PythiusTheRotten")
registerCreatureEvent(cid, "KillingInTheNameOf")
registerCreatureEvent(cid, "task_count")
registerCreatureEvent(cid, "FimVip")
registerCreatureEvent(cid, "VipReceive")
if getPlayerStorageValue(cid, 42309) < 1 then
for i = 42300, 42309 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42319) < 1 then
for i = 42310, 42319 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42329) < 1 then
for i = 42320, 42329 do
setPlayerStorageValue(cid, i, 0)
end
end
if getPlayerStorageValue(cid, 42355) == -1 then
setPlayerStorageValue(cid, 42355, 0)
end
setPlayerStorageValue(cid, 42350, 0)
setPlayerStorageValue(cid, 42352, 0)
return true
registerCreatureEvent(cid, "townvip")
end
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

editei tenta agr
info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru

posta ai nao apareceu aki
info
Grupo: Infante
Registrado: 04/03/11
Posts: 1.6k
Reputação: +393
Char no Tibia: No Have

Ai mudei o script denovo tirei alguns bugs que ia fazer o player muda de cidade toda hora
Funfa agr
e ta no post de la de cima
info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru

o loguin eu pusi do jeito certo?
ainda nao deu certo algume me jaude por fravor
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru

fiz esatamente como sta no seu topíco mas nao funcionou ajuda ai
alguem ajuda ai qo scruipit no topíco acima funcionoui mas eu quero ele volte a ser morador de thais qunado a vip acabar ajuda ai?
info
Grupo: Herói
Registrado: 20/05/10
Posts: 3.4k
Reputação: +1.5k
Gênero: Masculino

function onLogin(cid) local thais_town = 2 -- town da cidade de thais if vip.hasVip(cid) == TRUE then setPlayerStorageValue(cid, 9898, 1) elseif getPlayerStorageValue(cid, 9898) == 1 and vip.hasVip(cid) == FALSE and vip.getVip(cid) == 0 then doPlayerSetTown(cid, thais_town) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerPopupFYI(cid, "Sua vip Account acabou.") setPlayerStorageValue(cid, 9898, -1) end return true end
Editado Julho 6 por Vodkart



info
Grupo: Artesão
Registrado: 14/01/09
Posts: 144
Reputação: +2
Char no Tibia: nikollaschimaru
Ola ja cansei de colocar esse topíco no xtbia e niguem me atende ajuda ai
E como colocar para que quando a vip do palyer acabe ele volte para thais ajuda ai por favor