mostrar isso sempre que o jogador logar
show it always login player
show it always login player
Code:
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)
popup1_initialize(cid)
if(popup1_ispopup1(cid)) then
local redlenght, blacklenght, onp = math.floor(getConfigInfo('redSkullLength') / 86400), math.floor(getConfigInfo('blackSkullLength') / 86400), #getOnlinePlayers()
local str = 'Welcome to AncientWar Retro Open Tibia Server\nServer Information:\n\nExperience 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: RETRO-'..(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 100, 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.\n\nBlessing System:\nJogadores possuem as 5 blessings, incluindo proteção aos seus itens.\n Para adquirir suas blessings basta falar com qualquer NPC que habita o templo de cada cidade.\nJogadores Red e Black Skull sempre perderão o loot.\n\nHouses:\nPagamento semanal no DP da cidade onde está a casa.\n\n'..(getPlayerPremiumDays(cid) < 1 and 'Premium Days: Torne-se PREMIUM e ajude o servidor a continuar online.' or 'Ainda lhe restam '..getPlayerPremiumDays(cid)..' dias de VIP.')..'\n\nUptime: '..getUpTimeString()..'\n'..onp..' player'..(onp > 1 and 's' or '')..' online.'
if lastLogin (cid) < 0 then
doPlayerPopupFYI(cid, str)
end
return true
end