From bf398236af3eefb4587f8138a5d6c916c69838d3 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 20 三月 2019 15:23:29 +0800
Subject: [PATCH] 6382 【后端】【2.0】功能是否绑定及拍品优化调整(拍品限制使用)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py |   42 +-----------------------------------------
 1 files changed, 1 insertions(+), 41 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
index 0277155..ee2cbd9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/FunctionNPCCommon.py
@@ -936,46 +936,6 @@
 
     return True
 
-
-#---------------------------------------------------------------------
-##检查物品可否修理
-# @param curPlayer 玩家实例
-# @param curItem 物品实例
-# @param farRepair 是否远程修理
-# @return 返回值真, 检查通过
-# @remarks 检查物品可否修理
-#===============================================================================
-# def __CheckRepairItem(curPlayer, curItem, farRepair):
-#    
-#    if not ItemCommon.CheckItemCanUse(curItem):
-#        if not farRepair:
-#            #封包信息不正确
-#            PlayerControl.NotifyCode(curPlayer, "UseResLost04")
-#            
-#        return
-#    
-#    if curItem.GetCanRepair() == 0:
-#        if not farRepair:
-#            #物品不可修理
-#            PlayerControl.NotifyCode(curPlayer, "UseResLost13")   
-#            
-#        return
-#    
-#    if ItemControler.IsEventItem(curItem):
-#        if not farRepair:
-#            PlayerControl.NotifyCode(curPlayer, "itemuse_chenxin_31379")
-#             
-#        return
-#    
-#    if curItem.GetEndureReduceType() == ChConfig.Def_EquipReduceType_None or curItem.GetMaxEndure() == 0:
-#        if not farRepair:
-#            #耐久字段为0,不符合要求,返回
-#            PlayerControl.NotifyCode(curPlayer, "UseResLost13")
-#            
-#        return
-#    
-#    return True
-#===============================================================================
 #--------------------出售物品
 ##出售物品
 # @param curPlayer 玩家实例
@@ -1097,7 +1057,7 @@
 # @return 返回值真, 检查通过
 # @remarks 检查物品是否可以出售
 def __CheckItemSell(curPlayer, curItem) :
-    if not ItemCommon.CheckItemCanUse(curItem):
+    if not ItemCommon.CheckItemCanUse(curItem) or ItemControler.GetIsAuctionItem(curItem):
         PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_644055")
         return
     

--
Gitblit v1.8.0