//尊贵的客人:26700 //称号位:11 function _Dps_hellParty_Main_() { //深渊模式开关 local hellPartyTag = false; //主逻辑 Cb_CParty_DungeonStart_Enter_Func.hellparty <- function(args) { if (hellPartyTag == false) { return; } args[3] = 1; return args; } //获取玩家称号 Cb_StartGame_check_error_Leave_Func.hellparty <- function(args) { local Config = GlobalConfig.Get("深渊模式功能_Pluto.json"); local VipID = Config["称号ID"]; local SUser = User(args[1]); local cid = SUser.GetCID(); print("cid = " + cid + "称号ID = " + VipID); local InvenObj = SUser.GetInven(); if (InvenObj) { local ItemObj = InvenObj.GetSlot(0, 11); local item_id = ItemObj.GetIndex(); // 获取物品ID //print(item_id); if(item_id == VipID) { hellPartyTag = true; }else{ hellPartyTag = false; } print("hellPartyTag = " + hellPartyTag); } } //================================================== // 获取地狱派对难度功能 Cb_GetHellPartyDifficulty_Leave_Func.abc <- function (args) { local Config = GlobalConfig.Get("深渊模式功能_Pluto.json"); local GetHellPartyDifficulty = Config["非常困难"]; print("难度开关 " + GetHellPartyDifficulty); if (GetHellPartyDifficulty == 1) { local retval = args.pop(); print("获取地狱派对难度 " + retval); return 1; } } }