| | |
| | |
|
| | | curItemCount = singItem.GetCount()
|
| | | curItemID = singItem.GetItemTypeID()
|
| | | curItemIsBind = singItem.GetIsBind()
|
| | | curItemIsAuctionItem = ItemControler.GetIsAuctionItem(singItem)
|
| | |
|
| | | isPutInTemp = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_PickupItemPutInTemp)
|
| | | packIndex = ShareDefine.rptTempItem if isPutInTemp else IPY_GameWorld.rptItem
|
| | | packIndex = ChConfig.GetItemPackType(singItem.GetType(), packIndex)
|
| | |
|
| | | # 是否可放入
|
| | | if not itemControl.CanPutInItem(packIndex, curItemID, curItemCount, curItemIsBind):
|
| | | if not itemControl.CanPutInItem(packIndex, curItemID, curItemCount, curItemIsAuctionItem):
|
| | | PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [packIndex])
|
| | | GameWorld.Log("拾取物品无法放入背包!mapItemID=%s,dropItemNPCID=%s,curItemID=%s,packIndex=%s"
|
| | | % (mapItemID, dropItemNPCID, curItemID, packIndex), curPlayer.GetPlayerID())
|
| | |
| | | PlayerControl.NotifyCode(curPlayer, "UseResLost10")
|
| | | return False
|
| | |
|
| | | #绑定物品不可掉落
|
| | | #绑定物品不可丢弃
|
| | | if curItem.GetIsBind():
|
| | | PlayerControl.NotifyCode(curPlayer, "UseResLost10")
|
| | | return False
|