From 2351fff64ddfe5171c2fd8a10dd0fdcc781ef7f0 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期六, 08 十二月 2018 17:07:40 +0800
Subject: [PATCH] 4581 上古战场报错修复
---
ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py | 35 ++++++++++++++++++++++++++++-------
1 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py
index 3e87679..acc64db 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/ChPyNetSendPack.py
@@ -24487,11 +24487,14 @@
Head = tagHead()
MapID = 0 #(DWORD MapID)
FuncLineID = 0 #(BYTE FuncLineID)
- XianyuanCoinAdd = 0 #(WORD XianyuanCoinAdd)// 增加的仙缘币,0代表已达上限
+ 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
- Reason = 0 #(BYTE Reason)//仙缘币为0时的原因:1-助战次数上限;2-每日获得上限
+ IsSweep = 0 #(BYTE IsSweep)// 是否扫荡
data = None
def __init__(self):
@@ -24505,11 +24508,14 @@
_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.Reason,_pos = CommFunc.ReadBYTE(_lpData, _pos)
+ self.IsSweep,_pos = CommFunc.ReadBYTE(_lpData, _pos)
return _pos
def Clear(self):
@@ -24519,11 +24525,14 @@
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.Reason = 0
+ self.IsSweep = 0
return
def GetLength(self):
@@ -24531,7 +24540,10 @@
length += self.Head.GetLength()
length += 4
length += 1
+ length += 1
+ length += 1
length += 2
+ length += 1
length += 4
length += 1
length += len(self.CallPlayerName)
@@ -24544,11 +24556,14 @@
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.Reason)
+ data = CommFunc.WriteBYTE(data, self.IsSweep)
return data
def OutputString(self):
@@ -24556,21 +24571,27 @@
Head:%s,
MapID:%d,
FuncLineID:%d,
+ Relation:%d,
+ RelationCoinAdd:%d,
XianyuanCoinAdd:%d,
+ Reason:%d,
CallPlayerID:%d,
NameLen:%d,
CallPlayerName:%s,
- Reason:%d
+ IsSweep:%d
'''\
%(
self.Head.OutputString(),
self.MapID,
self.FuncLineID,
+ self.Relation,
+ self.RelationCoinAdd,
self.XianyuanCoinAdd,
+ self.Reason,
self.CallPlayerID,
self.NameLen,
self.CallPlayerName,
- self.Reason
+ self.IsSweep
)
return DumpString
--
Gitblit v1.8.0