From ea99ae4d08b7475560dceb9b8fd9a370daab0cbb Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 09 九月 2019 18:54:22 +0800
Subject: [PATCH] 8255 【后端】【主干】拍品可使用及上下架优化(拍品可下架)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAuctionHouse.py |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAuctionHouse.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAuctionHouse.py
index 666237d..28d9b81 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAuctionHouse.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerAuctionHouse.py
@@ -246,6 +246,27 @@
     __DoAddAuctionItem(None, auctionItemList)
     return
 
+#// B5 15 拍卖行下架拍品 #tagCMUnsellAuctionItem
+#
+#struct    tagCMUnsellAuctionItem
+#{
+#    tagHead    Head;
+#    char    ItemGUID[40];
+#};
+def OnUnsellAuctionItem(index, clientData, tick):
+    curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
+    playerID = curPlayer.GetPlayerID()
+    itemGUID = clientData.ItemGUID
+    
+    # 直接发邮件,这里就不验证背包了
+#    #验证背包空间
+#    if not ItemCommon.CheckPackHasSpace(curPlayer, IPY_GameWorld.rptItem):
+#        PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_998371")
+#        return
+    
+    QueryGameServer_AuctionHouse(playerID, "UnsellAuctionItem", [itemGUID])
+    return
+
 def DR_AuctionHouse(curPlayer, eventName, drDict):
     accID = "" if not curPlayer else curPlayer.GetAccID()
     playerID = 0 if not curPlayer else curPlayer.GetPlayerID()

--
Gitblit v1.8.0