From 4e2e843061cd07f6c3f6312e066498491d64b437 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 11 八月 2025 11:18:14 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(攻防生命继承改为万分比)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 57 insertions(+), 1 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
index 8c1dd37..b9d87ad 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetSendPack.py
@@ -18831,7 +18831,8 @@
_pack_ = 1
_fields_ = [
("ItemID", c_int),
- ("Count", c_int),
+ ("Count", c_int), # 求余亿部分,个别功能单次汇总可能超20亿,如批量遣散,固统一规则
+ ("CountEx", c_int), # 整除亿部分
("IsBind", c_ubyte),
]
@@ -18847,6 +18848,7 @@
def Clear(self):
self.ItemID = 0
self.Count = 0
+ self.CountEx = 0
self.IsBind = 0
return
@@ -18860,11 +18862,13 @@
DumpString = '''// A8 01 获得奖励信息 //tagMCGiveAwardInfo:
ItemID:%d,
Count:%d,
+ CountEx:%d,
IsBind:%d
'''\
%(
self.ItemID,
self.Count,
+ self.CountEx,
self.IsBind
)
return DumpString
@@ -44631,6 +44635,58 @@
#------------------------------------------------------
+# B1 25 玩家武将公共信息 #tagSCPlayerHeroInfo
+
+class tagSCPlayerHeroInfo(Structure):
+ _pack_ = 1
+ _fields_ = [
+ ("Cmd", c_ubyte),
+ ("SubCmd", c_ubyte),
+ ("AwakeRebirthCnt", c_ubyte), # 今日觉醒过的武将已重生次数
+ ]
+
+ def __init__(self):
+ self.Clear()
+ self.Cmd = 0xB1
+ self.SubCmd = 0x25
+ 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 = 0xB1
+ self.SubCmd = 0x25
+ self.AwakeRebirthCnt = 0
+ return
+
+ def GetLength(self):
+ return sizeof(tagSCPlayerHeroInfo)
+
+ def GetBuffer(self):
+ return string_at(addressof(self), self.GetLength())
+
+ def OutputString(self):
+ DumpString = '''// B1 25 玩家武将公共信息 //tagSCPlayerHeroInfo:
+ Cmd:%s,
+ SubCmd:%s,
+ AwakeRebirthCnt:%d
+ '''\
+ %(
+ self.Cmd,
+ self.SubCmd,
+ self.AwakeRebirthCnt
+ )
+ return DumpString
+
+
+m_NAtagSCPlayerHeroInfo=tagSCPlayerHeroInfo()
+ChNetPackDict[eval("0x%02x%02x"%(m_NAtagSCPlayerHeroInfo.Cmd,m_NAtagSCPlayerHeroInfo.SubCmd))] = m_NAtagSCPlayerHeroInfo
+
+
+#------------------------------------------------------
# B1 07 玩家点数信息 #tagMCRolePointInfo
class tagMCRolePointInfo(Structure):
--
Gitblit v1.8.0