对于mir2.def.init文件,详细GM都不会陌生了,早起在架设战神引擎的时候,需要到这份文件21行去修改16位的IP或者域名,现在有明文版,也就是解密版,更方便了。但现在最新的技术,已经不需要修改这份文件了,直接跳过黄色列表,进入分区。
跳过黄色列表教程:https://www.8h4.com/jishu/117.html
mir2.def.init明文版
local current = ...
import(".globa1")
import(".globa2")
import(".globa3")
def = {}
print("init def")
def.colors = import(".colors")
def.cmds = import(".cmds")
def.perload = import(".perload")
def.guild = import(".guild")
def.magic = import(".magic")
def.operate = import(".operate")
def.font = "STHeitiSC"
def.gameName = "华哥传奇"
def.gameVersionType = "185"
def.useIGW = 1
def.gameType = "gametea"
def.MIR_VERSION_NUMBER = 131532307
function def.lazyLoadConfig()
def.role = import(".role", current)
def.role.init()
def.items = import(".items", current)
def.map = import(".map", current)
def.skill = import(".skill", current)
def.titledesc = import(".titledesc", current)
def.wordfilter = import(".wordfilter", current)
def.gmCmd = import(".gmCmd", current)
def.bigmap = import(".bigmap", current)
end
function def.setSF(ip, port, password, notice)
def.sfIp = ip
def.sfPort = pert
def.sfPassword = password
local slot5 = "http://"
local slot6 = ip
local slot7 = ":"
local slot8 = port
local slot9 = "/serverlist?password="
local slot10 = password
def.sfAuthUrl = slot5 .. slot6 .. slot7 .. slot8 .. slot9 .. slot10
end
def.setSF("103.45.177.137", 8088, "7g9egjkew")
function def.setSFNotice(notice)
def.sfNotice = notice
end
function def.setLoginCenter(ip, port, serverName, serverid)
local slot5 = "http://"
local slot6 = ip
local slot7 = ":"
local slot8 = port
def.loginCenter = slot5 .. slot6 .. slot7 .. slot8
def.loginCenterIP = ip
def.loginCenterPort = port
def.serverName = serverName
def.serverId = serverid
end
def.setLoginCenter("center.103.45.177.137", 8088, "华哥传奇", "103.45.177.137")
function def.resetLoginCenter()
def.loginCenter = nil
def.loginCenterIP = nil
def.loginCenterPort = nil
def.serverName = nil
def.serverId = nil
end
function def.setGameServer(zoneid, ip, areaID, gameVersion, info, configName, configVer)
def.zoneid = zoneid
def.ip = ip
def.areaID = tonumber(areaID) or 0
def.gameVersionType = tostring(gameVersion or "185")
def.isSelectServer = true
def.serverinfo = info
def.configName = configName
def.configVer = configVer
end
function def.resetGameServer()
def.zoneid = nil
def.ip = nil
def.areaID = nil
def.gameVersionType = nil
def.isSelectServer = false
def.serverinfo = nil
def.configName = nil
def.configVer = nil
end
function def.setIsLazyLoadConfig(b)
def.bLazyLoadConfig = b
end