From 14661edf6156dbc38b2fe4bdf0a15cceacc52897 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 31 五月 2019 16:04:19 +0800 Subject: [PATCH] 6805 【后端】【2.0】副本前端化(去除木桩非自定义场景召唤限制,最大同时存在木桩数改为3个,设置玩家血量改为玩家掉血) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py index e56f530..1abe51e 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChPyNetPack.py @@ -14514,14 +14514,14 @@ #------------------------------------------------------ -# B4 0E 设置玩家自身血量 #tagCMSetRoleHP +# B4 0E 玩家掉血 #tagCMRoleLostHP -class tagCMSetRoleHP(Structure): +class tagCMRoleLostHP(Structure): _pack_ = 1 _fields_ = [ ("Cmd", c_ubyte), ("SubCmd", c_ubyte), - ("HP", c_int), + ("LostHP", c_int), ] def __init__(self): @@ -14538,31 +14538,31 @@ def Clear(self): self.Cmd = 0xB4 self.SubCmd = 0x0E - self.HP = 0 + self.LostHP = 0 return def GetLength(self): - return sizeof(tagCMSetRoleHP) + return sizeof(tagCMRoleLostHP) def GetBuffer(self): return string_at(addressof(self), self.GetLength()) def OutputString(self): - DumpString = '''// B4 0E 设置玩家自身血量 //tagCMSetRoleHP: + DumpString = '''// B4 0E 玩家掉血 //tagCMRoleLostHP: Cmd:%s, SubCmd:%s, - HP:%d + LostHP:%d '''\ %( self.Cmd, self.SubCmd, - self.HP + self.LostHP ) return DumpString -m_NAtagCMSetRoleHP=tagCMSetRoleHP() -ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMSetRoleHP.Cmd,m_NAtagCMSetRoleHP.SubCmd))] = m_NAtagCMSetRoleHP +m_NAtagCMRoleLostHP=tagCMRoleLostHP() +ChNetPackDict[eval("0x%02x%02x"%(m_NAtagCMRoleLostHP.Cmd,m_NAtagCMRoleLostHP.SubCmd))] = m_NAtagCMRoleLostHP #------------------------------------------------------ -- Gitblit v1.8.0