From c2c30fce8df5dc5ea69f4f93bc9a6c655b2928cd Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 05 十二月 2025 15:15:15 +0800
Subject: [PATCH] 376 【福利】兑换码
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MainLevel.py | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MainLevel.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MainLevel.py
index 62016fd..5b9be05 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MainLevel.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MainLevel.py
@@ -27,8 +27,8 @@
if not gmList:
GameWorld.DebugAnswer(curPlayer, "重置主线: MainLevel 0")
- GameWorld.DebugAnswer(curPlayer, "设置主线: MainLevel 章节 关卡 波")
- GameWorld.DebugAnswer(curPlayer, "测试掉落: MainLevel d 战锤数")
+ GameWorld.DebugAnswer(curPlayer, "设置主线: MainLevel 章节 关卡 波 [是否同波]")
+ GameWorld.DebugAnswer(curPlayer, "测试击杀: MainLevel k 消耗战锤数")
GameWorld.DebugAnswer(curPlayer, "重置掉落: MainLevel d 0 [是否清掉落背包]")
GameWorld.DebugAnswer(curPlayer, "重置战利: MainLevel b 0")
GameWorld.DebugAnswer(curPlayer, "设置战利: MainLevel b 战利品ID 已掉落个数")
@@ -36,19 +36,23 @@
value = gmList[0]
+ if value == "k":
+ useXiantao = gmList[1] if len(gmList) > 1 else 1
+ GameLogic_MainLevel.GMTestKill(curPlayer, useXiantao)
+ return
+
if value == "d":
unXiantao = gmList[1] if len(gmList) > 1 else 1
if unXiantao == 0:
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_UnXiantaoCntExp, 0)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_UnXiantaoCntEquip, 0)
+ PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_AppointDropEquipCnt, 0)
GameLogic_MainLevel.ResetBootyDropToday(curPlayer)
clearDropPack = gmList[2] if len(gmList) > 2 else 0
if clearDropPack:
ClearPack.__DoLogic_Clear_Pack(curPlayer, IPY_GameWorld.rptIdentify)
GameWorld.DebugAnswer(curPlayer, "重置未结算战锤掉落OK!")
return
-
- GameLogic_MainLevel.GMTestKillDrop(curPlayer, unXiantao)
return
if value == "b":
@@ -74,6 +78,7 @@
chapterID = value
levelNum = gmList[1] if len(gmList) > 1 else 1
wave = gmList[2] if len(gmList) > 2 else 1
+ isSameWave = gmList[3] if len(gmList) > 3 else 0
levelIpyData = IpyGameDataPY.GetIpyGameData("MainLevel", chapterID, levelNum)
if not levelIpyData:
@@ -88,6 +93,6 @@
wave = waveMax
nowValue = PlayerControl.SetMainLevelNowInfo(curPlayer, chapterID, levelNum, wave)
- passValue = PlayerControl.SetMainLevelPassInfo(curPlayer, chapterID, levelNum, wave)
+ passValue = PlayerControl.SetMainLevelPassInfo(curPlayer, chapterID, levelNum, wave if isSameWave else max(0, wave - 1))
GameWorld.DebugAnswer(curPlayer, "设置主线:章关=%s-%s,波=%s,%s,%s" % (chapterID, levelNum, wave, nowValue, passValue))
return
--
Gitblit v1.8.0