From 3bc111d39530eca57909ff49ff7355c87f06a451 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 31 五月 2019 16:31:50 +0800
Subject: [PATCH] 6805 【后端】【2.0】副本前端化(增加回收木桩支持)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
index 67f91e3..3cd95cb 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/NPC/NPCCommon.py
@@ -2003,6 +2003,28 @@
         
     return
 
+#// B4 0F 回收私有专属木桩怪 #tagCMRecyclePriWoodPile
+#
+#struct    tagCMRecyclePriWoodPile
+#{
+#    tagHead        Head;
+#    DWORD        ObjID;
+#};
+def OnRecyclePriWoodPile(index, clientData, tick):
+    curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
+    objID = clientData.ObjID
+    curNPC = GameWorld.FindNPCByID(objID)
+    if not curNPC:
+        return
+    if curNPC.GetType() not in [ChConfig.ntPriWoodPilePVE, ChConfig.ntPriWoodPilePVP]:
+        return
+    summonPlayerID = curNPC.GetDictByKey(ChConfig.Def_NPC_Dict_PriWoodPilePlayerID)
+    if curPlayer.GetPlayerID() != summonPlayerID:
+        #GameWorld.DebugLog("非玩家私有木桩...")
+        return
+    SetDeadEx(curNPC)
+    return
+
 #// B4 0C 召唤私有专属木桩怪 #tagCMSummonPriWoodPile
 #
 #struct    tagCMSummonPriWoodPile

--
Gitblit v1.8.0