Postado Fevereiro 10, 2015 10 anos Estou com um erro não sei o porque, alguém poderia me ajudar [Error - TalkAction Interface] data/talkactions/scripts/info.lua:onSay Description: data/talkactions/scripts/info.lua:15: attempt to concatenate a nil value stack traceback: data/talkactions/scripts/info.lua:15: in function <data/talkactions/scripts/info.lua:13> Tanto no meu talkactions, como no creaturescripts.. Creaturescrtips: function getUpTimeString() local wut = getWorldUpTime() local h, m = math.floor(wut / 3600), math.floor((wut % 3600) / 60) if m == 60 then m = 0 h = h + 1 end return h..' hour'..(h > 1 and 's' or '')..' and '..m..' minute'..(m > 1 and 's' or '') end function onLogin(cid) local redlenght, blacklenght = math.floor(getConfigInfo('redSkullLength') / 86400), math.floor(getConfigInfo('blackSkullLength') / 86400) local str = 'Welcome to UnderWar Retro Tibia Server\nServer Information:\n\nExp Stage: x'..(getConfigInfo('experienceStages') == 'true' and getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) or getConfigInfo('rateExperience'))..'\nSkills rate: x'..getConfigInfo('rateSkill')..'\nLoot Rate: x'..getConfigInfo('rateLoot')..'\nMagic Rate: x'..getConfigInfo('rateMagic')..'\nSpawns Rate: x'..getConfigInfo('rateSpawn')..'\n\nWorld Type: '..(getWorldType() == 1 and 'No-PVP' or getWorldType() == 2 and 'PVP' or 'PVP-Enforced')..'\nFrags RED Skull: '..getConfigInfo('dailyFragsToRedSkull')..' por dia, '..getConfigInfo('weeklyFragsToRedSkull')..' por semana ou '..getConfigInfo('monthlyFragsToRedSkull')..' por mês. Duração: '..redlenght..' dia'..(redlenght > 1 and 's' or '')..'.\nFrags BLACK Skull: '..getConfigInfo('dailyFragsToBlackSkull')..' por dia, '..getConfigInfo('weeklyFragsToBlackSkull')..' por semana ou '..getConfigInfo('monthlyFragsToBlackSkull')..' por mês. Duração: '..blacklenght..' dia'..(blacklenght > 1 and 's' or '')..'.\n\nProtection System:\nAté o level '..getConfigInfo('protectionLevel')..', o jogador que morrer sem skull não perderá seu loot.\n\nPromotion System:\nVoce pode comprar sua promotion na Queen Eloise ou King Tibianus por 20k ou pode fazer a Desert Quest e ganhar de graça a promotion!\n\nBlessing System:\nJogadores possuem as 5 blessings, incluindo proteção aos seus itens.\nJogadores Red e Black Skull sempre perderão o loot.\n\nHouses: Pagamento semanal no DP da cidade onde está a casa.\n\n'..(getPlayerPremiumDays(cid) < 1 and 'VIP days: Torne-se VIP e ajude o servidor a continuar online.' or 'Ainda lhe restam '..getPlayerPremiumDays(cid)..' dias de VIP.')..'\n\nUptime: '..getUpTimeString() if getPlayerLastLoginSaved(cid) < 1 then doPlayerPopupFYI(cid, str) end return true end Talkactions : function getUpTimeString() local wut = getWorldUpTime() local h, m = math.floor(wut / 3600), math.floor((wut % 3600) / 60) if m == 60 then m = 0 h = h + 1 end return h..' hour'..(h > 1 and 's' or '')..' and '..m..' minute'..(m > 1 and 's' or '') end function onSay(cid) local redlenght, blacklenght = math.floor(getConfigInfo('redSkullLength') / 86400), math.floor(getConfigInfo('blackSkullLength') / 86400) local str = 'Welcome to UnderWar Retro Tibia Server\nServer Information:\n\nExp Stage: x'..(getConfigInfo('experienceStages') == 'true' and getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) or getConfigInfo('rateExperience'))..'\nSkills rate: x'..getConfigInfo('rateSkill')..'\nLoot Rate: x'..getConfigInfo('rateLoot')..'\nMagic Rate: x'..getConfigInfo('rateMagic')..'\nSpawns Rate: x'..getConfigInfo('rateSpawn')..'\n\nWorld Type: '..(getWorldType() == 1 and 'No-PVP' or getWorldType() == 2 and 'PVP' or 'PVP-Enforced')..'\nFrags RED Skull: '..getConfigInfo('dailyFragsToRedSkull')..' por dia, '..getConfigInfo('weeklyFragsToRedSkull')..' por semana ou '..getConfigInfo('monthlyFragsToRedSkull')..' por mês. Duração: '..redlenght..' dia'..(redlenght > 1 and 's' or '')..'.\nFrags BLACK Skull: '..getConfigInfo('dailyFragsToBlackSkull')..' por dia, '..getConfigInfo('weeklyFragsToBlackSkull')..' por semana ou '..getConfigInfo('monthlyFragsToBlackSkull')..' por mês. Duração: '..blacklenght..' dia'..(blacklenght > 1 and 's' or '')..'.\n\nProtection System:\nAté o level '..getConfigInfo('protectionLevel')..', o jogador que morrer sem skull não perderá seu loot.\n\nPromotion System:\nVoce pode comprar sua promotion na Queen Eloise ou King Tibianus por 20k ou pode fazer a Desert Quest e ganhar de graça a promotion!\n\nBlessing System:\nJogadores possuem as 5 blessings, incluindo proteção aos seus itens.\nJogadores Red e Black Skull sempre perderão o loot.\n\nHouses: Pagamento semanal no DP da cidade onde está a casa.\n\n'..(getPlayerPremiumDays(cid) < 1 and 'VIP days: Torne-se VIP e ajude o servidor a continuar online.' or 'Ainda lhe restam '..(getPlayerStorageValue(thing.uid, 13500) - timenow)..' dias de VIP.')..'\n\nUptime: '..getUpTimeString() doPlayerPopupFYI(cid, str) return true end Uso OTX, por favor me ajudem. Agradeço desde de já.
Postado Fevereiro 10, 2015 10 anos O script que postou está muito desorganizado. Isso desanima em tentar ajudar. Por favor, conserte. Também seria bom falar sobre o que seu script exatamente faz. Editado Fevereiro 10, 2015 10 anos por Frenesy (veja o histórico de edições)
Postado Fevereiro 10, 2015 10 anos Autor Esse script eu peguei de um topico.... ele é uma mensagem inicial, quando entra no ot pela primeira vez aparece essa mensagem, testei em outro server e funcionou mais quando coloquei no meu deu esse erro peguei desse topico : http://www.tibiaking.com/forum/topic/49118-mensagem-e-popyup-ao-logar-primeira-vez/ do suicide alguem ? Editado Fevereiro 10, 2015 10 anos por larisa44 (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.