Ir para conteúdo
  • 0

[Warning - ProtocolGame::sendFYIBox] Trying to send an empty or too huge message Sera Que é n o Login.lua


Muvuka

Pergunta

local config = {
	loginMessage = getConfigValue('loginMessage')
}

function onLogin(cid)
local loginmsg = "[Seja Bem Vindo(a).] Fiquem Ligado Nas Features e Nos Eventos de SEG-SEG Feriado Fim de Semana em Breve Mais Updat no Servidor. [WhatsApp Main Contact Server]: Link: bit.ly/3UaRZcB - [WhatsApp/root]: +55 (11) 91230-8360 - Link: bit.ly/3Zc0KFn - [WhatsApp Pra Player]: Link: bit.ly/3WcOZ2c"
doCreatureSay(getCreatureByName(getCreatureName(cid)), loginmsg, TALKTYPE_PRIVATE, false, cid)
local loginmsg = "[Seja Bem Vindo(a).] Se quizer ajudar a manter o server on faça uma doação https://vakinha.bio/2298926 - Chave Aleatoria PicPay: c9058b4d-93f5-47fe-bd91-5c2d82ba1893 Pelo Numero Tel-Comercial: +5511912308360 CPF: 389.429.678-09 E-Mail: po-ca@hotmail.com QR-CODE: https://bit.ly/41tCUoF"
doCreatureSay(getCreatureByName(getCreatureName(cid)), loginmsg, TALKTYPE_PRIVATE, false, cid)
local loginmsg = "[Warning + Aviso] O-Administrador Nunca Pedira Seu 'Login/Senha/Recovery-Key/E-Mail' - Ou Algo Mais do Jogo Por Favor Não Compartilhe Nada Pessoal Com Ninguem Evite Coloca Mesmo Login e Senha do Outro Servidor Nesse Pra Pessoas Mal Intecionadas Não te Hackia Caso Esqueça ou Perca Login e Senha Manda um E-Mail Pra Central po-ca@hotmail.com"
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, loginmsg)
local loginmsg = " Boost [O Atributo Selecionado Foi]: (Loot + 100%) Com um Bônus de: (Rate + 100%) O Bônus do Monstro Foi Loot, Então o Monstro Terá Melhor Drop de Loot e EXP."
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, loginmsg)
local loginmsg = "[DexSoft-CASTLE]: A Guild que dominar o Castle24Hs e o Castle48Hs recebe 50%~100% a mais de EXP!."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, loginmsg)
local loginmsg = " Digite !bless Para Comprar e Não Perde - XP/Skills/Itens. Com a Bless Voce Não Perde Nada É Como Se Fosse o Segundo -AOL- Custa 80k."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, loginmsg)
local loginmsg = "[Guild] Ultilize o comando !glist e veja as guilds do OTserv e !glist + nome da guild para ver os players."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)
local loginmsg = " Multi-Client or Magebomb is not allowed."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)
local loginmsg = "[DexSoft-Pagamento-PayPal]: Ajude a Manter Servidor Online, Ganhe SET Donate e Acessdo Donate Itens -=[FULL DNT]=- Spell: imortalidade Tudo Donate Fazendo PIX R$100,00 Para: CPF: 389.429.678-09"
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)
local loginmsg = "[É Proibido Usar Tibia Multi Client Nesse Servidor]"
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)



local maxaccbyip = 1
local accm = {}
local pbi = getPlayersByIp(getPlayerIp(cid))
function antiTumb(cid)
for _,player in ipairs(pbi) do
if getCreatureName(player) == "Account Manager" then
table.insert(accm, player)
end
end
if #accm > maxaccbyip then
print("Foi ultrapassado o limite maximo de contas online com o seguinte ip "..convertIntToIP(getPlayerIp(cid)).."\npor motivos de seguranca todos os accounts managers com esse ip foram kickados\nAnti-Nuker System 2.0")
for _,player in ipairs(accm) do
doRemoveCreature(player)
end
end
return true
end
addEvent(antiTumb, 10, 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, "Exp_Recovery")
registerCreatureEvent(cid, "Player_Aura")
registerCreatureEvent(cid, "Exp_L")
registerCreatureEvent(cid, "owned")
registerCreatureEvent(cid, "WarKill")
registerCreatureEvent(cid, "WarAttack")
         registerCreatureEvent(cid, "WarKill") 
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "Infriendlyfire")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Criticalbob")
if getPlayerStorageValue(cid, 48904) == -1 then
        setPlayerStorageValue(cid, 48904, 0) 
    end 
