From 0ae6bb572a43f024fa9cf89fe0b1b13f37111a86 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 20 三月 2026 22:24:31 +0800
Subject: [PATCH] 16 卡牌服务端(修复砍价购买A801没有通知获得货币bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
index d09f2da..a8a293f 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -960,7 +960,11 @@
return self.PutItemInVPack(packIndex, tagItem, event)
eventName, isForceEvent, addDict = event
-
+
+ if PlayerHero.AutoChangeToSkinPoint(curPlayer, tagItem, eventName):
+ tagItem.Clear()
+ return True
+
#记录创建物品时的登录天
if tagItem.GetItemTypeID() in ReadChConfig.GetEvalChConfig('OpenBoxByLoginDayCfg'):
if tagItem.GetUserAttr(ShareDefine.Def_IudetCreateItemLoginDay) == 0:#没有设置过才设置
@@ -2286,6 +2290,7 @@
'''通知玩家获得奖励信息
@param giveItemInfo: 可以是列表 [[itemID,count,isBind], ...] 或 [[itemID,count], ...] 或 {itemID:count, ...}
@param moneyInfo: 奖励货币信息 {moneyType:moneyValue, ...} moneyType 可以是字符串或数值
+ moneyValue 也可以传入列表 [moneyValue, isBind],其中 isBind 同物品的 isBind 标记逻辑
'''
notifyItemList = []
if isinstance(giveItemInfo, dict):
@@ -2299,14 +2304,23 @@
clientPack.ExpPoint = exp / ChConfig.Def_PerPointValue
clientPack.Exp = exp % ChConfig.Def_PerPointValue
if moneyInfo and isinstance(moneyInfo, dict):
- for moneyType, moneyValue in moneyInfo.items():
+ for moneyType, moneyValueInfo in moneyInfo.items():
if isinstance(moneyType, str):
moneyType = int(moneyType)
- if not moneyType or not moneyValue:
+ if not moneyType or not moneyValueInfo:
+ continue
+ isBind = 0
+ if isinstance(moneyValueInfo, (int, long)):
+ moneyValue = moneyValueInfo
+ elif isinstance(moneyValueInfo, list):
+ moneyValue = moneyValueInfo[0]
+ isBind = moneyValueInfo[1] if len(moneyValueInfo) > 1 else 0
+ else:
continue
money = ChPyNetSendPack.tagMCGiveAwardMoney()
money.MoneyType = moneyType
money.MoneyValue = moneyValue
+ money.IsBind = isBind
clientPack.MoneyList.append(money)
clientPack.MoneyLen = len(clientPack.MoneyList)
for itemInfo in notifyItemList:
--
Gitblit v1.8.0