From e91154b0212e34aeb85cd7aad4a4eb73b1465001 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 07 一月 2025 19:30:31 +0800 Subject: [PATCH] 10289 【越南】【英语】【砍树】【BT】运势-服务端(寻宝设定表增加配置不同的寻宝广播key) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py index 0bdd5ad..be6bc5d 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTreasure.py @@ -235,6 +235,7 @@ GameWorld.DebugLog("beSureCountDict=%s" % beSureCountDict, playerID) GameWorld.DebugLog("ensureCount=%s, %s" % (ensureCount, ensureRateList), playerID) notifyGridNumList = setIpyData.GetNotifyGridNumList() # 额外需要广播的格子,幸运必出、次数必出可不配置 + notifyKey = setIpyData.GetNotifyKey() gridNumMaxLimitInfo = setIpyData.GetGridNumMaxLimitInfo() # {"格子":最大可产出次数, ...} gridNumCountInfo = {} # 有限制产出次数的格子已经产出数 for gridNumStr in gridNumMaxLimitInfo.keys(): @@ -422,8 +423,8 @@ itemObj = ItemControler.GetOutPutItemObj(itemID, itemCount, False, curPlayer=curPlayer) mailItemDict = ItemCommon.GetMailItemDict(itemObj) - if int(gridNum) in notifyGridNumList: - PlayerControl.WorldNotify(0, "HappyXB", [curPlayer.GetPlayerName(), itemID, itemObj.GetUserData(), itemCount]) + if int(gridNum) in notifyGridNumList and notifyKey: + PlayerControl.WorldNotify(0, notifyKey, [curPlayer.GetPlayerName(), itemID, itemObj.GetUserData(), itemCount]) if mailItemList or not itemControl.PutInItem(packType, itemObj, event=[ChConfig.ItemGive_Treasure, False, {}]): mailItemList.append(mailItemDict) -- Gitblit v1.8.0