Cara , se não me engano a mensagem de login , a branca quando o player entra está muito grande .
Mude o loginMessage , em seu Config.lua
Espero ter resolvido sua duvida ![]()
Por juliok80, 22 de dez. de 2012 em Scripts
info
Grupo: Marquês
Registrado: 25/09/10
Posts: 1.3k
Reputação: +446
Gênero: Masculino

Cara , se não me engano a mensagem de login , a branca quando o player entra está muito grande .
Mude o loginMessage , em seu Config.lua
Espero ter resolvido sua duvida ![]()
SendFYIBox, é aquela caixa de mensagem For Your Information, que só aguenta, se não me engano, 255 caracteres. Verifique em algum script que usa a função doPlayerPopupFYI com um texto muito grande.
Na verdade são 1018 caracteres de limite, mas é um número duvidoso
isso é pra impedir que os players tomem debug, mensagem fyi em branco ou muito grandes fazem o cliente fechar
você pode usar a função 2x em seguidas que vai aparecer 2 caixas fyi pro players, aí da pra dividir a mensagem em mais de um caixa
pra falar a verdade pode abrir várias caixas ao mesmo tempo, mas também tem limite que o cliente suporta, depois de uma boa quantidade de caixas abertas o cliente também dá debug
info
Grupo: Artesão
Registrado: 15/11/12
Posts: 120
Reputação: +17
Char no Tibia: Ba Rao

Mas olha só galera, quando o player faz login as unicas mensagens que aparecem são essas da imagem abaixo (00:40 Bem vindo! / Seu ultimo login foi Fri Dec 21 22:21:52 2012.):

Obrigado gente!
Editado Dezembro 22 por juliok80
é cara, é porque a mensagem FYI foi bloqueada pra você não tomar debug, abre o arquivo login.lua que fica em data/creaturescripts/scripts e coloca aqui
info
Grupo: Artesão
Registrado: 15/11/12
Posts: 120
Reputação: +17
Char no Tibia: Ba Rao

é cara, é porque a mensagem FYI foi bloqueada pra você não tomar debug, abre o arquivo login.lua que fica em data/creaturescripts/scripts e coloca aqui
Opa, tá ai o 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 Subwat = getPlayerAccountManager(cid)
if(Subwat == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Seu ultimo login foi " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. "The BEST"
doPlayerSendOutfitWindow(cid)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(Subwat == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appearss that your character has been namelocked, what would you like as your new name?")
elseif(Subwat == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Ola, digite 'account' acessar sua conta ou digite 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Ola, digite 'account' Para criar uma conta no Subwat ou 'recover' Para recuperar conta perdida.")
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
doPlayerPopupFYI(cid, message)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bem vindo!")
registerCreatureEvent(cid, "Mail")
if getPlayerLevel(cid) < 717217 then
registerCreatureEvent(cid, "AdvanceTeleport")
end
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "DeathBroadcast")
registerCreatureEvent(cid, "addons")
registerCreatureEvent(cid, "FragReward")
registerCreatureEvent(cid, "ZombieAttack")
registerCreatureEvent(cid, "onPrepareDeath")
registerCreatureEvent(cid, "magebomb")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "RepLogin")
registerCreatureEvent(cid, "ReportBug")
doSetCreatureLight(cid, 25, 250, -1)
return true
end
Tá aí o problema, a função doPlayerPopupFYI utiliza uma variável que não foi declarada no script.
local config = {
loginMessage = getConfigValue('loginMessage')
}
function onLogin(cid)
local loss = getConfigValue('deathLostPercent')
if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local Subwat = getPlayerAccountManager(cid)
if(Subwat == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Seu ultimo login foi " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
else
str = str .. "The BEST"
doPlayerSendOutfitWindow(cid)
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(Subwat == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appearss that your character has been namelocked, what would you like as your new name?")
elseif(Subwat == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Ola, digite 'account' acessar sua conta ou digite 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Ola, digite 'account' Para criar uma conta no Subwat ou 'recover' Para recuperar conta perdida.")
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
local message = "Subwat Server - Um mapa escroto com hunts escrotas para gente escrota"
doPlayerPopupFYI(cid, message)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bem vindo!")
registerCreatureEvent(cid, "Mail")
if getPlayerLevel(cid) < 717217 then
registerCreatureEvent(cid, "AdvanceTeleport")
end
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "DeathBroadcast")
registerCreatureEvent(cid, "addons")
registerCreatureEvent(cid, "FragReward")
registerCreatureEvent(cid, "ZombieAttack")
registerCreatureEvent(cid, "onPrepareDeath")
registerCreatureEvent(cid, "magebomb")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "RepLogin")
registerCreatureEvent(cid, "ReportBug")
doSetCreatureLight(cid, 25, 250, -1)
return true
end
Agora sim funcionará.
Abraços.
info
Grupo: Artesão
Registrado: 15/11/12
Posts: 120
Reputação: +17
Char no Tibia: Ba Rao

Tá aí o problema, a função doPlayerPopupFYI utiliza uma variável que não foi declarada no script.
local config = { loginMessage = getConfigValue('loginMessage') } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local Subwat = getPlayerAccountManager(cid) if(Subwat == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Seu ultimo login foi " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. "The BEST" doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(Subwat == MANAGER_NAMELOCK) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appearss that your character has been namelocked, what would you like as your new name?") elseif(Subwat == MANAGER_ACCOUNT) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Ola, digite 'account' acessar sua conta ou digite 'cancel'.") else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Ola, digite 'account' Para criar uma conta no Subwat ou 'recover' Para recuperar conta perdida.") end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end local message = "Subwat Server - Um mapa escroto com hunts escrotas para gente escrota" doPlayerPopupFYI(cid, message) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bem vindo!") registerCreatureEvent(cid, "Mail") if getPlayerLevel(cid) < 717217 then registerCreatureEvent(cid, "AdvanceTeleport") end registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "DeathBroadcast") registerCreatureEvent(cid, "addons") registerCreatureEvent(cid, "FragReward") registerCreatureEvent(cid, "ZombieAttack") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "magebomb") registerCreatureEvent(cid, "SkullCheck") registerCreatureEvent(cid, "RepLogin") registerCreatureEvent(cid, "ReportBug") doSetCreatureLight(cid, 25, 250, -1) return true end
Agora sim funcionará.
Abraços.
Ah man, eu vi a mensagem que tu pois ai no script ![]()
Mancada sua... acho que cada um tem um gosto, e esse tipo de comentário foi desnecessário.
Vou ver se isso resolve o meu problema e já volto pra falar.
@Edit
Aeeeeeeeeee funcionou!!!!
Muito obrigado cara... assim que liberar o +rep eu lhe dou. ![]()
Se alguém quiser fechar o tópico, pode ficar a vontade.
Editado Dezembro 23 por juliok80
info
Grupo: Artesão
Registrado: 15/11/12
Posts: 120
Reputação: +17
Char no Tibia: Ba Rao
E ai galera do Xtibia, de boas!?
Vamos ver se alguém ai consegue me ajudar... é o seguinte, toda vez que algum player faz login surge a mensagem abaixo no console do otserv.
Segue abaixo as "IBAGENS" para o cobandante Abilton!
Alguém sabe o que eu faço pra arrumar isso?
Agradeço desde que nasci!
Um forte abraço e até mais.