| | |
| | | import NPCCommon
|
| | | import FBCommon
|
| | |
|
| | | import random
|
| | | import json
|
| | | #---------------------------------------------------------------------
|
| | | #导入
|
| | |
| | |
|
| | | #---------------------------------------------------------------------
|
| | |
|
| | | def DropItem(curPlayer, itemList, npcID, dropPosX, dropPosY, isOnlySelfSee=True, isDropDisperse=True):
|
| | | def DoMapDropItem(curPlayer, itemList, npcID, dropPosX, dropPosY, isOnlySelfSee=True, isDropDisperse=True):
|
| | | if not itemList:
|
| | | return
|
| | | if isDropDisperse:
|
| | |
| | | else:
|
| | | dropItemList = itemList
|
| | |
|
| | | random.shuffle(dropItemList) # 打乱顺序
|
| | | index = 0
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | gameMap = GameWorld.GetMap()
|