Files
DP-S_Script/示例项目/深渊模式称号/深渊模式称号.nut
2026-04-16 16:27:53 +08:00

47 lines
1.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//尊贵的客人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;
}
}
}