From db9e2574a77068dff06f87af64132bf3c6f99350 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 09 十月 2025 10:17:56 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(步练师技能;临时增加属性增加计算方式10-根据对方buff层级增加;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 235 +++++++---------------------------------------------------
1 files changed, 30 insertions(+), 205 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index dafb1ce..a4ce5cd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -30581,6 +30581,7 @@
class tagSCFirstCharge(Structure):
_pack_ = 1
_fields_ = [
+ ("FirstID", c_ubyte), #首充ID
("ChargeTime", c_int), #充值该首充的时间戳
("AwardRecord", c_ushort), #首充奖励领奖记录,按二进制位记录首充第X天是否已领取
]
@@ -30595,6 +30596,7 @@
return _pos + self.GetLength()
def Clear(self):
+ self.FirstID = 0
self.ChargeTime = 0
self.AwardRecord = 0
return
@@ -30607,10 +30609,12 @@
def OutputString(self):
DumpString = '''// AA 02 首充信息 //tagSCFirstChargeInfo:
+ FirstID:%d,
ChargeTime:%d,
AwardRecord:%d
'''\
%(
+ self.FirstID,
self.ChargeTime,
self.AwardRecord
)
@@ -38643,135 +38647,18 @@
#------------------------------------------------------
-# B2 08 获得仙缘币信息 #tagMCAddXianyuanCoinMsg
+# B2 01 天子考验信息 #tagSCTianziKYInfo
-class tagMCAddXianyuanCoinMsg(Structure):
- Head = tagHead()
- MapID = 0 #(DWORD MapID)
- FuncLineID = 0 #(BYTE FuncLineID)
- Relation = 0 #(BYTE Relation)// 当时的关系:0-无,1-好友,2-盟友
- RelationCoinAdd = 0 #(BYTE RelationCoinAdd)// 社交关系总加成
- XianyuanCoinAdd = 0 #(WORD XianyuanCoinAdd)// 实际增加的仙缘币
- Reason = 0 #(BYTE Reason)//仙缘币为0时的原因:1-助战次数上限;2-每日获得上限
- CallPlayerID = 0 #(DWORD CallPlayerID)// 助战的玩家ID,有值时代表真实助战,没有值时为自己打的
- NameLen = 0 #(BYTE NameLen)
- CallPlayerName = "" #(String CallPlayerName)// 助战的玩家名,size = NameLen
- IsSweep = 0 #(BYTE IsSweep)// 是否扫荡
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x08
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.MapID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.FuncLineID,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.Relation,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.RelationCoinAdd,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.XianyuanCoinAdd,_pos = CommFunc.ReadWORD(_lpData, _pos)
- self.Reason,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.CallPlayerID,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.NameLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.CallPlayerName,_pos = CommFunc.ReadString(_lpData, _pos,self.NameLen)
- self.IsSweep,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x08
- self.MapID = 0
- self.FuncLineID = 0
- self.Relation = 0
- self.RelationCoinAdd = 0
- self.XianyuanCoinAdd = 0
- self.Reason = 0
- self.CallPlayerID = 0
- self.NameLen = 0
- self.CallPlayerName = ""
- self.IsSweep = 0
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 4
- length += 1
- length += 1
- length += 1
- length += 2
- length += 1
- length += 4
- length += 1
- length += len(self.CallPlayerName)
- length += 1
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteDWORD(data, self.MapID)
- data = CommFunc.WriteBYTE(data, self.FuncLineID)
- data = CommFunc.WriteBYTE(data, self.Relation)
- data = CommFunc.WriteBYTE(data, self.RelationCoinAdd)
- data = CommFunc.WriteWORD(data, self.XianyuanCoinAdd)
- data = CommFunc.WriteBYTE(data, self.Reason)
- data = CommFunc.WriteDWORD(data, self.CallPlayerID)
- data = CommFunc.WriteBYTE(data, self.NameLen)
- data = CommFunc.WriteString(data, self.NameLen, self.CallPlayerName)
- data = CommFunc.WriteBYTE(data, self.IsSweep)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- MapID:%d,
- FuncLineID:%d,
- Relation:%d,
- RelationCoinAdd:%d,
- XianyuanCoinAdd:%d,
- Reason:%d,
- CallPlayerID:%d,
- NameLen:%d,
- CallPlayerName:%s,
- IsSweep:%d
- '''\
- %(
- self.Head.OutputString(),
- self.MapID,
- self.FuncLineID,
- self.Relation,
- self.RelationCoinAdd,
- self.XianyuanCoinAdd,
- self.Reason,
- self.CallPlayerID,
- self.NameLen,
- self.CallPlayerName,
- self.IsSweep
- )
- return DumpString
-
-
-m_NAtagMCAddXianyuanCoinMsg=tagMCAddXianyuanCoinMsg()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCAddXianyuanCoinMsg.Head.Cmd,m_NAtagMCAddXianyuanCoinMsg.Head.SubCmd))] = m_NAtagMCAddXianyuanCoinMsg
-
-
-#------------------------------------------------------
-# B2 01 通知封魔坛双倍击杀状态 #tagMCFMTDoubleState
-
-class tagMCFMTDoubleState(Structure):
+class tagSCTianziKYInfo(Structure):
_pack_ = 1
_fields_ = [
("Cmd", c_ubyte),
("SubCmd", c_ubyte),
- ("IsDouble", c_ubyte), #是否双倍
- ("OldDouble", c_ubyte), #是否曾经允许双倍
+ ("LineID", c_ubyte), #今日是哪个lineID,对应副本表的功能线路ID
+ ("HistoryHurt", c_int), #本考验历史最大伤害,求余亿部分
+ ("HistoryHurtEx", c_int), #本考验历史最大伤害,整除亿部分
+ ("TodayHurt", c_int), #本考验今日最大伤害,求余亿部分
+ ("TodayHurtEx", c_int), #本考验今日最大伤害,整除亿部分
]
def __init__(self):
@@ -38788,105 +38675,43 @@
def Clear(self):
self.Cmd = 0xB2
self.SubCmd = 0x01
- self.IsDouble = 0
- self.OldDouble = 0
+ self.LineID = 0
+ self.HistoryHurt = 0
+ self.HistoryHurtEx = 0
+ self.TodayHurt = 0
+ self.TodayHurtEx = 0
return
def GetLength(self):
- return sizeof(tagMCFMTDoubleState)
+ return sizeof(tagSCTianziKYInfo)
def GetBuffer(self):
return string_at(addressof(self), self.GetLength())
def OutputString(self):
- DumpString = '''// B2 01 通知封魔坛双倍击杀状态 //tagMCFMTDoubleState:
+ DumpString = '''// B2 01 天子考验信息 //tagSCTianziKYInfo:
Cmd:%s,
SubCmd:%s,
- IsDouble:%d,
- OldDouble:%d
+ LineID:%d,
+ HistoryHurt:%d,
+ HistoryHurtEx:%d,
+ TodayHurt:%d,
+ TodayHurtEx:%d
'''\
%(
self.Cmd,
self.SubCmd,
- self.IsDouble,
- self.OldDouble
+ self.LineID,
+ self.HistoryHurt,
+ self.HistoryHurtEx,
+ self.TodayHurt,
+ self.TodayHurtEx
)
return DumpString
-m_NAtagMCFMTDoubleState=tagMCFMTDoubleState()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCFMTDoubleState.Cmd,m_NAtagMCFMTDoubleState.SubCmd))] = m_NAtagMCFMTDoubleState
-
-
-#------------------------------------------------------
-#B2 02 推送提醒设置通知 #tagMCPushNotificationsSetting
-
-class tagMCPushNotificationsSetting(Structure):
- Head = tagHead()
- OnoffBit = 0 #(DWORD OnoffBit)// 按位约定开关
- TimeLen = 0 #(BYTE TimeLen)
- TimeStr = "" #(String TimeStr)// 时间字符串 01:02-05:00
- data = None
-
- def __init__(self):
- self.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x02
- return
-
- def ReadData(self, _lpData, _pos=0, _Len=0):
- self.Clear()
- _pos = self.Head.ReadData(_lpData, _pos)
- self.OnoffBit,_pos = CommFunc.ReadDWORD(_lpData, _pos)
- self.TimeLen,_pos = CommFunc.ReadBYTE(_lpData, _pos)
- self.TimeStr,_pos = CommFunc.ReadString(_lpData, _pos,self.TimeLen)
- return _pos
-
- def Clear(self):
- self.Head = tagHead()
- self.Head.Clear()
- self.Head.Cmd = 0xB2
- self.Head.SubCmd = 0x02
- self.OnoffBit = 0
- self.TimeLen = 0
- self.TimeStr = ""
- return
-
- def GetLength(self):
- length = 0
- length += self.Head.GetLength()
- length += 4
- length += 1
- length += len(self.TimeStr)
-
- return length
-
- def GetBuffer(self):
- data = ''
- data = CommFunc.WriteString(data, self.Head.GetLength(), self.Head.GetBuffer())
- data = CommFunc.WriteDWORD(data, self.OnoffBit)
- data = CommFunc.WriteBYTE(data, self.TimeLen)
- data = CommFunc.WriteString(data, self.TimeLen, self.TimeStr)
- return data
-
- def OutputString(self):
- DumpString = '''
- Head:%s,
- OnoffBit:%d,
- TimeLen:%d,
- TimeStr:%s
- '''\
- %(
- self.Head.OutputString(),
- self.OnoffBit,
- self.TimeLen,
- self.TimeStr
- )
- return DumpString
-
-
-m_NAtagMCPushNotificationsSetting=tagMCPushNotificationsSetting()
-ChNetPackDict[eval("0x%02x%02x"%(m_NAtagMCPushNotificationsSetting.Head.Cmd,m_NAtagMCPushNotificationsSetting.Head.SubCmd))] = m_NAtagMCPushNotificationsSetting
+m_NAtagSCTianziKYInfo=tagSCTianziKYInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCTianziKYInfo.Cmd,m_NAtagSCTianziKYInfo.SubCmd))] = m_NAtagSCTianziKYInfo
#------------------------------------------------------
--
Gitblit v1.8.0