| | |
| | | import EventReport
|
| | | import ItemCommon
|
| | | import DataRecordPack
|
| | | import ShareDefine
|
| | | import PlayerCoin
|
| | |
|
| | | import md5
|
| | |
| | | succGiveItemList = []
|
| | | for itemInfo in awardItemList:
|
| | | itemID, itemCount, itemBind = itemInfo[:3]
|
| | | isAppoint = itemInfo[3] if len(itemInfo) > 3 else 0
|
| | | |
| | | if isAppoint:
|
| | | isOK = ItemControler.GivePlayerAppointItem(curPlayer, itemID, False)
|
| | | else:
|
| | | isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem])
|
| | | appointID = itemInfo[3] if len(itemInfo) > 3 else 0
|
| | | setAttrDict = {ShareDefine.Def_CItemKey_AppointID:appointID}
|
| | | isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem], setAttrDict=setAttrDict)
|
| | | if isOK:
|
| | | succGiveItemList.append(itemInfo)
|
| | |
|