public void SendSocialList(Character_social Social, SocialListType Type) { PacketOut Out = new PacketOut((byte)Opcodes.F_SOCIAL_NETWORK); Out.WriteUInt16(0); Out.WriteByte((byte)Type); Out.WriteByte(1); Out.WriteByte(0); BuildPlayerInfo(ref Out, Social); Out.WriteByte(0); _player.SendPacket(Out); }
public void SendSocialList(List <Character_social> socials, SocialListType Type) { PacketOut Out = new PacketOut((byte)Opcodes.F_SOCIAL_NETWORK); Out.WriteUInt16(0); Out.WriteByte((byte)Type); Out.WriteByte((byte)socials.Count); Out.WriteByte(0); foreach (Character_social social in socials) { BuildPlayerInfo(ref Out, social); Out.WriteByte(0); } _player.SendPacket(Out); }