public override void Encode() { List<Byte> data = new List<Byte>(); //data.AddRange(BitConverter.GetBytes(Player.GetPlayerAvatar().GetSecondsFromLastUpdate()).Reverse()); data.AddInt32(0);//replace previous after patch ClientHome ch = new ClientHome(m_vOwnerLevel.GetPlayerAvatar().GetId()); ch.SetShieldDurationSeconds(m_vOwnerLevel.GetPlayerAvatar().RemainingShieldTime); ch.SetHomeJSON(m_vOwnerLevel.SaveToJSON()); data.AddRange(ch.Encode()); data.AddRange(m_vOwnerLevel.GetPlayerAvatar().Encode()); data.Add(1); data.AddRange(m_vVisitorLevel.GetPlayerAvatar().Encode()); SetData(data.ToArray()); }
public override void Encode() { List<Byte> data = new List<Byte>(); ClientHome ch = new ClientHome(Player.GetPlayerAvatar().GetId()); ch.SetShieldDurationSeconds(Player.GetPlayerAvatar().RemainingShieldTime); ch.SetHomeJSON(Player.SaveToJSON()); //data.AddRange(BitConverter.GetBytes(Player.GetPlayerAvatar().GetSecondsFromLastUpdate()).Reverse()); data.AddInt32(0);//replace previous after patch data.AddInt32(-1); data.AddInt32((int)Player.GetTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds); //0x54, 0x47, 0xFD, 0x10 //patch 21/10 data.AddRange(ch.Encode()); data.AddRange(Player.GetPlayerAvatar().Encode()); //7.1 data.AddInt32(0); data.AddInt32(0); SetData(data.ToArray()); }
public override void Encode() { List<Byte> data = new List<Byte>(); //data.AddRange(BitConverter.GetBytes(Player.GetPlayerAvatar().GetSecondsFromLastUpdate()).Reverse()); data.AddRange(new byte[]{ 0x00, 0x00, 0x00, 0xF0, 0xFF, 0xFF, 0xFF, 0xFF, 0x54, 0xCE, 0x5C, 0x4A }); ClientHome ch = new ClientHome(m_vOwnerLevel.GetPlayerAvatar().GetId()); ch.SetShieldDurationSeconds(m_vOwnerLevel.GetPlayerAvatar().RemainingShieldTime); ch.SetHomeJSON(m_vOwnerLevel.SaveToJSON()); data.AddRange(ch.Encode()); data.AddRange(m_vOwnerLevel.GetPlayerAvatar().Encode()); data.AddRange(m_vVisitorLevel.GetPlayerAvatar().Encode()); data.AddRange(new byte[] { 0x00, 0x00, 0x00, 0x03, 0x00 }); SetData(data.ToArray()); }