mapPanel = modules.game_interface.getMapPanel() gameRootPanel = modules.game_interface.gameBottomPanel gameLeftPanel = modules.game_interface.getLeftPanel() gameTopMenu = modules.client_topmenu.getTopMenu() gameRoot = modules.game_interface.getRootPanel() local DEATH_SCREEN = nil local SCENE_BAR_1, SCENE_BAR_2, TELA_FULL, FADE_OUT, SKIP_SCENE = nil, nil, nil, nil, nil local ChestID, Pass_1, Pass_2, Pass_3, Pass_4 = 0, 0, 0, 0, 0 local Nexus_Time = 0 local WarView = false local Index_Time = 0 local QuestWind = nil local AlertWindow = 0 local speed = 300 local windAlert = Loot_0 local DelayLoot = 5000 local CINEMATIC = false local TaskWind, TaskVisible, TaskDelay, TaskWind1 = nil, 0, 5, nil local SAQ_GLOBAL_POSITION, SAQ_CHESTID = 0, 0 local alertPos = { [00] = { -- PC [00] = 070, [01] = 140, [02] = 210, [03] = 280, [04] = 350, [05] = 420, [06] = 490, [07] = 560, [08] = 630, [09] = 700, [10] = 770, }; [01] = { -- MOBILE [0] = 40, [1] = 85, [2] = 130, [3] = 175, [4] = 220, [5] = 265, }; } local PASSWORD_CHEST = { [01] = {PASS = 9255, TYPE = "COINS", ITEM = {003000, 00, 00, 00}, STORAGE = {0000, 100}}; [02] = {PASS = 1383, TYPE = "COINS", ITEM = {010000, 00, 00, 00}, STORAGE = {0000, 100}}; [03] = {PASS = 2431, TYPE = "COINS", ITEM = {025000, 00, 00, 00}, STORAGE = {0000, 100}}; [04] = {PASS = 4659, TYPE = "COINS", ITEM = {099000, 00, 00, 00}, STORAGE = {0000, 100}}; [05] = {PASS = 1736, TYPE = "EQUIP", ITEM = {009006, 09, 01, 00, 01}, STORAGE = {0000, 100}}; [06] = {PASS = 9467, TYPE = "EQUIP", ITEM = {007005, 07, 01, 00, 01}, STORAGE = {0000, 100}}; [07] = {PASS = 8342, TYPE = "EQUIP", ITEM = {004022, 04, 02, 00, 01}, STORAGE = {0000, 100}}; [08] = {PASS = 6621, TYPE = "EQUIP", ITEM = {005038, 05, 03, 00, 01}, STORAGE = {0000, 100}}; [09] = {PASS = 9446, TYPE = "EQUIP", ITEM = {003055, 03, 00, 00, 30}, STORAGE = {0000, 100}}; -- SAQUEADORES [10] = {PASS = 2552, TYPE = "EQUIP", ITEM = {03081, 03, 00, 00, 15}, STORAGE = {00002, 000}}; [11] = {PASS = 8349, TYPE = "ITEMS", ITEM = {03240, 03, 00, 00, 15}, STORAGE = {00002, 003}}; [12] = {PASS = 6397, TYPE = "ITEMS", ITEM = {03134, 03, 00, 00, 15}, STORAGE = {00002, 003}}; [13] = {PASS = 5412, TYPE = "ITEMS", ITEM = {03141, 03, 00, 00, 05}, STORAGE = {00002, 003}}; [14] = {PASS = 6141, TYPE = "ITEMS", ITEM = {03007, 03, 00, 00, 20}, STORAGE = {00002, 003}}; } function mask_number(n) local left,num,right = string.match(n,'^([^%d]*%d)(%d*)(.-)$') return left..(num:reverse():gsub('(%d%d%d)','%1,'):reverse())..right end function init() connect(g_game, { connect(g_game, 'onTextMessage', onAlertMessage), }) connect(g_game, { onGameEnd = offline }) WarPlacar = g_ui.displayUI('placar') timerPlacar = WarPlacar:recursiveGetChildById('timer') blueScore = WarPlacar:recursiveGetChildById('blueScore') redScore = WarPlacar:recursiveGetChildById('redScore') WarAlert = g_ui.displayUI('war') playerWarProgress = WarAlert:recursiveGetChildById('playerProgress') TutorView = g_ui.displayUI('tutor') TutorTitle = TutorView:recursiveGetChildById('title') TutorImg = TutorView:recursiveGetChildById('imgDestaque') TutorDesc = TutorView:recursiveGetChildById('desc') TimerView = g_ui.displayUI('timer') Desistir = TimerView:recursiveGetChildById('desistirDG') Timer1 = TimerView:recursiveGetChildById('Time1') Timer2 = TimerView:recursiveGetChildById('Time2') Timer3 = TimerView:recursiveGetChildById('Time3') Timer4 = TimerView:recursiveGetChildById('Time4') Loot_0 = g_ui.displayUI('alert') Loot_1 = g_ui.displayUI('alert') Loot_2 = g_ui.displayUI('alert') Loot_3 = g_ui.displayUI('alert') Loot_4 = g_ui.displayUI('alert') Loot_5 = g_ui.displayUI('alert') Chest = g_ui.displayUI('chest') Loot_0:hide() Loot_1:hide() Loot_2:hide() Loot_3:hide() Loot_4:hide() Loot_5:hide() TutorView:hide() TimerView:hide() Chest:hide() WarAlert:hide() WarPlacar:hide() end local Timer = 0 local TextTutor = { [00] = { -- PC [00] = { TITLE = "BOAS VINDAS", DESC = "Seja bem vindo ao RD Core.\n\nPara comecar bem sua jornada, pegue sua primeira arma no bau localizado aqui na Base." }; [01] = { TITLE = "EQUIPANDO ITEMS", DESC = "Logo abaixo, em seu HUD principal, clique no icone de mochila para abrir o menu do cliente.\n\nO mesmo menu tambem pode ser acessado usando o atalho Ctrl + U." }; [02] = { TITLE = "EQUIPANDO ITEMS", DESC = "Clique no slot pretendido para abrir sua backpack. Cada slot possui sua propria backpack individual, podendo ser expandido.\n\nAo abrir a backpack, clique no item para equipar." }; [03] = { TITLE = "ACESSANDO MISSOES", DESC = "Abrindo o menu, voce pode navegar por diferentes categorias.\n\nClique no icone de Quest para abrir o seu Quest Log e clique na Quest 'Primeiros Passos'." }; [04] = { TITLE = "RASTREANDO MISSOES", DESC = "Ao clicar em uma missao, voce podera ver detalhes sobre ela.\n\nClique em 'Rastrear Missao' para que o objetivo seja marcado em seu mapa." }; [05] = { TITLE = "FALANDO COM NPC", DESC = "Voce nao precisa digitar para falar com um NPC.\n\nClique com o botao direito do mouse sobre o NPC para falar com ele." }; [06] = { TITLE = "SKILL DE SUPORTE", DESC = "Como habilidade de suporte, voce tem: Velocidade e Cura.\n\nClique sobre elas para usar ou posicione o mouse sobre elas para mais informacoes." }; [07] = { TITLE = "REABASTECER", DESC = "O NPC Eryn pode recuperar toda a sua vida. Tambem lhe dara municao se voce tiver menos de 100. Tudo gratuitamente.\n\nFale com ele e clique em 'Reabastecer'." }; [08] = { TITLE = "CENTRAL BOX", DESC = "Essas sao as Central Box. Nelas voce pode vender seus itens ou aprimorar seus equipamentos. Voce tambem pode comprar municao e pocoes de cura." }; [09] = { TITLE = "USANDO SKILLS", DESC = "Clique sobre a skill para usa-la. Passe o mouse sobre ela para ver em qual Hotkey ela esta equipada.\n\nSe desejar mudar, clique com o botao direito do mouse sobre a skill para trocar a Hotkey." }; [10] = { TITLE = "EXPLORANDO O MAPA", DESC = "Pontos de Interrogacao ( ? ) indicam locais de interesse. Clique no icone de 'mundo' localizado na HUD inferior para abrir o mapa.\n\nNovos pontos de interesse sao desbloqueados a medida que avanca de level." }; [11] = { TITLE = "TRANSPORTE", DESC = "Para ajudar a se locomover mais rapidamente pelo continente, todo recruta que chega a ilha recebe uma montaria.\n\nPressione Ctrl + R para montar ou use a janela de outfit para selecionar a montaria." }; [12] = { TITLE = "SINCRONIZAcaO", DESC = "Descubra novos Nexus e desbloqueie novos locais de caca. Abra seu Mapa para ver os locais ja desbloqueados.\n\nSe for Premium Account, voce pode se teleportar para qualquer Nexus." }; [13] = { TITLE = "QUADRO DE ATIVIDADES", DESC = "Em um Quadro de Atividades voce pode iniciar Task, enfrentar Dangerous e outra atividade exclusiva do Nexus que esta. Cada Nexus possui seu proprio Quadro de Atividades com suas proprias tarefas." }; [14] = { TITLE = "BLACKLIST", DESC = "Use Pontos ganho em atividades no Quadro de Atividades para enfrentar bosses na Blacklist.\n\nTodo boss possui chance de dropar armas lendarias." }; [15] = { TITLE = "PONTOS ONLINE", DESC = "Algumas atividades exigem Pontos Online para participar. A cada 1 hora Online voce obtem x1 Ponto.\n\nVoce tambem pode usar esses pontos no Shop do servidor." }; [16] = { TITLE = "ESTaTUAS DE AcaO", DESC = "Este local contem algumas dessas estatuas.\n\nEncontre as Estatuas e clique nelas na ordem correta. A ultima estatua te levara para a sala de recompensas." }; [17] = { TITLE = "PENDULUM", DESC = "Encontre estes relogios por toda a area e clique neles na ordem correta.\n\nExiste 13 ao todo e o ultimo te levara para a sala de recompensas." }; [18] = { TITLE = "PILARES DE GELO", DESC = "Limpe toda a area primeiro. Apos isso, clique nos pilares de gelo para libera mais monstros.\n\nClique em todos para poder liberar acesso ao Bau de Recompensa." }; [19] = { TITLE = "LIMPANDO A aREA", DESC = "Existe 06 locais nesta area. Visite cada um desses locais e elimine todos os monstros nele.\n\nApos isso, clique no Objeto no centro da area para liberar o bau." }; [20] = { TITLE = "SKULL MONSTER", DESC = "Encontre e elimine os monstros que possuem uma Skull Branca abaixo de seu nome.\n\nElimine todos para ganhar acesso ao Bau." }; [21] = { TITLE = "SEQUeNCIA DE PORTAIS", DESC = "Passe pelos Portais na ordem correta para liberar acesso a proxima Zona." }; [22] = { TITLE = "VIG�LIA DA GARGULA", DESC = "Clique nas estatuas para mudar sua direcao.\n\nClique na estatua do Dragao para verificar se a posicao da gargula esta correta." }; [23] = { TITLE = "ESTaTUAS DA MEM�RIA", DESC = "Clique na estatua de dragao no centro para iniciar. Decore onde o efeito aparecera e clique nas estatuas de acordo." }; [24] = { TITLE = "CAMINHO DE LAVA", DESC = "Clique na estatua do dragao no final do caminho. Cuidado com os ataques vindos dos pilares." }; [25] = { TITLE = "PROTETOR DE CRISTAL", DESC = "Existem protetores espalhados por toda a area. Destrua-os para ser teleportado para a sala de recompensa." }; [26] = { TITLE = "CRISTAL DO ELEMENTO", DESC = "Cada piramide possui um elemento. Clique e encontre o Crystal correspondente ao elemento transformado. A ordem dos elementos pode ser visto na placa proxima." }; [27] = { TITLE = "RITMO PERFEITO", DESC = "Cada instrumento na mesa provoca uma reacao na estatua. Encontre o ritmo perfeito para poder sair desta area." }; [28] = { TITLE = "CONDUZINDO", DESC = "Clique na piramide no inicio da area. Conduza a essencia ate a proximo ponto. Redimensione a energia de acordo com a direcao que voce estiver olhando." }; [29] = { TITLE = "PILAR DIMENSIONAL", DESC = "Encontre pela area os Dimensional Pillar e os destrua. Fazendo isso, o Boss final aparecera.\n\nVenca-o para ser teleportado para a recompensa." }; [30] = { TITLE = "BOMBA ELEMENTAL", DESC = "Clique no anjo e varias explosoes elementais ocorrera. Clique nos pilares ao lado correspondente ao elemento da explosao para se proteger." }; [31] = { TITLE = "CHAMA DO DRAGaO", DESC = "Conduzir os dragoes pelo caminho ate as chamas. Os dois dragoes devem encontrar a chama ao mesmo tempo. A direcao que voce olha ao pisar no tile indica a direcao onde o dragao se movimentara." }; [32] = { TITLE = "CENTRAL DOS PORTAIS", DESC = "Encontre o portal correto para casa area do mapa. Cada area possui um Boss para eliminar ou um Puzzle para resolver.\n\nObtenha todos os Selos para prosseguir ate a recompensa." }; [33] = { TITLE = "ESTaTUA DOS IMORTAIS", DESC = "Clique na estatua para liberar o Boss. Passe por todos os bosses para ganhar acesso ao Bau." }; [34] = { TITLE = "DUELO DE KARDS", DESC = "NPCs com este icone indica que ele esta disposto a Duelar com voce. Voce pode encontrar NPCs como esse por toda a area Premium." }; [35] = { TITLE = "PENALIDADE DE MORTE", DESC = "Ao morrer, sua EXP sera congelada e nao sera mais possivel ganhar level. Para descongelar, pague a penalidade de EXP exigida.\n\nVoce podera comprar blessing no Shop para zerar sua penalidade." }; [36] = { TITLE = "ESTATUAS DA ORDEM", DESC = "Encontre estatuas como essa e clique nelas na ordem correta.\n\nO desafio sera concluido ao clicar em todas as 05 estatuas." }; [37] = { TITLE = "ENERGIZANDO", DESC = "Encontre e clique no Basin com fogo. Voce tera 40 segundos para encontrar os cristais que estao no ultimo andar de cada torre.\n\nEnergize os dois cristais e clique novamente no Basin para concluir o desafio." }; [38] = { TITLE = "SACRIFICIOS", DESC = "Encontre os pisos especiais nesta area. Voce deve eliminar os monstros somente em cima desse piso para o sacrificio ser aceito.\n\nRepita o processo 05 vezes para concluir o desafio." }; [39] = { TITLE = "SIGA EM FRENTE", DESC = "Apenas siga em frente e encontre o caminho para o portal que concluira esse desafio." }; [40] = { TITLE = "CASTELO DOS DRAKENS", DESC = "Elimine qualquer especie de Drakens 100 vezes para ganhar acesso ao Boss.\n\nElimine o Boss para concluir o desafio." }; [41] = { TITLE = "PORTAL INSTAVEL", DESC = "Drope dos monstros os x3 itens necessarios para passar pelo portal final.\n\nPasse pelo portal para concluir o desafio." }; [42] = { TITLE = "LOJA REMOTA", DESC = "O botao de atalho para a loja remota foi adicionado logo abaixo de seu inventario.\n\nClique para abrir uma Central Box em qualquer lugar." }; [43] = { TITLE = "NEXUS REMOTO", DESC = "Use o icone que surgiu em sua HUD principal, logo abaixo.\n\nLogo em seguida escolha o Nexus que deseja acessar." }; [44] = { TITLE = "SHOP WARZONE", DESC = "Voce sempre ganha PVP Points ao participar de uma Warzone.\n\nUse esses pontos na loja exclusiva disponivel no SHOP do servidor. (MENU > SHOP > WARZONE)." }; [45] = { TITLE = "DUELO DE KARDS", DESC = "Uma nova atividade foi desbloqueada. (MENU > ACTIVE > KARDS).\n\nVenca outros NPCs em duelos de Kards e obtenha bonificacao ao vender seus itens em uma Central Box." }; [46] = { TITLE = "CONTINUA...", DESC = "As missoes de Jornada terminam aqui. Mas a cada nova expansao do servidor, novas missoes de Jornada sao adicionadas, continuando a hist�ria." }; [47] = { TITLE = "SHOP COLISEU", DESC = "Voce obtem chaves sempre que vencer um desafio no coliseu.\n\nUse essas chaves para comprar atributos para equipamentos, disponivel em MENU > ACTIVE > COLISEU." }; [48] = { TITLE = "PASSIVAS", DESC = "Clique em um dos 06 slots disponiveis para abrir a janela de passivas." }; [49] = { TITLE = "DESBLOQUEANDO PASSIVAS", DESC = "Navegue entre as 04 categorias disponiveis e escolhe uma.\n\nClique no botao Unlock para desbloquear uma passiva e a equipe em seu inventario." }; [50] = { TITLE = "UPGRADE DE PASSIVAS", DESC = "Toda passiva possui ate 10 niveis. Clique em Upgrade dentro de uma passiva ja desbloqueada para evoluir.\n\nCada upgrade requer mais pontos para ser desbloqueada." }; [51] = { TITLE = "DESCONSTRUIR", DESC = "Com o botao direito do mouse, clique sobre o item que deseja desmontar.\n\nParte dos materiais de upgrade desse item irao para sua backpack." }; }; [01] = { -- MOBILE [00] = { TITLE = "BOAS VINDAS", DESC = "Seja bem vindo ao RD Core.\n\nDe um toque simples em cima do bau localizado aqui na Base para pegar sua primeira arma." }; [01] = { TITLE = "MENU PRINCIPAL", DESC = "No menu a esquerda, clique no icone de mochila para selecionar o menu do cliente e abrir todas as categorias de menu." }; [02] = { TITLE = "EQUIPANDO ITEMS", DESC = "Nas categorias, clique no primeiro icone indicando mochila para abrir seu inventario. Selecione seu slot de armas.\n\nAo abrir a backpack, clique no item para equipar." }; [03] = { TITLE = "ACESSANDO MISSoES", DESC = "Retorne ao menu de categorias e selecione o icone de quest para abrir seu Quest Log.\n\nSelecione a Quest 'Primeiros Passos'." }; [04] = { TITLE = "RASTREANDO MISSoES", DESC = "Ao clicar em uma missao, voce podera ver detalhes sobre ela.\n\nClique em 'Rastrear' para que o objetivo seja marcado em seu mapa." }; [05] = { TITLE = "FALANDO COM NPC", DESC = "Para falar com um NPC, de um toque simples sobre ele para abrir a janela de dialogos." }; [06] = { TITLE = "SKILL DE SUPORTE", DESC = "Como suporte voce tem: Velocidade e Cura.\nDe um toque simples sobre elas para usar." }; [07] = { TITLE = "REABASTECER", DESC = "O NPC Eryn pode recuperar toda a sua vida. Tambem lhe dara municao se voce tiver menos de 100. Tudo gratuitamente.\n\nFale com ele e clique em 'Reabastecer'." }; [08] = { TITLE = "CENTRAL BOX", DESC = "Essas sao as Central Box. Nelas voce pode vender seus itens ou aprimorar seus equipamentos. Voce tambem pode comprar municao e pocoes de cura." }; [09] = { TITLE = "USANDO SKILLS", DESC = "Voce nao consegue usar skills ou pocoes enquanto se movimenta com o Keypad.\n\nPare se se movimentar brevemente para usar as skills." }; [10] = { TITLE = "EXPLORANDO O MAPA", DESC = "Pontos de Interrogacao ( ? ) indicam locais de interesse. Abra o menu de categorias clicando na mochila e clique no icone de Mundo, o ultimo da lista.\nNovos pontos sao desbloqueados ao avanca de level." }; [11] = { TITLE = "TRANSPORTE", DESC = "Voce ganhou uma montaria.\n\nToque e segure o dedo em cima de seu personagem para abrir as opcoes. Selecione 'Mount'." }; [12] = { TITLE = "SINCRONIZAcaO", DESC = "Descubra novos Nexus e desbloqueie novos locais de caca. Abra seu Mapa para ver os locais ja desbloqueados.\n\nSe for Premium Account, voce pode se teleportar para qualquer Nexus." }; [13] = { TITLE = "QUADRO DE ATIVIDADES", DESC = "Em um Quadro de Atividades voce pode iniciar Task, enfrentar Dangerous e outra atividade exclusiva do Nexus que esta. Cada Nexus possui seu pr�prio Quadro de Atividades com suas pr�prias tarefas." }; [14] = { TITLE = "BLACKLIST", DESC = "Use Pontos ganho em atividades no Quadro de Atividades para enfrentar bosses na Blacklist.\n\nTodo boss possui chance de dropar armas lendarias." }; [15] = { TITLE = "PONTOS ONLINE", DESC = "Algumas atividades exigem Pontos Online para participar. A cada 1 hora Online voce obtem x1 Ponto.\n\nVoce tambem pode usar esses pontos no Shop do servidor." }; [16] = { TITLE = "ESTaTUAS DE AcaO", DESC = "Este local contem algumas dessas estatuas.\n\nEncontre as Estatuas e clique nelas na ordem correta. A ultima estatua te levara para a sala de recompensas." }; [17] = { TITLE = "PENDULUM", DESC = "Encontre estes rel�gios por toda a area e clique neles na ordem correta.\n\nExiste 13 ao todo e o ultimo te levara para a sala de recompensas." }; [18] = { TITLE = "PILARES DE GELO", DESC = "Limpe toda a area primeiro. Ap�s isso, clique nos pilares de gelo para libera mais monstros.\n\nClique em todos para poder liberar acesso ao Bau de Recompensa." }; [19] = { TITLE = "LIMPANDO A aREA", DESC = "Existe 06 locais nesta area. Visite cada um desses locais e elimine todos os monstros nele.\n\nAp�s isso, clique no Objeto no centro da area para liberar o bau." }; [20] = { TITLE = "SKULL MONSTER", DESC = "Encontre e elimine os monstros que possuem uma Skull Branca abaixo de seu nome.\n\nElimine todos para ganhar acesso ao Bau." }; [21] = { TITLE = "SEQUeNCIA DE PORTAIS", DESC = "Passe pelos Portais na ordem correta para liberar acesso a pr�xima Zona." }; [22] = { TITLE = "VIG�LIA DA GARGULA", DESC = "Clique nas estatuas para mudar sua direcao.\n\nClique na estatua do Dragao para verificar se a posicao da gargula esta correta." }; [23] = { TITLE = "ESTaTUAS DA MEM�RIA", DESC = "Clique na estatua de dragao no centro para iniciar. Decore onde o efeito aparecera e clique nas estatuas de acordo." }; [24] = { TITLE = "CAMINHO DE LAVA", DESC = "Clique na estatua do dragao no final do caminho. Cuidado com os ataques vindos dos pilares." }; [25] = { TITLE = "PROTETOR DE CRISTAL", DESC = "Existem protetores espalhados por toda a area. Destrua-os para ser teleportado para a sala de recompensa." }; [26] = { TITLE = "CRISTAL DO ELEMENTO", DESC = "Cada pir�mide possui um elemento. Clique e encontre o Crystal correspondente ao elemento transformado. A ordem dos elementos pode ser visto na placa pr�xima." }; [27] = { TITLE = "RITMO PERFEITO", DESC = "Cada instrumento na mesa provoca uma reacao na estatua. Encontre o ritmo perfeito para poder sair desta area." }; [28] = { TITLE = "CONDUZINDO", DESC = "Clique na pir�mide no inicio da area. Conduza a essencia ate a pr�ximo ponto. Redimensione a energia de acordo com a direcao que voce estiver olhando." }; [29] = { TITLE = "PILAR DIMENSIONAL", DESC = "Encontre pela area os Dimensional Pillar e os destrua. Fazendo isso, o Boss final aparecera.\n\nVenca-o para ser teleportado para a recompensa." }; [30] = { TITLE = "BOMBA ELEMENTAL", DESC = "Clique no anjo e varias explosoes elementais ocorrera. Clique nos pilares ao lado correspondente ao elemento da explosao para se proteger." }; [31] = { TITLE = "CHAMA DO DRAGaO", DESC = "Conduzir os dragoes pelo caminho ate as chamas. Os dois dragoes devem encontrar a chama ao mesmo tempo. A direcao que voce olha ao pisar no tile indica a direcao onde o dragao se movimentara." }; [32] = { TITLE = "CENTRAL DOS PORTAIS", DESC = "Encontre o portal correto para casa area do mapa. Cada area possui um Boss para eliminar ou um Puzzle para resolver.\n\nObtenha todos os Selos para prosseguir ate a recompensa." }; [33] = { TITLE = "ESTaTUA DOS IMORTAIS", DESC = "Clique na estatua para liberar o Boss. Passe por todos os bosses para ganhar acesso ao Bau." }; [34] = { TITLE = "DUELO DE KARDS", DESC = "NPCs com este icone indica que ele esta disposto a Duelar com voce. Voce pode encontrar NPCs como esse por toda a area Premiium." }; [35] = { TITLE = "PENALIDADE DE MORTE", DESC = "Ao morrer, sua EXP sera congelada e nao sera mais possivel ganhar level. Para descongelar, pague a penalidade de EXP exigida.\n\nVoce podera comprar blessing no Shop para zerar sua penalidade." }; [36] = { TITLE = "ESTaTUAS DA ORDEM", DESC = "Encontre estatuas como essa e clique nelas na ordem correta.\n\nO desafio sera concluido ao clicar em todas as 05 estatuas." }; [37] = { TITLE = "ENERGIZANDO", DESC = "Encontre e clique no Basin com fogo. Voce tera 40 segundos para encontrar os cristais que estao no ultimo andar de cada torre.\n\nEnergize os dois cristais e clique novamente no Basin para concluir o desafio." }; [38] = { TITLE = "SACRIF�CIOS", DESC = "Encontre os pisos especiais nesta area. Voce deve eliminar os monstros somente em cima desse piso para o sacrificio ser aceito.\n\nRepita o processo 05 vezes para concluir o desafio." }; [39] = { TITLE = "SIGA EM FRENTE", DESC = "Apenas siga em frente e encontre o caminho para o portal que concluira esse desafio." }; [40] = { TITLE = "CASTELO DOS DRAKENS", DESC = "Elimine qualquer especie de Drakens 100 vezes para ganhar acesso ao Boss.\n\nElimine o Boss para concluir o desafio." }; [41] = { TITLE = "PORTAL INSTaVEL", DESC = "Drope dos monstros os x3 itens necessarios para passar pelo portal final.\n\nPasse pelo portal para concluir o desafio." }; [42] = { TITLE = "LOJA REMOTA", DESC = "O botao de atalho para a loja remota foi adicionado logo abaixo de seu inventario.\n\nClique para abrir uma Central Box em qualquer lugar." }; [43] = { TITLE = "NEXUS REMOTO", DESC = "Use o icone que surgiu em sua HUD principal, logo abaixo.\n\nLogo em seguida escolha o Nexus que deseja acessar." }; [44] = { TITLE = "SHOP WARZONE", DESC = "Voce sempre ganha PVP Points ao participar de uma Warzone.\n\nUse esses pontos na loja exclusiva disponivel no SHOP do servidor. (MENU > SHOP > WARZONE)." }; [45] = { TITLE = "DUELO DE KARDS", DESC = "Uma nova atividade foi desbloqueada. (MENU > ACTIVE > KARDS).\n\nVenca outros NPCs em duelos de Kards e obtenha bonificacao ao vender seus itens em uma Central Box." }; [46] = { TITLE = "CONTINUA...", DESC = "As missoes de Jornada terminam aqui. Mas a cada nova expansao do servidor, novas missoes de Jornada sao adicionadas, continuando a hist�ria." }; [47] = { TITLE = "SHOP COLISEU", DESC = "Voce obtem chaves sempre que vencer um desafio no coliseu.\n\nUse essas chaves para comprar atributos para equipamentos, disponivel em MENU > ACTIVE > COLISEU." }; [48] = { TITLE = "PASSIVAS", DESC = "Clique em um dos 06 slots disponiveis para abrir a janela de passivas." }; [49] = { TITLE = "DESBLOQUEANDO PASSIVAS", DESC = "Navegue entre as 04 categorias disponiveis e escolhe uma.\n\nClique no botao Unlock para desbloquear uma passiva e a equipe em seu inventario." }; [50] = { TITLE = "UPGRADE DE PASSIVAS", DESC = "Toda passiva possui ate 10 niveis. Clique em Upgrade dentro de uma passiva ja desbloqueada para evoluir.\n\nCada upgrade requer mais pontos para ser desbloqueada." }; [51] = { TITLE = "DESCONSTRUIR", DESC = "Com o botao direito do mouse, clique sobre o item que deseja desmontar.\n\nParte dos materiais de upgrade desse item irao para sua backpack." }; }; } function onHideTutorView() if Timer > 0 then Timer = Timer - 1 scheduleEvent(function() onHideTutorView() end, 1000) else TutorView:hide() end end function onAlertMessage(mode, text) if not g_game.isOnline() then return end if mode == MessageModes.Failure then if string.find(text, "@ResetDG") then modules.game_database.setDG(00) end if string.find(text, "@TutorShow") then local t = string.explode(text, " ") onShowTutor(tonumber(t[02])) end if string.find(text, "@QuestBlock") then local t = string.explode(text, " ") if QuestWind ~= nil then QuestWind:destroy() QuestWind = nil end QuestWind = g_ui.createWidget('UILabel', rootWidget) QuestWind:setFont('lucida-11px-rounded') QuestWind:setTextOffset('25 03') QuestWind:setImageSource("/images/custom/UI/choose_on") QuestWind:setPhantom(true) QuestWind:setParent(modules.game_interface.getRootPanel()) QuestWind:addAnchor(AnchorBottom, 'gameMapPanel', AnchorBottom) QuestWind:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft) QuestWind:setMarginBottom(45) if g_app.isMobile() then QuestWind:setMarginLeft(180) else QuestWind:setMarginLeft(10) end QuestWind:setSize({width = 350, height = 20}) g_effects.fadeIn(QuestWind, 1000) if t[02] == "01" then g_game.talk(g_game.talk("!inventario 25")) QuestWind:setText(tr('Novas Missoes foram desbloqueadas')) modules.game_menu.LoadQuestRealTime() else QuestWind:setText(tr('Voce avancou de Rank na Blacklist')) modules.game_menu.StartTask() end scheduleEvent(function() g_effects.fadeOut(QuestWind, 1000) scheduleEvent(function() if QuestWind then QuestWind:destroy() QuestWind = nil end end, 1000) end, 5000) end if string.find(text, "@NoTeleport") then local t = string.explode(text, " ") if t[02] == "01" then modules.game_database.setDG(01) else modules.game_database.setDG(00) end end if string.find(text, "@DGTime") then local t = string.explode(text, " ") local Player = g_game.getLocalPlayer() if Player:isPartyMember() then if Player:isPartyLeader() then Desistir:show() else Desistir:hide() end else Desistir:show() end Nexus_Time = tonumber(t[03]) Index_Time = tonumber(t[04]) if t[02] == "01" then if not g_app.isMobile() then --local gameScreenAreaMarginTop = math.floor( mapPanel:getHeight() / 2 ) TimerView:setParent(gameRoot) --TimerView:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft) --TimerView:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) TimerView:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) TimerView:setMarginTop(90) TimerView:show() if t[05] then if t[05] == "01" then modules.game_database.setDG(01) end Desistir:hide() else modules.game_database.setDG(01) end TimerView:show() else MOBILE_GOLD_BAR = modules.client_mobile.onMobileButton(16) MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_DG_DESIS = modules.client_mobile.onMobileButton(18) MOBILE_GOLD_BAR:hide() MOBILE_DG_TIMER:show() MOBILE_DG_DESIS:show() end else modules.game_database.setDG(00) if not g_app.isMobile() then TimerView:hide() else MOBILE_GOLD_BAR = modules.client_mobile.onMobileButton(16) MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_DG_DESIS = modules.client_mobile.onMobileButton(18) MOBILE_GOLD_BAR:show() MOBILE_DG_TIMER:hide() MOBILE_DG_DESIS:hide() end end end if string.find(text, "@CountTempo") then local t = string.explode(text, " ") Timer1:setImageSource("/images/custom/Time/" ..t[02]) Timer2:setImageSource("/images/custom/Time/" ..t[03]) Timer3:setImageSource("/images/custom/Time/" ..t[04]) Timer4:setImageSource("/images/custom/Time/" ..t[05]) modules.game_database.setDG(01) Nexus_Time = tonumber(t[06]) Index_Time = tonumber(t[07]) if not g_app.isMobile() then if not TimerView:isVisible() then --local gameScreenAreaMarginTop = math.floor( mapPanel:getHeight() / 2 ) TimerView:setParent(gameRoot) --TimerView:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft) --TimerView:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) TimerView:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) TimerView:setMarginTop(90) TimerView:show() end else MOBILE_GOLD_BAR = modules.client_mobile.onMobileButton(16) MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_DG_DESIS = modules.client_mobile.onMobileButton(18) MOBILE_DG_TIMER:setText(t[02].. "" ..t[03].. ":" ..t[04].. "" ..t[05]) MOBILE_GOLD_BAR:hide() MOBILE_DG_TIMER:show() MOBILE_DG_DESIS:show() end end if string.find(text, "@LootMSG") then local t = string.explode(text, " ") local id = tonumber(t[2]) local rare = tonumber(t[3]) local star = tonumber(t[4]) local qnt = tonumber(t[5]) local slot = modules.game_database.getItemInfo(id, 02) local posPosition = 0 local margin = -1 if not g_app.isMobile() then if g_settings.getString('fixeMenu') == "true" then margin = 280 end else posPosition = 01 margin = 63 end if AlertWindow == 0 or AlertWindow < 0 then windAlert = Loot_0 windAlert:setMarginTop(alertPos[posPosition][AlertWindow]) if AlertWindow < 0 then AlertWindow = 1 else AlertWindow = AlertWindow + 1 end windAlert:setImageSource("/images/custom/UI/loot_" ..rare) local Nome_id = windAlert:recursiveGetChildById('name') local Star_id = windAlert:recursiveGetChildById('star') local Img_id = windAlert:recursiveGetChildById('img') local Qnt_id = windAlert:recursiveGetChildById('qnt') Nome_id:setText(modules.game_database.getItemInfo(id, 01)) Qnt_id:setText("x" ..mask_number(qnt)) Img_id:setImageSource("/images/custom/Items/" ..id) Star_id:setImageSource("/images/custom/UI/star_" ..star) if g_app.isMobile() then windAlert:setSize({width = 80, height = 40}) Qnt_id:setMarginTop(-20) Qnt_id:setMarginRight(08) Img_id:setMarginTop(-32) Img_id:setMarginRight(-03) Nome_id:hide() Star_id:hide() end windAlert:setParent(gameRoot) windAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) windAlert:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) windAlert:setMarginRight(margin) windAlert:focus() windAlert:raise() windAlert:show() g_effects.fadeIn(windAlert, speed) local Login1 = scheduleEvent(function() if not g_game.isOnline() then return end hideLoot0() end, DelayLoot) elseif AlertWindow == 1 then windAlert = Loot_1 windAlert:setMarginTop(alertPos[posPosition][AlertWindow]) if AlertWindow < 0 then AlertWindow = 1 else AlertWindow = AlertWindow + 1 end windAlert:setImageSource("/images/custom/UI/loot_" ..rare) local Nome_id = windAlert:recursiveGetChildById('name') local Star_id = windAlert:recursiveGetChildById('star') local Img_id = windAlert:recursiveGetChildById('img') local Qnt_id = windAlert:recursiveGetChildById('qnt') Nome_id:setText(modules.game_database.getItemInfo(id, 01)) Qnt_id:setText("x" ..mask_number(qnt)) Img_id:setImageSource("/images/custom/Items/" ..id) Star_id:setImageSource("/images/custom/UI/star_" ..star) if g_app.isMobile() then windAlert:setSize({width = 80, height = 40}) Qnt_id:setMarginTop(-20) Qnt_id:setMarginRight(08) Img_id:setMarginTop(-32) Img_id:setMarginRight(-03) Nome_id:hide() Star_id:hide() end windAlert:setParent(gameRoot) windAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) windAlert:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) windAlert:setMarginRight(margin) windAlert:focus() windAlert:raise() windAlert:show() g_effects.fadeIn(windAlert, speed) scheduleEvent(function() if not g_game.isOnline() then return end hideLoot1() end, DelayLoot) elseif AlertWindow == 2 then windAlert = Loot_2 windAlert:setMarginTop(alertPos[posPosition][AlertWindow]) if AlertWindow < 0 then AlertWindow = 1 else AlertWindow = AlertWindow + 1 end windAlert:setImageSource("/images/custom/UI/loot_" ..rare) local Nome_id = windAlert:recursiveGetChildById('name') local Star_id = windAlert:recursiveGetChildById('star') local Img_id = windAlert:recursiveGetChildById('img') local Qnt_id = windAlert:recursiveGetChildById('qnt') Nome_id:setText(modules.game_database.getItemInfo(id, 01)) Qnt_id:setText("x" ..mask_number(qnt)) Img_id:setImageSource("/images/custom/Items/" ..id) Star_id:setImageSource("/images/custom/UI/star_" ..star) if g_app.isMobile() then windAlert:setSize({width = 80, height = 40}) Qnt_id:setMarginTop(-20) Qnt_id:setMarginRight(08) Img_id:setMarginTop(-32) Img_id:setMarginRight(-03) Nome_id:hide() Star_id:hide() end windAlert:setParent(gameRoot) windAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) windAlert:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) windAlert:setMarginRight(margin) windAlert:focus() windAlert:raise() windAlert:show() g_effects.fadeIn(windAlert, speed) scheduleEvent(function() if not g_game.isOnline() then return end hideLoot2() end, DelayLoot) elseif AlertWindow == 3 then windAlert = Loot_3 windAlert:setMarginTop(alertPos[posPosition][AlertWindow]) if AlertWindow < 0 then AlertWindow = 1 else AlertWindow = AlertWindow + 1 end windAlert:setImageSource("/images/custom/UI/loot_" ..rare) local Nome_id = windAlert:recursiveGetChildById('name') local Star_id = windAlert:recursiveGetChildById('star') local Img_id = windAlert:recursiveGetChildById('img') local Qnt_id = windAlert:recursiveGetChildById('qnt') Nome_id:setText(modules.game_database.getItemInfo(id, 01)) Qnt_id:setText("x" ..mask_number(qnt)) Img_id:setImageSource("/images/custom/Items/" ..id) Star_id:setImageSource("/images/custom/UI/star_" ..star) if g_app.isMobile() then windAlert:setSize({width = 80, height = 40}) Qnt_id:setMarginTop(-20) Qnt_id:setMarginRight(08) Img_id:setMarginTop(-32) Img_id:setMarginRight(-03) Nome_id:hide() Star_id:hide() end windAlert:setParent(gameRoot) windAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) windAlert:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) windAlert:setMarginRight(margin) windAlert:focus() windAlert:raise() windAlert:show() g_effects.fadeIn(windAlert, speed) scheduleEvent(function() if not g_game.isOnline() then return end hideLoot3() end, DelayLoot) elseif AlertWindow == 4 then windAlert = Loot_4 windAlert:setMarginTop(alertPos[posPosition][AlertWindow]) if AlertWindow < 0 then AlertWindow = 1 else AlertWindow = AlertWindow + 1 end windAlert:setImageSource("/images/custom/UI/loot_" ..rare) local Nome_id = windAlert:recursiveGetChildById('name') local Star_id = windAlert:recursiveGetChildById('star') local Img_id = windAlert:recursiveGetChildById('img') local Qnt_id = windAlert:recursiveGetChildById('qnt') Nome_id:setText(modules.game_database.getItemInfo(id, 01)) Qnt_id:setText("x" ..mask_number(qnt)) Img_id:setImageSource("/images/custom/Items/" ..id) Star_id:setImageSource("/images/custom/UI/star_" ..star) if g_app.isMobile() then windAlert:setSize({width = 80, height = 40}) Qnt_id:setMarginTop(-20) Qnt_id:setMarginRight(08) Img_id:setMarginTop(-32) Img_id:setMarginRight(-03) Nome_id:hide() Star_id:hide() end windAlert:setParent(gameRoot) windAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) windAlert:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) windAlert:setMarginRight(margin) windAlert:focus() windAlert:raise() windAlert:show() g_effects.fadeIn(windAlert, speed) scheduleEvent(function() if not g_game.isOnline() then return end hideLoot4() end, DelayLoot) elseif AlertWindow == 5 then windAlert = Loot_5 windAlert:setMarginTop(alertPos[posPosition][AlertWindow]) if AlertWindow < 0 then AlertWindow = 1 else AlertWindow = AlertWindow + 1 end windAlert:setImageSource("/images/custom/UI/loot_" ..rare) local Nome_id = windAlert:recursiveGetChildById('name') local Star_id = windAlert:recursiveGetChildById('star') local Img_id = windAlert:recursiveGetChildById('img') local Qnt_id = windAlert:recursiveGetChildById('qnt') Nome_id:setText(modules.game_database.getItemInfo(id, 01)) Qnt_id:setText("x" ..mask_number(qnt)) Img_id:setImageSource("/images/custom/Items/" ..id) Star_id:setImageSource("/images/custom/UI/star_" ..star) if g_app.isMobile() then windAlert:setSize({width = 80, height = 40}) Qnt_id:setMarginTop(-20) Qnt_id:setMarginRight(08) Img_id:setMarginTop(-32) Img_id:setMarginRight(-03) Nome_id:hide() Star_id:hide() end windAlert:setParent(gameRoot) windAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) windAlert:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) windAlert:setMarginRight(margin) windAlert:focus() windAlert:raise() windAlert:show() g_effects.fadeIn(windAlert, speed) scheduleEvent(function() if not g_game.isOnline() then return end hideLoot5() end, DelayLoot) end if id == 3001 or id == 3205 then g_game.talk(g_game.talk("!inventario 34 02")) else if slot == 3 or slot == 0 or slot > 10 then slot = 3 end g_game.talk(g_game.talk("!inventario 34 01 " ..slot)) end end if string.find(text, "@PassChest") then local t = string.explode(text, " ") Pass_1 = 00 Pass_2 = 00 Pass_3 = 00 Pass_4 = 00 if tonumber(t[02]) == 01 then ChestID = tonumber(t[03]) Status = Chest:recursiveGetChildById('Status') Status:setText("") for X = 01, 04 do Digito = Chest:recursiveGetChildById('Dig_' ..X) Digito:setImageSource("/images/custom/UI/0") end if t[04] then SAQ_GLOBAL_POSITION = tonumber(t[04]) SAQ_CHESTID = tonumber(t[05]) --print("[01] SAQ_GLOBAL_POSITION: " ..SAQ_GLOBAL_POSITION.. " | SAQ_CHESTID: " ..SAQ_CHESTID) end else closer() return end onPasswordChest(01) Chest:show() end if string.find(text, "@WarzoneStart") then local t = string.explode(text, " ") if g_app.isMobile() then WarAlert:setParent(modules.game_interface.getRootPanel()) WarAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) WarAlert:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) WarAlert:setMarginTop(45) WarAlert:setMarginRight(70) else WarAlert:setParent(modules.game_interface.getRootPanel()) WarAlert:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) WarAlert:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft) WarAlert:setMarginTop(330) WarAlert:setMarginLeft(10) end playerWarProgress:setValue(tonumber(t[02]), 0, 60) if tonumber(t[02]) < 60 then playerWarProgress:setTooltip(tr('Jogadores na Warzone').. ': ' ..t[02]) playerWarProgress:setBackgroundColor('white') else playerWarProgress:setTooltip(tr('Jogadores na Warzone').. ': ' ..t[02].. '\n'.. tr('Capacidade Maxima')) playerWarProgress:setBackgroundColor('red') end WarAlert:show() if WarView == false then g_effects.fadeIn(WarAlert, 250) WarView = true end end if string.find(text, "@ShowPlacar") then local t = string.explode(text, " ") if tonumber(t[02]) == 01 then WarPlacar:setParent(modules.game_interface.getRootPanel()) WarPlacar:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) WarPlacar:setMarginTop(70) timerPlacar:setText(t[03].. ':' ..t[04]) blueScore:setText(t[05]) redScore:setText(t[06]) if modules.game_menu.getPvPMode() == false then modules.game_menu.PvPMode() end WarPlacar:show() else if modules.game_menu.getPvPMode() then modules.game_menu.PvPMode() end WarPlacar:hide() end end if string.find(text, "@EndAlert") then local t = string.explode(text, " ") if tonumber(t[02]) == 01 then closer() if modules.game_menu.getPvPMode() then modules.game_menu.PvPMode() end else WarAlert:hide() end end if string.find(text, "@CronOff") then showCronClient = false modules.game_menu.PvPMode() modules.game_database.setDG(00) if g_app.isMobile() then MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_DG_TIMER:hide() else TimerView:hide() end end if string.find(text, "@PVPCronometro") then local t = string.explode(text, " ") CRO_TIMER_1 = tonumber(t[02]) CRO_TIMER_2 = tonumber(t[03]) modules.game_menu.PvPMode() if not g_app.isMobile() then if not TimerView:isVisible() then TimerView:setParent(gameRoot) TimerView:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) TimerView:setMarginTop(90) TimerView:show() Desistir:hide() end else MOBILE_GOLD_BAR = modules.client_mobile.onMobileButton(16) MOBILE_DG_DESIS = modules.client_mobile.onMobileButton(18) MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_GOLD_BAR:hide() MOBILE_DG_TIMER:show() MOBILE_DG_DESIS:hide() end showCronClient = true onPVPCronometro() end if string.find(text, "@Cinematic") then local t = string.explode(text, " ") onCinematicShow(tonumber(t[02])) end if string.find(text, "@deadScreen") then local t = string.explode(text, " ") if g_app.isMobile() then return end local penalidadeTotal = tonumber(t[02]) local checkBless = tonumber(t[03]) local displaySize = g_window.getDisplaySize() DEATH_SCREEN = g_ui.createWidget('UIButton', rootWidget) DEATH_SCREEN:setImageSource("/images/custom/Task/Monster_5") DEATH_SCREEN:addAnchor(AnchorTop, 'parent', AnchorTop) DEATH_SCREEN:addAnchor(AnchorBottom, 'parent', AnchorBottom) DEATH_SCREEN:addAnchor(AnchorLeft, 'parent', AnchorLeft) DEATH_SCREEN:addAnchor(AnchorRight, 'parent', AnchorRight) DEATH_SCREEN:setSize({width = 10, height = 60}) DEATH_SCREEN:setMarginTop(-05) DEATH_SCREEN:setMarginLeft(-05) DEATH_SCREEN:setMarginRight(-05) DEATH_SCREEN:setMarginBottom(-05) DEATH_SCREEN:focus() DEATH_SCREEN:raise() g_effects.fadeIn(DEATH_SCREEN, 300) DEATH_TEXT = g_ui.createWidget('UIButton', DEATH_SCREEN) DEATH_TEXT:setId("deadImg") DEATH_TEXT:setImageSource("/images/custom/UI/dead") DEATH_TEXT:setSize({width = 450, height = 100}) DEATH_TEXT:addAnchor(AnchorTop, 'parent', AnchorTop) DEATH_TEXT:addAnchor(AnchorLeft, 'parent', AnchorLeft) DEATH_TEXT:setMarginTop(300) DEATH_TEXT:setMarginLeft(displaySize.height - 320) DEATH_TEXT:setPhantom(true) g_effects.fadeIn(DEATH_TEXT, 500) scheduleEvent(function() scheduleEvent(function() DEATH_TEXT:setMarginTop(290) end, 100) scheduleEvent(function() DEATH_TEXT:setMarginTop(280) end, 120) scheduleEvent(function() DEATH_TEXT:setMarginTop(270) end, 140) scheduleEvent(function() DEATH_TEXT:setMarginTop(260) end, 160) scheduleEvent(function() DEATH_TEXT:setMarginTop(250) end, 180) scheduleEvent(function() DEATH_TEXT:setMarginTop(240) end, 200) scheduleEvent(function() DEATH_TEXT:setMarginTop(230) end, 220) scheduleEvent(function() DEATH_TEXT:setMarginTop(220) end, 240) scheduleEvent(function() DEATH_TEXT:setMarginTop(210) end, 260) scheduleEvent(function() DEATH_TEXT:setMarginTop(200) end, 280) scheduleEvent(function() DEATH_TEXT:setMarginTop(190) end, 300) scheduleEvent(function() DEATH_LABEL = g_ui.createWidget('UIButton', DEATH_SCREEN) DEATH_LABEL:setId("deadPenLabel") if checkBless == 01 then DEATH_LABEL:setText(tr('MORREU COM BLESS')) else DEATH_LABEL:setText(tr('PENALIDADE')) end DEATH_LABEL:setFont('sans-bold-16px') DEATH_LABEL:setSize({width = 450, height = 25}) DEATH_LABEL:addAnchor(AnchorTop, 'deadImg', AnchorBottom) DEATH_LABEL:addAnchor(AnchorLeft, 'parent', AnchorLeft) DEATH_LABEL:setMarginLeft(displaySize.height - 320) DEATH_LABEL:setMarginTop(40) DEATH_LABEL:setPhantom(true) g_effects.fadeIn(DEATH_LABEL, 500) DEATH_PEN = g_ui.createWidget('UIButton', DEATH_SCREEN) DEATH_PEN:setText(0) DEATH_PEN:setFont('lucida-26px-rounded') DEATH_PEN:setSize({width = 450, height = 20}) DEATH_PEN:addAnchor(AnchorTop, 'deadPenLabel', AnchorBottom) DEATH_PEN:addAnchor(AnchorLeft, 'parent', AnchorLeft) DEATH_PEN:setMarginLeft(displaySize.height - 320) DEATH_PEN:setMarginTop(05) DEATH_PEN:setPhantom(true) g_effects.fadeIn(DEATH_PEN, 500) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 11))) end, 100) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 10))) end, 150) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 09))) end, 200) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 08))) end, 250) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 07))) end, 300) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 06))) end, 350) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 05))) end, 400) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 04))) end, 450) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 03))) end, 500) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal / 02))) end, 550) scheduleEvent(function() DEATH_PEN:setText(mask_number(math.floor(penalidadeTotal))) end, 600) scheduleEvent(function() DEATH_OK_BUTTON = g_ui.createWidget('UIButton', DEATH_SCREEN) DEATH_OK_BUTTON:setId("okButton") DEATH_OK_BUTTON:setText(tr('CONTINUAR')) DEATH_OK_BUTTON:setImageSource("/images/custom/Task/Monster_3") DEATH_OK_BUTTON:setFont('terminus-10px') DEATH_OK_BUTTON:setSize({width = 200, height = 35}) DEATH_OK_BUTTON:addAnchor(AnchorTop, 'deadPenLabel', AnchorBottom) DEATH_OK_BUTTON:addAnchor(AnchorLeft, 'parent', AnchorLeft) DEATH_OK_BUTTON:setMarginLeft(displaySize.height - 300) DEATH_OK_BUTTON:setMarginTop(80) DEATH_OK_BUTTON.onHoverChange = function(widget, hoverState) if hoverState then widget:setOpacity(1.0) else widget:setOpacity(0.6) end end DEATH_OK_BUTTON.onClick = function() DEATH_SCREEN:destroy() DEATH_SCREEN = nil end g_effects.fadeIn(DEATH_OK_BUTTON, 500) local PriceVip = modules.game_menu.onTableShop(08, 04, 03) local PriceVipPromo = modules.game_menu.onTableShop(09, 04, 03) DEATH_BLESS_BUTTON = g_ui.createWidget('UIButton', DEATH_SCREEN) if PriceVipPromo > 00 then DEATH_BLESS_BUTTON:setText(tr('CONTINUAR COM BLESS').. '\n' ..PriceVipPromo.. 'x Vip Coin') else DEATH_BLESS_BUTTON:setText(tr('CONTINUAR COM BLESS').. '\n' ..PriceVip.. 'x Vip Coin') end DEATH_BLESS_BUTTON:setImageSource("/images/custom/Task/Monster_4") DEATH_BLESS_BUTTON:setFont('terminus-10px') DEATH_BLESS_BUTTON:setSize({width = 200, height = 35}) DEATH_BLESS_BUTTON:addAnchor(AnchorTop, 'deadPenLabel', AnchorBottom) DEATH_BLESS_BUTTON:addAnchor(AnchorLeft, 'okButton', AnchorRight) DEATH_BLESS_BUTTON:setMarginLeft(10) DEATH_BLESS_BUTTON:setMarginTop(80) DEATH_BLESS_BUTTON.onHoverChange = function(widget, hoverState) if hoverState then widget:setOpacity(1.0) else widget:setOpacity(0.6) end end DEATH_BLESS_BUTTON.onClick = function() DEATH_SCREEN:destroy() DEATH_SCREEN = nil g_game.talk("!buyshop 3 4 3") end g_effects.fadeIn(DEATH_OK_BUTTON, 500) end, 1500) end, 500) end, 1000) end end end function onCinematicShow(type) if type == 00 then -- ENTRADA PADRaO. TELA PRETA LENTA. FADE_OUT = g_ui.createWidget('UIButton', rootWidget) FADE_OUT:setImageSource("/images/custom/UI/black_panel") FADE_OUT:addAnchor(AnchorTop, 'parent', AnchorTop) FADE_OUT:addAnchor(AnchorBottom, 'parent', AnchorBottom) FADE_OUT:addAnchor(AnchorLeft, 'parent', AnchorLeft) FADE_OUT:addAnchor(AnchorRight, 'parent', AnchorRight) FADE_OUT:setSize({width = 10, height = 60}) FADE_OUT:setMarginTop(-05) FADE_OUT:setMarginLeft(-05) FADE_OUT:setMarginRight(-05) FADE_OUT:setMarginBottom(-05) FADE_OUT:focus() FADE_OUT:raise() g_effects.fadeIn(FADE_OUT, 500) modules.game_console.disableChat() modules.game_menu.closedHUD() modules.game_menu.onHideHub() modules.game_menu.onCLoseFixeInventario() modules.game_minimap.onMiniMapaHide() modules.game_walking.unbindKeys() modules.game_walking.disableWSAD() CINEMATIC = true scheduleEvent(function() SCENE_BAR_1 = g_ui.createWidget('UIButton', rootWidget) SCENE_BAR_1:setImageSource("/images/custom/UI/black_Panel") SCENE_BAR_1:addAnchor(AnchorTop, 'parent', AnchorTop) SCENE_BAR_1:addAnchor(AnchorLeft, 'parent', AnchorLeft) SCENE_BAR_1:addAnchor(AnchorRight, 'parent', AnchorRight) SCENE_BAR_1:setSize({width = 10, height = 60}) SCENE_BAR_1:setMarginTop(-05) SCENE_BAR_1:setMarginLeft(-05) SCENE_BAR_1:setMarginRight(-05) SCENE_BAR_2 = g_ui.createWidget('UIButton', rootWidget) SCENE_BAR_2:setImageSource("/images/custom/UI/black_Panel") SCENE_BAR_2:addAnchor(AnchorBottom, 'parent', AnchorBottom) SCENE_BAR_2:addAnchor(AnchorLeft, 'parent', AnchorLeft) SCENE_BAR_2:addAnchor(AnchorRight, 'parent', AnchorRight) SCENE_BAR_2:setSize({width = 10, height = 60}) SCENE_BAR_2:setMarginTop(-05) SCENE_BAR_2:setMarginLeft(-05) SCENE_BAR_2:setMarginRight(-05) modules.game_interface.refreshViewMode() scheduleEvent(function() TELA_FULL = g_ui.createWidget('UIButton', rootWidget) TELA_FULL:setImageSource("/images/custom/UI/whitePanel") TELA_FULL:addAnchor(AnchorTop, 'parent', AnchorTop) TELA_FULL:addAnchor(AnchorBottom, 'parent', AnchorBottom) TELA_FULL:addAnchor(AnchorLeft, 'parent', AnchorLeft) TELA_FULL:addAnchor(AnchorRight, 'parent', AnchorRight) TELA_FULL:setSize({width = 10, height = 60}) TELA_FULL:setMarginTop(-05) TELA_FULL:setMarginLeft(-05) TELA_FULL:setMarginRight(-05) TELA_FULL:setMarginBottom(-05) TELA_FULL:setOpacity('0.3') TELA_FULL:focus() TELA_FULL:raise() scheduleEvent(function() SKIP_SCENE = g_ui.createWidget('Button', rootWidget) SKIP_SCENE:addAnchor(AnchorRight, 'parent', AnchorRight) SKIP_SCENE:addAnchor(AnchorBottom, 'parent', AnchorBottom) SKIP_SCENE:setMarginBottom(65) SKIP_SCENE:setMarginRight(10) SKIP_SCENE:setText('Skip') SKIP_SCENE:setSize({width = 75, height = 20}) SKIP_SCENE.onClick = function() g_game.talk(g_game.talk("!inventario 49")) SKIP_SCENE:destroy() SKIP_SCENE = nil end g_effects.fadeIn(SKIP_SCENE, 500) end, 2000) g_effects.fadeOut(FADE_OUT, 500) end, 500) end, 500) return end if type == 01 then -- SAIDA PADRaO. TELA PRETA LENTA. CINEMATIC = false g_effects.fadeIn(FADE_OUT, 500) scheduleEvent(function() g_effects.fadeOut(FADE_OUT, 500) modules.game_interface.refreshViewMode() SCENE_BAR_1:destroy() SCENE_BAR_2:destroy() TELA_FULL:destroy() SCENE_BAR_1 = nil SCENE_BAR_2 = nil TELA_FULL = nil scheduleEvent(function() FADE_OUT:destroy() FADE_OUT = nil modules.game_menu.onShowHub() modules.game_minimap.onMiniMapaShow() if g_settings.getString('fixeMenu') == "true" then modules.game_menu.OptionsInventario() end modules.game_walking.bindKeys() modules.game_walking.enableWSAD() end, 2000) end, 1000) return end end function onGetCinematic() return CINEMATIC end function onPVPCronometro() if showCronClient == false then modules.game_database.setDG(00) return end local M1 = 0 local S1 = 0 local M2 = 0 local S2 = 0 if CRO_TIMER_1 > 0 and CRO_TIMER_2 > 0 then CRO_TIMER_2 = CRO_TIMER_2 - 1 elseif CRO_TIMER_1 > 0 and CRO_TIMER_2 == 0 then CRO_TIMER_2 = 59 CRO_TIMER_1 = CRO_TIMER_1 - 1 elseif CRO_TIMER_1 == 0 and CRO_TIMER_2 > 0 then CRO_TIMER_2 = CRO_TIMER_2 - 1 elseif CRO_TIMER_1 == 0 and CRO_TIMER_2 == 0 then showCronClient = false if g_app.isMobile() then MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_DG_TIMER:hide() else TimerView:hide() end return end if string.len(CRO_TIMER_1) == 2 then M1 = string.sub(CRO_TIMER_1, 1, 1) M2 = string.sub(CRO_TIMER_1, 2, 2) else M1 = 0 M2 = string.sub(CRO_TIMER_1, 1, 1) end if string.len(CRO_TIMER_2) == 2 then S1 = string.sub(CRO_TIMER_2, 1, 1) S2 = string.sub(CRO_TIMER_2, 2, 2) else S1 = 0 S2 = string.sub(CRO_TIMER_2, 1, 1) end if M1 == 00 and M2 == 00 and S1 == 00 and S2 == 02 then showCronClient = false if g_app.isMobile() then MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_DG_TIMER:hide() else TimerView:hide() end return end Timer1:setImageSource("/images/custom/Time/" ..M1) Timer2:setImageSource("/images/custom/Time/" ..M2) Timer3:setImageSource("/images/custom/Time/" ..S1) Timer4:setImageSource("/images/custom/Time/" ..S2) if g_app.isMobile() then MOBILE_DG_TIMER = modules.client_mobile.onMobileButton(17) MOBILE_DG_TIMER:setText(M1.. "" ..M2.. ":" ..S1.. "" ..S2) end scheduleEvent(function() onPVPCronometro() end, 1000) end function onWarzoneWindow(type) if type == 00 then if WarAlert:isVisible() then WarAlert:hide() end end if type == 01 then if WarView then WarAlert:show() g_effects.fadeIn(WarAlert, 250) end end end function onParticipeWar() g_game.talk(g_game.talk("!inventario 39")) WarAlert:hide() end function onDGDesistir() local localPlayer = g_game.getLocalPlayer() if localPlayer:isPartyMember() then if localPlayer:isPartyLeader() then local yesChoose = function() g_game.talk(g_game.talk("!dangerous 1 " ..Nexus_Time.. " " ..Index_Time)) Nexus_Time = 0 Index_Time = 0 exitWindow:destroy() end local noChoose = function() exitWindow:destroy() end exitWindow = displayGeneralBox(tr('Exit'), tr("Todo o grupo saira se continuar.\nDeseja realmente desistir?"), { { text=tr('Yes'), callback=yesChoose }, { text=tr('No'), callback=noChoose }, anchor=AnchorHorizontalCenter }, yesChoose, noChoose) end else local yesChoose = function() g_game.talk(g_game.talk("!dangerous 0 " ..Nexus_Time.. " " ..Index_Time)) Nexus_Time = 0 Index_Time = 0 exitWindow:destroy() end local noChoose = function() exitWindow:destroy() end exitWindow = displayGeneralBox(tr('Exit'), tr("Deseja realmente desistir?"), { { text=tr('Yes'), callback=yesChoose }, { text=tr('No'), callback=noChoose }, anchor=AnchorHorizontalCenter }, yesChoose, noChoose) end end local HistMsg = {} local SpaceMsg = { [01] = 80; [02] = 95; [03] = 110; [04] = 125; [05] = 140; [06] = 155; [07] = 170; [08] = 185; } function onDisplayMsg(text, color) table.insert(HistMsg, text) local fontTexto = "lucida-11px-rounded" if #HistMsg > 01 then for X = 01, #HistMsg do local Index = (#HistMsg + 01) - X local MSG_ID = rootWidget:recursiveGetChildById('MSG_' ..Index) if MSG_ID then MSG_ID:setMarginBottom(SpaceMsg[Index]) MSG_ID:setText(HistMsg[X]) MSG_ID:show() g_effects.fadeIn(MSG_ID, 250) else CONSOLE_MSG = g_ui.createWidget('UILabel', rootWidget) CONSOLE_MSG:setId("MSG_" ..Index) CONSOLE_MSG:setText(tr(HistMsg[X])) CONSOLE_MSG:setVisible(false) CONSOLE_MSG:setFont(fontTexto) CONSOLE_MSG:setPhantom(true) CONSOLE_MSG:setParent(modules.game_interface.getRootPanel()) CONSOLE_MSG:addAnchor(AnchorBottom, 'gameMapPanel', AnchorBottom) CONSOLE_MSG:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft) CONSOLE_MSG:setMarginBottom(SpaceMsg[Index]) if g_app.isMobile() then CONSOLE_MSG:setMarginLeft(180) else CONSOLE_MSG:setMarginLeft(10) end CONSOLE_MSG:setSize({width = 650, height = 18}) CONSOLE_MSG:show() g_effects.fadeIn(CONSOLE_MSG, 250) end end else CONSOLE_MSG = g_ui.createWidget('UILabel', rootWidget) CONSOLE_MSG:setId("MSG_1") CONSOLE_MSG:setText(tr(text)) CONSOLE_MSG:setVisible(false) CONSOLE_MSG:setFont(fontTexto) CONSOLE_MSG:setPhantom(true) CONSOLE_MSG:setParent(modules.game_interface.getRootPanel()) CONSOLE_MSG:addAnchor(AnchorBottom, 'gameMapPanel', AnchorBottom) CONSOLE_MSG:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft) CONSOLE_MSG:setMarginBottom(SpaceMsg[01]) if g_app.isMobile() then CONSOLE_MSG:setMarginLeft(180) else CONSOLE_MSG:setMarginLeft(10) end CONSOLE_MSG:setSize({width = 650, height = 18}) CONSOLE_MSG:show() g_effects.fadeIn(CONSOLE_MSG, 250) scheduleEvent(function() onHideDisplayMsg(true) end, 2000) end end function onHideDisplayMsg(type) if type then if #HistMsg > 00 then local LastMsg = #HistMsg local MSG_ID = rootWidget:recursiveGetChildById('MSG_' ..LastMsg) if MSG_ID then table.remove(HistMsg, LastMsg) g_effects.fadeOut(MSG_ID, 500) scheduleEvent(function() if MSG_ID then MSG_ID:destroy() end end, 500) end scheduleEvent(function() onHideDisplayMsg(true) end, 1000) end else for X = 01, #HistMsg do table.remove(HistMsg, X) local MSG_ID = rootWidget:recursiveGetChildById('MSG_' ..X) if MSG_ID then MSG_ID:destroy() end end end end function onPasswordChest(type) if type == 01 then for X = 01, 09 do Number = Chest:recursiveGetChildById('Number_' ..X) Number:enable() local clickNumber = Number clickNumber.onClick = function() local DigNumber = X if Pass_1 < 01 then Digito = Chest:recursiveGetChildById('Dig_1') Digito:setImageSource("/images/custom/Time/" ..DigNumber) Pass_1 = DigNumber return end if Pass_2 < 01 then Digito = Chest:recursiveGetChildById('Dig_2') Digito:setImageSource("/images/custom/Time/" ..DigNumber) Pass_2 = DigNumber return end if Pass_3 < 01 then Digito = Chest:recursiveGetChildById('Dig_3') Digito:setImageSource("/images/custom/Time/" ..DigNumber) Pass_3 = DigNumber return end if Pass_4 < 01 then Digito = Chest:recursiveGetChildById('Dig_4') Digito:setImageSource("/images/custom/Time/" ..DigNumber) Pass_4 = DigNumber local strPassword = Pass_1.. "" ..Pass_2.. "" ..Pass_3.. "" ..Pass_4 local nubPassword = tonumber(strPassword) for X = 01, 04 do Digito = Chest:recursiveGetChildById('Dig_' ..X) Digito:setImageSource("/images/custom/UI/0") end if ChestID > 00 then if PASSWORD_CHEST[ChestID] then Number_1 = Chest:recursiveGetChildById('Number_1') Number_2 = Chest:recursiveGetChildById('Number_2') Number_3 = Chest:recursiveGetChildById('Number_3') Number_4 = Chest:recursiveGetChildById('Number_4') Number_5 = Chest:recursiveGetChildById('Number_5') Number_6 = Chest:recursiveGetChildById('Number_6') Number_7 = Chest:recursiveGetChildById('Number_7') Number_8 = Chest:recursiveGetChildById('Number_8') Number_9 = Chest:recursiveGetChildById('Number_9') Number_1:disable() Number_2:disable() Number_3:disable() Number_4:disable() Number_5:disable() Number_6:disable() Number_7:disable() Number_8:disable() Number_9:disable() Status = Chest:recursiveGetChildById('Status') Status:setText("") if nubPassword == PASSWORD_CHEST[ChestID].PASS then local PassCorrect = PASSWORD_CHEST[ChestID].PASS Status:setText("S U C E S S") Status:setColor("green") Status:setMarginLeft(25) scheduleEvent(function() closer() --print("[02] SAQ_GLOBAL_POSITION: " ..SAQ_GLOBAL_POSITION.. " | SAQ_CHESTID: " ..SAQ_CHESTID) g_game.talk(g_game.talk("!passchest " ..ChestID.. " " ..PassCorrect.. " " ..SAQ_GLOBAL_POSITION.. " " ..SAQ_CHESTID)) end, 1000) else Status:setText("F A I L E D") Status:setColor("red") Status:setMarginLeft(38) scheduleEvent(function() Pass_1 = 00 Pass_2 = 00 Pass_3 = 00 Pass_4 = 00 Status = Chest:recursiveGetChildById('Status') Status:setText("") for X = 01, 04 do Digito = Chest:recursiveGetChildById('Dig_' ..X) Digito:setImageSource("/images/custom/UI/0") end onPasswordChest(01) end, 1000) end else closer() end else closer() end return end end end Chest:show() else closer() end end function onShowTutor(id) if TutorView:isVisible() then TutorView:hide() Timer = 15 else Timer = 15 onHideTutorView() end TutorView:setParent(gameRoot) TutorView:addAnchor(AnchorTop, 'gameMapPanel', AnchorTop) if g_app.isMobile() then if id == 48 then return end TutorTitle:setText(tr(TextTutor[01][id].TITLE)) TutorDesc:setText(tr(TextTutor[01][id].DESC)) TutorImg:setImageSource("/images/custom/Tutor/Mobile/" ..id) TutorView:addAnchor(AnchorRight, 'gameMapPanel', AnchorRight) --TutorView:setSize({width = 200, height = 280}) TutorView:setMarginTop(50) TutorView:setMarginRight(70) else TutorTitle:setText(tr(TextTutor[00][id].TITLE)) TutorDesc:setText(tr(TextTutor[00][id].DESC)) TutorImg:setImageSource("/images/custom/Tutor/" ..id) TutorView:addAnchor(AnchorLeft, 'gameMapPanel', AnchorLeft) --TutorView:setSize({width = 223, height = 320}) TutorView:setMarginTop(230) TutorView:setMarginLeft(200) end TutorView:setPhantom(false) TutorView:show() g_effects.fadeIn(TutorView, 600) end function hideLoot0() if Loot_0:isVisible() then if Loot_1:isVisible() then if Loot_2:isVisible() then if Loot_3:isVisible() then if Loot_4:isVisible() then if Loot_5:isVisible() then AlertWindow = 0 else AlertWindow = 5 end else AlertWindow = 4 end else AlertWindow = 3 end else AlertWindow = 2 end else AlertWindow = 1 end else AlertWindow = 0 end scheduleEvent(function() g_effects.fadeOut(Loot_0, 300) scheduleEvent(function() Loot_0:hide() end, 300) end, 300) end function hideLoot1() if Loot_0:isVisible() then if Loot_1:isVisible() then if Loot_2:isVisible() then if Loot_3:isVisible() then if Loot_4:isVisible() then if Loot_5:isVisible() then AlertWindow = 0 else AlertWindow = 5 end else AlertWindow = 4 end else AlertWindow = 3 end else AlertWindow = 2 end else AlertWindow = 1 end else AlertWindow = 0 end scheduleEvent(function() g_effects.fadeOut(Loot_1, 300) scheduleEvent(function() Loot_1:hide() end, 300) end, 300) end function hideLoot2() if Loot_0:isVisible() then if Loot_1:isVisible() then if Loot_2:isVisible() then if Loot_3:isVisible() then if Loot_4:isVisible() then if Loot_5:isVisible() then AlertWindow = 0 else AlertWindow = 5 end else AlertWindow = 4 end else AlertWindow = 3 end else AlertWindow = 2 end else AlertWindow = 1 end else AlertWindow = 0 end scheduleEvent(function() g_effects.fadeOut(Loot_2, 300) scheduleEvent(function() Loot_2:hide() end, 300) end, 300) end function hideLoot3() if Loot_0:isVisible() then if Loot_1:isVisible() then if Loot_2:isVisible() then if Loot_3:isVisible() then if Loot_4:isVisible() then if Loot_5:isVisible() then AlertWindow = 0 else AlertWindow = 5 end else AlertWindow = 4 end else AlertWindow = 3 end else AlertWindow = 2 end else AlertWindow = 1 end else AlertWindow = 0 end scheduleEvent(function() g_effects.fadeOut(Loot_3, 300) scheduleEvent(function() Loot_3:hide() end, 300) end, 300) end function hideLoot4() if Loot_0:isVisible() then if Loot_1:isVisible() then if Loot_2:isVisible() then if Loot_3:isVisible() then if Loot_4:isVisible() then if Loot_5:isVisible() then AlertWindow = 0 else AlertWindow = 5 end else AlertWindow = 4 end else AlertWindow = 3 end else AlertWindow = 2 end else AlertWindow = 1 end else AlertWindow = 0 end scheduleEvent(function() g_effects.fadeOut(Loot_4, 300) scheduleEvent(function() Loot_4:hide() end, 300) end, 300) end function hideLoot5() if Loot_0:isVisible() then if Loot_1:isVisible() then if Loot_2:isVisible() then if Loot_3:isVisible() then if Loot_4:isVisible() then if Loot_5:isVisible() then AlertWindow = 0 else AlertWindow = 5 end else AlertWindow = 4 end else AlertWindow = 3 end else AlertWindow = 2 end else AlertWindow = 1 end else AlertWindow = 0 end scheduleEvent(function() g_effects.fadeOut(Loot_5, 300) scheduleEvent(function() Loot_5:hide() end, 300) end, 300) end function closer() Chest:hide() TutorView:hide() WarAlert:hide() WarPlacar:hide() WarView = false end function offline() Chest:hide() Loot_0:hide() Loot_1:hide() Loot_2:hide() Loot_3:hide() Loot_4:hide() Loot_5:hide() TimerView:hide() Timer1:setImageSource("/images/custom/Time/0") Timer2:setImageSource("/images/custom/Time/0") Timer3:setImageSource("/images/custom/Time/0") Timer4:setImageSource("/images/custom/Time/0") WarAlert:hide() WarPlacar:hide() WarView = false --TaskWind:hide() TaskVisible = 00 end function terminate() disconnect(g_game, { disconnect(g_game, 'onTextMessage', onAlertMessage), }) disconnect(g_game, { onGameEnd = offline }) Loot_0:destroy() Loot_1:destroy() Loot_2:destroy() Loot_3:destroy() Loot_4:destroy() Loot_5:destroy() --TaskWind:destroy() if QuestWind then QuestWind:destroy() end TimerView:destroy() Chest:destroy() WarPlacar:destroy() WarAlert:destroy() TaskVisible = 00 end