A seção correta seria está: http://www.xtibia.com/forum/Duvidas-sobre-Scripts-f189.html
Só não te respondo porque não sei nem o básico direito de scripting.
Por nectof, 11 de nov. de 2009 em Archived
A seção correta seria está: http://www.xtibia.com/forum/Duvidas-sobre-Scripts-f189.html
Só não te respondo porque não sei nem o básico direito de scripting.
info
Grupo: Conde
Registrado: 11/02/09
Posts: 559
Reputação: +7
Char no Tibia: Deep Druid

Ryl
Quando o tópico estiver na seção incorreta, reporte-o para que um moderador mova o tópico para a seção correta.
Tópico reportado :button_cancel:
Abraços.
Editado Novembro 12 por MattheusOT
info
Grupo: Barão
Registrado: 15/02/09
Posts: 203
Reputação: +13
Char no Tibia: Dom Diego De La Vega

Tópico Movido para Dúvidas sobre Scripts.
Mais atenção a onde posta brother.
info
Grupo: Campones
Registrado: 12/11/06
Posts: 15
Reputação: 0
Char no Tibia: Trapizunga

Vlw ae e me desculpem por postar em local errado.
Será que alguem poderia postar um script "login.lua" e/ou "bless.lua" diferente desse que postei?
Desde ja agradeço e fico o aguardo...
info
Grupo: Campones
Registrado: 12/11/06
Posts: 15
Reputação: 0
Char no Tibia: Trapizunga
Olá,
Procurei por toda parte qual seria o melhor local pra pedir ajuda, mas não encontrei. Se estiver em local errado espero q me desculpem. :sosad:
Estou tendo um probleminha e gostaria que vocês me ajudassem porfavor.
Quando um player compra as 5 bless pelo comando !bless e depois morre, ele volta pro level 1 indepensente de ja ter comprado promotion.
Tinha um cara com mesmo problema em outro forum e disse que o problema era no arquivo login.lua, mas o mesmo não quis postar o arquivo pra ajudar
Uso o TFS 0.3.5/8.52
Peço aí que me ajudem com esse problema plx!
Vou postar aqui alguns scripts pra ver se ajudam a vcs a me ajudarem
"data/creaturescripts/scripts"
login.lua
local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) 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, "GuildMotd") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "ArenaKill") registerCreatureEvent(cid, "QuestMonster") -- if he did not make full arena 1 he must start from zero if getPlayerStorageValue(cid, 42309) < 1 then for i = 42300, 42309 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 2 he must start from zero if getPlayerStorageValue(cid, 42319) < 1 then for i = 42310, 42319 do setPlayerStorageValue(cid, i, 0) end end -- if he did not make full arena 3 he must start from zero 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) -- did not arena level end setPlayerStorageValue(cid, 42350, 0) -- time to kick 0 setPlayerStorageValue(cid, 42352, 0) -- is not in arena return true end"data/talkactions/scripts"
bless.lua