| | |
| | | paramA = msgList[0]
|
| | | paramCount = len(msgList)
|
| | | playerID = curPlayer.GetPlayerID()
|
| | | isBind = False
|
| | | isAuctionItem = True
|
| | |
|
| | | # 清空拍品
|
| | | if paramA == 0:
|
| | |
| | | GameWorld.DebugAnswer(curPlayer, "非拍卖物品无法上架")
|
| | | return
|
| | | auctionItemList = []
|
| | | if itemCount < auctionGroup:
|
| | | GameWorld.DebugAnswer(curPlayer, "物品个数不能少于组数")
|
| | | return
|
| | | groupItemCount = itemCount / auctionGroup
|
| | | for i in xrange(auctionGroup):
|
| | | if i == auctionGroup - 1:
|
| | | groupItemCount += itemCount % auctionGroup
|
| | | curItem = ItemControler.GetOutPutItemObj(itemID, groupItemCount, isBind)
|
| | | for _ in xrange(auctionGroup):
|
| | | curItem = ItemControler.GetOutPutItemObj(itemID, itemCount, isAuctionItem)
|
| | | auctionItemList.append([curItem])
|
| | | PlayerAuctionHouse.__DoAddAuctionItem(curPlayer, auctionItemList)
|
| | |
|
| | |
| | | itemID = msgList[1]
|
| | | itemCount = max(1, msgList[2] if paramCount > 2 else 1)
|
| | | auctionGroup = max(1, msgList[3] if paramCount > 3 else 1)
|
| | | if itemCount < auctionGroup:
|
| | | GameWorld.DebugAnswer(curPlayer, "物品个数不能少于组数")
|
| | | return
|
| | | ipyData = IpyGameDataPY.GetIpyGameData("AuctionItem", itemID)
|
| | | if not ipyData:
|
| | | GameWorld.DebugAnswer(curPlayer, "非拍卖物品无法上架")
|
| | |
| | | if playerID not in familyPlayerIDList:
|
| | | familyPlayerIDList.append(playerID)
|
| | |
|
| | | familyAuctionItemList = [[itemID, itemCount, auctionGroup]] |
| | | familyAuctionItemList = [[itemID, itemCount]] * auctionGroup
|
| | | familyAuctionItemDict = {familyID:[familyPlayerIDList, familyAuctionItemList]}
|
| | | PlayerAuctionHouse.DoAddFamilyAuctionItem(familyAuctionItemDict)
|
| | |
|
| | |
| | |
|
| | | def __Help(curPlayer):
|
| | | GameWorld.DebugAnswer(curPlayer, "清空所有拍品: AuctionItem 0")
|
| | | GameWorld.DebugAnswer(curPlayer, "添加个人拍品: AuctionItem 1 物品ID 个数 分几组")
|
| | | GameWorld.DebugAnswer(curPlayer, "添加仙盟拍品: AuctionItem 2 物品ID 个数 分几组 受益玩家IDA 玩家IDB...")
|
| | | GameWorld.DebugAnswer(curPlayer, "添加个人拍品: AuctionItem 1 物品ID 个数 几组")
|
| | | GameWorld.DebugAnswer(curPlayer, "添加仙盟拍品: AuctionItem 2 物品ID 个数 几组 受益玩家IDA 玩家IDB...")
|
| | | return
|
| | |
|
| | |
|