From e4003a189bbf7533f679f3eea4d300a8ff61ce2b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 22 十月 2025 19:39:31 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(TurnFight命令增加发起战斗支持)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 415 -----------------------------------------------------------
1 files changed, 0 insertions(+), 415 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
index bfe39f1..b67825b 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py
@@ -4236,73 +4236,6 @@
#------------------------------------------------------
-# A4 09 家族仓库删除物品 #tagCGFamilyStoreDel
-
-class tagCGFamilyStoreDel(Structure):
- Head = tagHead()
- IndexCount = 0 #(BYTE IndexCount)
- StoreItemIndex = list() #(vector<BYTE> StoreItemIndex)// 仓库物品索引,1代表索引0的物品,与兑换一致
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xA4
- self.Head.SubCmd = 0x09
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.IndexCount,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- for i in range(self.IndexCount):
- value,_pos=CommFunc.ReadBYTE(_lpData,_pos)
- self.StoreItemIndex.append(value)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xA4
- self.Head.SubCmd = 0x09
- self.IndexCount = 0
- self.StoreItemIndex = list()
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 1
- length += 1 * self.IndexCount
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteBYTE(data, self.IndexCount)
- for i in range(self.IndexCount):
- data = CommFunc.WriteBYTE(data, self.StoreItemIndex[i])
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- IndexCount:%d,
- StoreItemIndex:%s
- '''\
- %(
- self.Head.OutputString(),
- self.IndexCount,
- "..."
- )
- return DumpString
-
-
-m_NAtagCGFamilyStoreDel=tagCGFamilyStoreDel()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCGFamilyStoreDel.Head.Cmd,m_NAtagCGFamilyStoreDel.Head.SubCmd))] = m_NAtagCGFamilyStoreDel
-
-
-#------------------------------------------------------
#A4 03 加入家族审核情况 #tagCGJoinFamilyReply
class tagCGJoinFamilyReply(Structure):
@@ -6634,122 +6567,6 @@
#------------------------------------------------------
-# A5 56 神兵激活 #tagCMGodWeaponActivate
-
-class tagCMGodWeaponActivate(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("WeaponType", c_int), # 神兵类型
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x56
- return
-
- def ReadData(self, stringData, _pos=0, _len=0):
- self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
-
- def Clear(self):
- self.Cmd = 0xA5
- self.SubCmd = 0x56
- self.WeaponType = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMGodWeaponActivate)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 56 神兵激活 //tagCMGodWeaponActivate:
- Cmd:%s,
- SubCmd:%s,
- WeaponType:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.WeaponType
- )
- return DumpString
-
-
-m_NAtagCMGodWeaponActivate=tagCMGodWeaponActivate()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponActivate.Cmd,m_NAtagCMGodWeaponActivate.SubCmd))] = m_NAtagCMGodWeaponActivate
-
-
-#------------------------------------------------------
-# A5 55 神兵升级 #tagCMGodWeaponPlus
-
-class tagCMGodWeaponPlus(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("WeaponType", c_int), # 神兵类型
- ("ItemID", c_int), #消耗的物品ID
- ("ItemCount", c_ubyte), #消耗个数,默认1
- ("IsAutoBuy", c_ubyte), #是否自动购买,默认0
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA5
- self.SubCmd = 0x55
- return
-
- def ReadData(self, stringData, _pos=0, _len=0):
- self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
-
- def Clear(self):
- self.Cmd = 0xA5
- self.SubCmd = 0x55
- self.WeaponType = 0
- self.ItemID = 0
- self.ItemCount = 0
- self.IsAutoBuy = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMGodWeaponPlus)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A5 55 神兵升级 //tagCMGodWeaponPlus:
- Cmd:%s,
- SubCmd:%s,
- WeaponType:%d,
- ItemID:%d,
- ItemCount:%d,
- IsAutoBuy:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.WeaponType,
- self.ItemID,
- self.ItemCount,
- self.IsAutoBuy
- )
- return DumpString
-
-
-m_NAtagCMGodWeaponPlus=tagCMGodWeaponPlus()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMGodWeaponPlus.Cmd,m_NAtagCMGodWeaponPlus.SubCmd))] = m_NAtagCMGodWeaponPlus
-
-
-#------------------------------------------------------
# A5 40 投资理财 #tagCMGoldInvest
class tagCMGoldInvest(Structure):
@@ -8613,178 +8430,6 @@
m_NAtagCMFamilyMoneyDonate=tagCMFamilyMoneyDonate()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyMoneyDonate.Cmd,m_NAtagCMFamilyMoneyDonate.SubCmd))] = m_NAtagCMFamilyMoneyDonate
-
-
-#------------------------------------------------------
-# A6 09 家族仓库捐赠物品 #tagCMFamilyStoreDonate
-
-class tagCMFamilyStoreDonate(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ItemIndex", c_ubyte), # 捐赠物品在背包中的索引
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA6
- self.SubCmd = 0x09
- return
-
- def ReadData(self, stringData, _pos=0, _len=0):
- self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
-
- def Clear(self):
- self.Cmd = 0xA6
- self.SubCmd = 0x09
- self.ItemIndex = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFamilyStoreDonate)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A6 09 家族仓库捐赠物品 //tagCMFamilyStoreDonate:
- Cmd:%s,
- SubCmd:%s,
- ItemIndex:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ItemIndex
- )
- return DumpString
-
-
-m_NAtagCMFamilyStoreDonate=tagCMFamilyStoreDonate()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyStoreDonate.Cmd,m_NAtagCMFamilyStoreDonate.SubCmd))] = m_NAtagCMFamilyStoreDonate
-
-
-#------------------------------------------------------
-# A6 10 家族仓库兑换物品 #tagCMFamilyStoreExchange
-
-class tagCMFamilyStoreExchange(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("StoreItemIndex", c_ubyte), # 0-兑换口粮;>0-兑换仓库物品,1代表索引0的物品
- ("ItemID", c_int), # 兑换的物品ID
- ("ExcangeCount", c_ushort), # 兑换个数
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA6
- self.SubCmd = 0x10
- return
-
- def ReadData(self, stringData, _pos=0, _len=0):
- self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
-
- def Clear(self):
- self.Cmd = 0xA6
- self.SubCmd = 0x10
- self.StoreItemIndex = 0
- self.ItemID = 0
- self.ExcangeCount = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFamilyStoreExchange)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A6 10 家族仓库兑换物品 //tagCMFamilyStoreExchange:
- Cmd:%s,
- SubCmd:%s,
- StoreItemIndex:%d,
- ItemID:%d,
- ExcangeCount:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.StoreItemIndex,
- self.ItemID,
- self.ExcangeCount
- )
- return DumpString
-
-
-m_NAtagCMFamilyStoreExchange=tagCMFamilyStoreExchange()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyStoreExchange.Cmd,m_NAtagCMFamilyStoreExchange.SubCmd))] = m_NAtagCMFamilyStoreExchange
-
-
-#------------------------------------------------------
-# A6 14 家族阵法升级 #tagCMFamilyZhenfaLVUP
-
-class tagCMFamilyZhenfaLVUP(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("ZhenfaType", c_ubyte), # 阵法类型
- ("ItemID", c_int), # 消耗的物品ID
- ("ItemCount", c_ushort), # 消耗个数,默认1
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xA6
- self.SubCmd = 0x14
- return
-
- def ReadData(self, stringData, _pos=0, _len=0):
- self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
-
- def Clear(self):
- self.Cmd = 0xA6
- self.SubCmd = 0x14
- self.ZhenfaType = 0
- self.ItemID = 0
- self.ItemCount = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMFamilyZhenfaLVUP)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// A6 14 家族阵法升级 //tagCMFamilyZhenfaLVUP:
- Cmd:%s,
- SubCmd:%s,
- ZhenfaType:%d,
- ItemID:%d,
- ItemCount:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.ZhenfaType,
- self.ItemID,
- self.ItemCount
- )
- return DumpString
-
-
-m_NAtagCMFamilyZhenfaLVUP=tagCMFamilyZhenfaLVUP()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMFamilyZhenfaLVUP.Cmd,m_NAtagCMFamilyZhenfaLVUP.SubCmd))] = m_NAtagCMFamilyZhenfaLVUP
#------------------------------------------------------
@@ -11256,66 +10901,6 @@
m_NAtagCMStartLuckyTreasure=tagCMStartLuckyTreasure()
ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMStartLuckyTreasure.Cmd,m_NAtagCMStartLuckyTreasure.SubCmd))] = m_NAtagCMStartLuckyTreasure
-
-
-#------------------------------------------------------
-# AB 11 开服活动奖励 #tagCMOpenServerCampaignAward
-
-class tagCMOpenServerCampaignAward(Structure):
- _pack_ = 1
- _fields_ = [
- ("Cmd", c_ubyte),
- ("SubCmd", c_ubyte),
- ("CampaignType", c_int), #活动类型
- ("AwardType", c_ubyte), #奖励类型,1-排行,2-目标
- ("AwardIndex", c_ubyte), #目标奖励索引,领取目标奖励时用,目标条件在目标奖励列表中索引
- ]
-
- def __init__(self):
- self.Clear()
- self.Cmd = 0xAB
- self.SubCmd = 0x11
- return
-
- def ReadData(self, stringData, _pos=0, _len=0):
- self.Clear()
- memmove(addressof(self), stringData[_pos:], self.GetLength())
- return _pos + self.GetLength()
-
- def Clear(self):
- self.Cmd = 0xAB
- self.SubCmd = 0x11
- self.CampaignType = 0
- self.AwardType = 0
- self.AwardIndex = 0
- return
-
- def GetLength(self):
- return sizeof(tagCMOpenServerCampaignAward)
-
- def GetBuffer(self):
- return string_at(addressof(self), self.GetLength())
-
- def OutputString(self):
- DumpString = '''// AB 11 开服活动奖励 //tagCMOpenServerCampaignAward:
- Cmd:%s,
- SubCmd:%s,
- CampaignType:%d,
- AwardType:%d,
- AwardIndex:%d
- '''\
- %(
- self.Cmd,
- self.SubCmd,
- self.CampaignType,
- self.AwardType,
- self.AwardIndex
- )
- return DumpString
-
-
-m_NAtagCMOpenServerCampaignAward=tagCMOpenServerCampaignAward()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMOpenServerCampaignAward.Cmd,m_NAtagCMOpenServerCampaignAward.SubCmd))] = m_NAtagCMOpenServerCampaignAward
#------------------------------------------------------
--
Gitblit v1.8.0