| | |
| | | # BYTE ItemIndex; //物品在背包中索引
|
| | | #};
|
| | | def OnItemTimeout(index, clientData, tick):
|
| | | packType = clientData.PackType
|
| | | itemIndex = clientData.ItemIndex
|
| | | |
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | backPack = curPlayer.GetItemManager().GetPack(packType)
|
| | | if not backPack:
|
| | | return
|
| | | curItem = backPack.GetAt(itemIndex)
|
| | | if not ItemCommon.CheckItemCanUse(curItem):
|
| | | GameWorld.DebugLog("物品不存在!")
|
| | | return
|
| | | |
| | | # 拍品
|
| | | if ItemControler.GetIsAuctionItem(curItem):
|
| | | GameWorld.DebugLog("玩家拍品过期: itemID=%s" % (curItem.GetItemTypeID()), curPlayer.GetPlayerID())
|
| | | ItemControler.SetIsAuctionItem(curItem, False, curPlayer)
|
| | | return
|
| | | |
| | | |
| | | return
|