| | |
| | | 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权限
|
| | |
| | | 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
|