From a388abb4b97782c1c694a8d28d8a1e73e03a35c0 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期一, 10 六月 2019 16:33:25 +0800
Subject: [PATCH] 7155 【后端】【2.0】新增仙盟创建规则(通知修改)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py
index 45929c5..4d30f4b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py
@@ -65,7 +65,12 @@
if clientData.PriceCount <= 0:
GameWorld.DebugLog("Bourse### PlayerSellBourseItem PriceCount <= 0"%itemIndex)
return
-
+ if clientData.Count > curItem.GetCount():
+ GameWorld.Log(' Bourse### 客户端发的物品数量大于实际数量!!')
+ sellCount = min(clientData.Count, curItem.GetCount())
+ if sellCount <= 0:
+ return
+
password = clientData.Pwd
#判断vip权限
if password and not PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_BoursePwd):
@@ -76,7 +81,7 @@
sendPack = ChMapToGamePyPack.tagMGCheckAddPlayerBourseItem()
sendPack.PlayerID = curPlayer.GetPlayerID()
sendPack.ItemIndex = itemIndex
- sendPack.Count = clientData.Count
+ sendPack.Count = sellCount
sendPack.PriceType = clientData.PriceType
sendPack.PriceCount = clientData.PriceCount
sendPack.Pwd = password
@@ -210,7 +215,6 @@
ItemControler.SetItemCount(curCreateItem, curPackData.Count)
if curCreateItem.GetPackCount() == 1:
- ItemControler.SetItemIsBind(curCreateItem, False)
ItemCommon.SetEquipGearScore(curCreateItem, curPackData.EquipGS)
curCreateItem.SetUserData(curPackData.UserData, curPackData.UserDataLen)
--
Gitblit v1.8.0