From acbbad4fb7e7aff47ce3066d0ec6eccc34b43d30 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 11 一月 2019 10:44:18 +0800
Subject: [PATCH] 5817 【后端】【1.5】限时抢购支持对应不同的职业

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py
index d0d1454..1c1c849 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py
@@ -48,6 +48,15 @@
         GameWorld.DebugAnswer(curPlayer, '该物品不存在 = %s' % (itemID))
         return
     packCount = itemData.GetPackCount()
+    if itemID in ChConfig.Def_TransformItemIDList:
+        curItem = ItemControler.GetOutPutItemObj(itemID)
+        ItemControler.SetItemCount(curItem, count, curPlayer.GetPlayerID(), curPlayer.GetAccID(),
+                                   curPlayer.GetPlayerName())
+        PlayerItemControler = ItemControler.PlayerItemControler(curPlayer)
+        if not PlayerItemControler.PutInItem(IPY_GameWorld.rptItem, curItem, event=[ChConfig.ItemGive_GMMake, False, {"CMD":"MakeItemCount"}]):
+            GameWorld.DebugAnswer(curPlayer, "放入物品失败!")
+        return
+    
     if packCount > 1:
         __DoGMGivePlayerItem(curPlayer, itemID, count, runeLV)
     else:

--
Gitblit v1.8.0