registerCreatureEvent(cid, "Baú Maluko")
registerCreatureEvent(cid, "ReflectDodge")
registerCreatureEvent(cid, "CheckFim")
registerCreatureEvent(cid, "EffectOutLogin3")
registerCreatureEvent(cid, "OutfitEffect3")
registerCreatureEvent(cid, "EffectOutLogin2")
registerCreatureEvent(cid, "OutfitEffect2")
registerCreatureEvent(cid, "EffectOutLogin")
registerCreatureEvent(cid, "OutfitEffects")
registerCreatureEvent(cid, "ReflectDodgeroot")
doPlayerOpenChannel(cid, 5)
doPlayerOpenChannel(cid, 9)
doPlayerOpenChannel(cid, 6)
doPlayerOpenChannel(cid, 13)
doPlayerOpenChannel(cid, 11)
doPlayerOpenChannel(cid, 15)
doPlayerOpenChannel(cid, 12)
registerCreatureEvent(cid, "[EXP] Statue")
registerCreatureEvent(cid, "PlayersSummonsCannotDamagePlayer")
registerCreatureEvent(cid, "ReflectStone")
registerCreatureEvent(cid, "critical")
if getPlayerStorageValue(cid, 48913) == -1 then
        setPlayerStorageValue(cid, 48913, 0) 
    end 
registerCreatureEvent(cid, "MultipleExp")
registerCreatureEvent(cid, "killer")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "onPrepareDeath")
registerCreatureEvent(cid, "CheckVip")
registerCreatureEvent(cid, "YouDead")
registerCreatureEvent(cid, "DeathPlayer")
registerCreatureEvent(cid, "playerDeathChannelLogin")
registerCreatureEvent(cid, "Exp_P")
registerCreatureEvent(cid, "fullmh")
registerCreatureEvent(cid, "MarketLogin")
registerCreatureEvent(cid, "Medo")
registerCreatureEvent(cid, "ReflectPower")
registerCreatureEvent(cid, "CheckBless")
registerCreatureEvent(cid, "ReflectDodge")
registerCreatureEvent(cid, "HitCritical")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "onPrepareDeath2")
registerCreatureEvent(cid, "Vipitemdnt")
registerCreatureEvent(cid, "Critical")
if getPlayerStorageValue(cid, 48904) == -1 then
        setPlayerStorageValue(cid, 48904, 0) 
    end 
registerCreatureEvent(cid, "InfiniteBless")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "reflect")
if getPlayerStorageValue(cid, 48903) == -1 then
        setPlayerStorageValue(cid, 48903, 0) 
    end 
registerCreatureEvent(cid, "ReflectStone")
registerCreatureEvent(cid, "castAttack")
registerCreatureEvent(cid, "castHits")
registerCreatureEvent(cid, "castLogout")
registerCreatureEvent(cid, "checkvip")
registerCreatureEvent(cid, "Vipitem")
registerCreatureEvent(cid, "Start Skills")
registerCreatureEvent(cid, "Vip1")
registerCreatureEvent(cid, "ADDV")
registerCreatureEvent(cid, "Vip2")
registerCreatureEvent(cid, "Tafeioip")
registerCreatureEvent(cid, "HeadshotCritical")
registerCreatureEvent(cid, "Tafeio")
registerCreatureEvent(cid, "Bone")
registerCreatureEvent(cid, "VipL")
registerCreatureEvent(cid, "VipLog")
registerCreatureEvent(cid, "LoginVIP")
registerCreatureEvent(cid, "Vipsystem")
registerCreatureEvent(cid, "Vipsystem1")
registerCreatureEvent(cid, "ProtectLevel")
registerCreatureEvent(cid, "lol")
registerCreatureEvent(cid, "ExpVipP")
registerCreatureEvent(cid, "LOL")
registerCreatureEvent(cid, "onPrepareDeath3")
registerCreatureEvent(cid, "Anti-Push")
registerCreatureEvent(cid, "killer")
registerCreatureEvent(cid, "onlinebonus")
registerCreatureEvent(cid, "ResetLook")
registerCreatureEvent(cid, "Castle")
registerCreatureEvent(cid, "castAttack")
registerCreatureEvent(cid, "fraglook")
registerCreatureEvent(cid, "castHits")
registerCreatureEvent(cid, "castLogout")
setPlayerStorageValue(cid, 1111, -1)
registerCreatureEvent(cid, "antiparalyze")
registerCreatureEvent(cid, "miss")

registerCreatureEvent(cid, "vocEfeito") 
registerCreatureEvent(cid, "Tepao")
registerCreatureEvent(cid, "PlayerReborn")
registerCreatureEvent(cid, "vocEfeito") 
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "vipacc") 
registerCreatureEvent(cid, "ZombieAttack")
registerCreatureEvent(cid, "efeitodnt")
registerCreatureEvent(cid, "addReset")
registerCreatureEvent(cid, "AnunciarM")
registerCreatureEvent(cid, "Mortes")
registerCreatureEvent(cid, "Heart")
registerCreatureEvent(cid, "WeaponPar")
registerCreatureEvent(cid, "firstmessage")
registerCreatureEvent(cid, "fist")
registerCreatureEvent(cid, "Amulet Inf")
registerCreatureEvent(cid, "Reward")
registerCreatureEvent(cid, "CheckVip")
registerCreatureEvent(cid, "HeartDrop")
registerCreatureEvent(cid, "attackguild")	

registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "KillBoss")
registerCreatureEvent(cid, "ExpVip")
registerCreatureEvent(cid, "look")
registerCreatureEvent(cid, "fragslook")
registerCreatureEvent(cid, "Arabe")
registerCreatureEvent(cid, "MutePlayer")
registerCreatureEvent(cid, "TopEffect")

