From d83f6c94031070ebc6b7ccd33addc669ac94775a Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 19 十月 2018 11:58:21 +0800
Subject: [PATCH] 2180 【主干】【1.1.0】【1.0.18】单人进入渡劫副本没有刷怪

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
index 0154b23..53626ee 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
@@ -244,6 +244,7 @@
         
         isPutInTemp = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_PickupItemPutInTemp)
         packIndex = ShareDefine.rptTempItem if isPutInTemp else IPY_GameWorld.rptItem
+        packIndex = ChConfig.GetItemPackType(singItem.GetType(), packIndex)
         
         # 是否可放入
         if not itemControl.CanPutInItem(packIndex, curItemID, curItemCount, curItemIsBind):
@@ -260,8 +261,8 @@
         if not itemControl.PutInItem(packIndex, singItem, event=[ChConfig.ItemGive_Pickup, False, {"NPCID":dropItemNPCID}]):
             #物品不能放入
             #PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [packIndex])
-            GameWorld.Log("拾取物品放入背包失败!mapItemID=%s,dropItemNPCID=%s,curItemID=%s,packIndex=%s" 
-                          % (mapItemID, dropItemNPCID, curItemID, packIndex), curPlayer.GetPlayerID())
+            GameWorld.ErrLog("拾取物品放入背包失败!mapItemID=%s,dropItemNPCID=%s,curItemID=%s,packIndex=%s" 
+                             % (mapItemID, dropItemNPCID, curItemID, packIndex), curPlayer.GetPlayerID())
             return
 
         if dropItemNPCID:

--
Gitblit v1.8.0