From 330c5a30027fd33e2f77643f4c3c2f77b4d91a0f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 10 五月 2024 16:42:13 +0800
Subject: [PATCH] 10019 【砍树】回合战斗(回合战斗NPC相关属性统一调整到NPC扩展表;去除副本回合制表,新增冒险关卡表;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index 57a4778..5e54f8c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -20950,7 +20950,8 @@
     Head = tagHead()
     MapID = 0    #(DWORD MapID)// 自定义地图ID,可用于绑定战斗场景功能(如野外关卡,爬塔功能,竞技场等)
     FuncLineID = 0    #(WORD FuncLineID)
-    PlayerID = 0    #(DWORD PlayerID)// 战斗目标玩家ID,可为0,某些功能可能有用,如竞技场
+    TagType = 0    #(BYTE TagType)// 战斗目标类型,0-NPC,1-玩家,2-队伍
+    TagID = 0    #(DWORD TagID)// 战斗目标类型对应的ID
     ValueCount = 0    #(BYTE ValueCount)
     ValueList = list()    #(vector<DWORD> ValueList)// 附加值列表,可选,具体含义由MapID决定
     data = None
@@ -20966,7 +20967,8 @@
         _pos = self.Head.ReadData(_lpData, _pos)
         self.MapID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
         self.FuncLineID,_pos = CommFunc.ReadWORD(_lpData, _pos)
-        self.PlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
+        self.TagType,_pos = CommFunc.ReadBYTE(_lpData, _pos)
+        self.TagID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
         self.ValueCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
         for i in range(self.ValueCount):
             value,_pos=CommFunc.ReadDWORD(_lpData,_pos)
@@ -20980,7 +20982,8 @@
         self.Head.SubCmd = 0x10
         self.MapID = 0
         self.FuncLineID = 0
-        self.PlayerID = 0
+        self.TagType = 0
+        self.TagID = 0
         self.ValueCount = 0
         self.ValueList = list()
         return
@@ -20990,6 +20993,7 @@
         length += self.Head.GetLength()
         length += 4
         length += 2
+        length += 1
         length += 4
         length += 1
         length += 4 * self.ValueCount
@@ -21001,7 +21005,8 @@
         data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
         data = CommFunc.WriteDWORD(data, self.MapID)
         data = CommFunc.WriteWORD(data, self.FuncLineID)
-        data = CommFunc.WriteDWORD(data, self.PlayerID)
+        data = CommFunc.WriteBYTE(data, self.TagType)
+        data = CommFunc.WriteDWORD(data, self.TagID)
         data = CommFunc.WriteBYTE(data, self.ValueCount)
         for i in range(self.ValueCount):
             data = CommFunc.WriteDWORD(data, self.ValueList[i])
@@ -21012,7 +21017,8 @@
                                 Head:%s,
                                 MapID:%d,
                                 FuncLineID:%d,
-                                PlayerID:%d,
+                                TagType:%d,
+                                TagID:%d,
                                 ValueCount:%d,
                                 ValueList:%s
                                 '''\
@@ -21020,7 +21026,8 @@
                                 self.Head.OutputString(),
                                 self.MapID,
                                 self.FuncLineID,
-                                self.PlayerID,
+                                self.TagType,
+                                self.TagID,
                                 self.ValueCount,
                                 "..."
                                 )

--
Gitblit v1.8.0