registerCreatureEvent(cid, "showKD")
registerCreatureEvent(cid, "Playeradvance")
 registerCreatureEvent(cid, "DeathSystem")
registerCreatureEvent(cid, "vipeffects")
registerCreatureEvent(cid, "anunciarmorte")
registerCreatureEvent(cid, "FimVip")
registerCreatureEvent(cid, "DodgeSystem")
    if getPlayerStorageValue(cid, 98798644) == -1 then
        setPlayerStorageValue(cid, 98798644, 0) 
    end
registerCreatureEvent(cid, "owned")
registerCreatureEvent(cid, "invencible")
if getPlayerStorageValue(cid, 3482101) ~= 0 then
        setPlayerStorageValue(cid, 3482101, 0) 
end
registerCreatureEvent(cid, "Rankfrags")
registerCreatureEvent(cid, "FirstItems")
registerCreatureEvent(cid, "Aurea")
registerCreatureEvent(cid, "attackguild") 
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "DodgeSystem")
    if getPlayerStorageValue(cid, 123455678) == -1 then
        setPlayerStorageValue(cid, 123455678, 0) 
    end
registerCreatureEvent(cid, "SkullAmulet")
registerCreatureEvent(cid, "DeathList")
registerCreatureEvent(cid, "Aurea")
registerCreatureEvent(cid, "MonsterMK")
registerCreatureEvent(cid, "avisarServer")
registerCreatureEvent(cid, "AntiNuker")
registerCreatureEvent(cid, "onPrepareDeathinifi")
registerCreatureEvent(cid, "Efeitoup")
registerCreatureEvent(cid, "MorteAnunciada")
registerCreatureEvent(cid, "DeathSystem")
registerCreatureEvent(cid, "AntiMC")
registerCreatureEvent(cid, "Antimagebombb")
registerCreatureEvent(cid, "FragReward")
registerCreatureEvent(cid, "pvpsystem")
registerCreatureEvent(cid, "savePlayer")
registerCreatureEvent(cid, "savePlayer_L")
registerCreatureEvent(cid, "Monster")
registerCreatureEvent(cid, "forever amulet")
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "KillTOPLevel")
setFrags(cid)
local loginstorage = getPlayerStorageValue(cid, 9999)
setPlayerStorageValue(cid, 9999, loginstorage + 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It is yours " .. loginstorage + 1 .. " login to ots")
-- Verificar se é primeira vez que loga, pois ao usar storage ele ja começa com -1,
-- Então vamos zera-lo para que sua Reputação comece do 0.
    if (InitArenaScript ~= 0) then
    InitArenaScript = 1
    -- make arena rooms free
        for i = 42300, 42309 do
            setGlobalStorageValue(i, 0)
            setGlobalStorageValue(i+100, 0)
        end
    end
    -- 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 
    if (InitArenaScript ~= 0) then
    InitArenaScript = 1
    -- make arena rooms free
        for i = 42300, 42309 do
            setGlobalStorageValue(i, 0)
            setGlobalStorageValue(i+100, 0)
        end
    end
    -- 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  
registerCreatureEvent(cid, "Rankfrags")
setFrags(cid)
if getPlayerStorageValue(cid, 39722) < 1 then
setPlayerStorageValue(cid, 39722, 1)
end
if getPlayerStorageValue(cid, 12036) == -1 then
setPlayerStorageValue(cid, 12036, 1)
end
return true
end

 

Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

  • 0

O erro que você está enfrentando "[Warning - ProtocolGame::sendFYIBox] Trying to send an empty or too huge message" geralmente ocorre quando uma mensagem enviada para o cliente do jogo é muito longa ou está vazia.

No código login.lua que você forneceu, há várias mensagens de boas-vindas e outras informações sendo enviadas ao jogador através de funções como doPlayerSendTextMessage e doCreatureSay. O problema pode ser causado por uma dessas mensagens sendo muito longa ou por estar vazia, o que resulta no erro.

Aqui estão algumas sugestões para corrigir o problema:

  1. Verifique o Tamanho das Mensagens:

    • O cliente do Tibia (8.60) tem uma limitação no tamanho das mensagens que pode exibir. Tente encurtar as mensagens ou dividir informações muito longas em várias partes.
  2. Remova ou Comente Algumas Mensagens:

    • Tente comentar algumas das mensagens para verificar se o erro desaparece. Se funcionar, você poderá reintroduzir as mensagens de maneira mais curta e adequada.
  3. Verifique Mensagens Vazias:

    • Certifique-se de que nenhuma das variáveis de loginmsg esteja vazia antes de serem enviadas.

Exemplo de como encurtar uma das mensagens:
 

local loginmsg = "[Bem-Vindo!] Fique ligado nas features e eventos! Mais updates em breve. Contato: bit.ly/3UaRZcB."
doCreatureSay(getCreatureByName(getCreatureName(cid)), loginmsg, TALKTYPE_PRIVATE, false, cid)

 

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...