65 lines
1.5 KiB
Plaintext
65 lines
1.5 KiB
Plaintext
getroottable().DebugModelFlag <- false;
|
|
//初始化插件
|
|
function InitPluginInfo() {
|
|
//初始化定时器
|
|
_Timer_Object <- Timer();
|
|
|
|
|
|
|
|
//初始化自动重载 只在15线开启
|
|
local ConfigPath = Sq_Game_GetConfig();
|
|
local Channel = ConfigPath.slice(ConfigPath.find("cfg/") + 4, ConfigPath.len());
|
|
if (Channel.find("15")) GameManager.OpenHotFix("/dp_s/Dps_A");
|
|
|
|
local PoolObj = MysqlPool.GetInstance();
|
|
PoolObj.SetBaseConfiguration("127.0.0.1", 3306, "game", "uu5!^%jg");
|
|
//连接池大小
|
|
PoolObj.PoolSize = 10;
|
|
//初始化
|
|
PoolObj.Init();
|
|
|
|
|
|
// Sq_CreatSocketConnect("192.168.200.24", "65109");
|
|
|
|
//初始化结婚
|
|
ProjectInitFuncMap.P_Marry <- Marry();
|
|
|
|
|
|
//初始化日志器
|
|
Log({
|
|
"normal": "/dp_s/log/normal.log",
|
|
"error": "/dp_s/log/error.log"
|
|
});
|
|
//调用方式
|
|
//Log.Put("normal", "测试日志");
|
|
//Log.Put("error", "测试错误日志");
|
|
|
|
}
|
|
|
|
|
|
|
|
function PrintTag() {
|
|
print(InitSuccessTag);
|
|
}
|
|
|
|
function main() {
|
|
|
|
InitPluginInfo();
|
|
|
|
PrintTag();
|
|
|
|
GameManager.SetGameMaxLevel(95);
|
|
GameManager.FixAvatarUseJewel();
|
|
GameManager.FixSaveTown();
|
|
GameManager.FixDespairGold();
|
|
|
|
local PvfObject = Script();
|
|
local Data = ScriptData.GetEquipment(305014);
|
|
printT(Data);
|
|
}
|
|
|
|
|
|
// getroottable().CombatRankServerProject <- CombatRank();
|
|
// getroottable().ServerControlProject <- ServerControl();
|
|
// getroottable().AntonServerProject <- Anton();
|
|
// getroottable().FiendwarServerProject <- Fiendwar(); |