From f50014d70d74530c3c7f918fcec9a0f49f367a3e Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 22 十月 2024 18:50:31 +0800 Subject: [PATCH] 10284 同步其他版本(修复查询离线玩家代币数值错误bug;优化GM命令ClearInvest、SetMoney;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearInvest.py | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearInvest.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearInvest.py index 7621542..9ec54d2 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearInvest.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/ClearInvest.py @@ -32,12 +32,22 @@ if not msgList: GameWorld.DebugAnswer(curPlayer, "重置所有投资: ClearInvest 0") GameWorld.DebugAnswer(curPlayer, "重置指定投资: ClearInvest 类型") + GameWorld.DebugAnswer(curPlayer, "激活指定投资: ClearInvest A 类型") GameWorld.DebugAnswer(curPlayer, "类型:7-永久卡;8-周卡;9-登录卡;10-等级卡;11-boss卡;") return investType = msgList[0] if not investType: investTypeList = ChConfig.InvestTypeList + elif investType == "A": + investType = msgList[1] if len(msgList) > 1 else 0 + if investType not in ChConfig.InvestTypeList: + GameWorld.DebugAnswer(curPlayer, "不存在该投资类型!") + return + PlayerGoldInvest.__DoLogicInvest(curPlayer, investType) + GameWorld.DebugAnswer(curPlayer, "激活投资: %s" % investType) + return + elif investType not in ChConfig.InvestTypeList: GameWorld.DebugAnswer(curPlayer, "不存在该投资类型!") return @@ -50,6 +60,6 @@ PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_InvestReward % (itype, keyNum), 0) PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_InvestProgress % (itype, keyNum), 0) PlayerGoldInvest.Sync_InvestInfo(curPlayer, itype) - + return -- Gitblit v1.8.0