From 254193aa2af834a522c6847b6b85250427563961 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 12 四月 2019 10:34:20 +0800 Subject: [PATCH] 6459 【后端】【2.0】缥缈仙域开发单(增加按时间掉血的NPC支持) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py index 9ba8d97..bd1d57f 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_ItemCompound.py @@ -578,7 +578,7 @@ return incRateItemCostList, expireTime def __CheckItemCanUseCompound(playerID, index, curItem): - if not ItemCommon.CheckItemCanUse(curItem): + if not ItemCommon.CheckItemCanUse(curItem) or ItemControler.GetIsAuctionItem(curItem): GameWorld.DebugLog("该物品不可使用!无法合成! index=%s" % (index), playerID) return @@ -710,7 +710,7 @@ return curEquip = itemPack.GetAt(decompoundItemIndex) - if not ItemCommon.CheckItemCanUse(curEquip): + if not ItemCommon.CheckItemCanUse(curEquip) or ItemControler.GetIsAuctionItem(curEquip): return attrCount = curEquip.GetUserAttrCount(ShareDefine.Def_IudetItemDecompound) @@ -747,7 +747,7 @@ # 返还物品 for itemID, itemCount, isBind in giveItemList: - ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isBind, [IPY_GameWorld.rptItem], + ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem], event=["ItemDecompound", True, {"decompoundItemNoteDict":decompoundItemNoteDict}]) GameWorld.Log("拆解物品成功: decompoundItemNoteDict=%s" % str(decompoundItemNoteDict), playerID) -- Gitblit v1.8.0