From a4a3ebb0073a8b866eb3df553f4c05cb0aa0e753 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 11 十二月 2025 14:43:26 +0800
Subject: [PATCH] 297 【常规】坊市系统-服务端(修复坊市购买配置多物品报错bug;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
index c19100c..c117e62 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
@@ -244,7 +244,9 @@
totalItemList = []
if itemID:
totalItemList.append([itemID, itemCount * clientBuyCount, isBind])
- for itemIDEx, itemCountEx, isBindEx in itemListEx:
+ for itemEx in itemListEx:
+ itemIDEx, itemCountEx = itemEx[:2]
+ isBindEx = itemEx[2] if len(itemEx) > 2 else 0
totalItemList.append([itemIDEx, itemCountEx * clientBuyCount, isBindEx])
if not totalItemList:
GameWorld.ErrLog("Store shop item error! shopType=%s,shopID=%s" % (shopType, shopID), curPlayer.GetPlayerID())
--
Gitblit v1.8.0