--[[ Mod Telepro para Minetest Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine) Recebeste uma cópia da GNU Lesser General Public License junto com esse software, se não, veja em . Inicializador de variaveis e scripts ]] -- Notificador de Inicializador local notificar = function(msg) if minetest.setting_get("log_mods") then minetest.debug("[Telepro]"..msg) end end local modpath = minetest.get_modpath("telepro") -- Variavel global telepro = {} -- Carregar scripts notificar("Carregando scripts...") -- Criação do banco de dados telepro.bd = dofile(modpath.."/lib/memor.lua") -- Spawn do servidor (para onde os baloes permitem ir) telepro.spawn = {x=0, y=0, z=0} if telepro.bd.verif("centro", "pos") == true then telepro.spawn = telepro.bd.pegar("centro", "pos") end -- Variaveis personalizaveis telepro.var = {} -- Auto geração de balão em jogadores novos telepro.var.autogen = true if minetest.settings:get("telepro_autogen") == "false" then telepro.var.autogen = false end -- Limitação de uma geração automatica por dia telepro.var.limite_diario = true if minetest.settings:get("telepro_daily_limit") == "false" then telepro.var.limite_diario = false end -- Desabilitar botão de geração de balão aleatorio telepro.var.disable_random_balloon_button = false if minetest.settings:get("telepro_disable_random_balloon_button") == "true" then telepro.var.disable_random_balloon_button = true end -- Tempo de verificação do balao proprio telepro.var.tempo_verificar_balao = tonumber(minetest.setting_get("telepro_time_check_balloon") or 15) if telepro.var.tempo_verificar_balao < 5 then telepro.var.tempo_verificar_balao = 5 end -- Funções dofile(modpath.."/tradutor.lua") dofile(modpath.."/mensagens.lua") dofile(modpath.."/online.lua") dofile(modpath.."/reivindicar.lua") dofile(modpath.."/ir_balao.lua") dofile(modpath.."/comum.lua") dofile(modpath.."/reparar_balao.lua") dofile(modpath.."/gerar_balao_aleatorio.lua") dofile(modpath.."/check_balao_proprio.lua") -- Interfaces dofile(modpath.."/visitas.lua") dofile(modpath.."/interface_bau.lua") dofile(modpath.."/interface_jogador.lua") -- Balao dofile(modpath.."/balao.lua") -- Nodes dofile(modpath.."/corda.lua") dofile(modpath.."/bau.lua") dofile(modpath.."/bau_spawn.lua") dofile(modpath.."/balao_decor.lua") -- Comandos dofile(modpath.."/comandos.lua") -- Gerador de balao automatico dofile(modpath.."/autogen.lua") -- Ajuste de compatibilidade com outros mods dofile(modpath.."/compatibilidade.lua") notificar("OK")