public override void Write() { WriteH(1311); WriteD(_erro); if (_erro == 0) { WriteD(clan.id); WriteS(clan.name, 17); WriteC(clan.rank); WriteC(clan.GetClanPlayers()); WriteC((byte)clan.maxPlayers); WriteD(clan.creationDate); WriteD(clan.logo); WriteB(new byte[10]); WriteQ(clan.ownerId); WriteS(_p.nickname, 33); WriteC(_p.rankId); WriteS(clan.informations, 255); WriteS("Url", 21); WriteC((byte)clan.limitRankId); WriteC((byte)clan.limitAgeBigger); WriteC((byte)clan.limitAgeSmaller); WriteC((byte)clan.authorityConfig); WriteS("", 255); WriteB(new byte[104]); WriteT(clan.pontos); WriteD(_p.gold); } }
public override void Write() { WriteH(1305); WriteD(error); WriteD(clan.id); WriteS(clan.name, 17); WriteC(clan.rank); WriteC(clan.GetClanPlayers()); WriteC((byte)clan.maxPlayers); WriteD(clan.creationDate); WriteD(clan.logo); WriteC(clan.nameColor); WriteC(clan.GetClanUnit()); WriteD(clan.exp); WriteD(10); //? WriteQ(clan.ownerId); if (owner != null) { WriteS(owner.nickname, 33); WriteC(owner.rankId); } else { WriteS("Indefinido", 33); WriteC(0); //RankId } WriteS(clan.informations, 255); WriteS("Temp", 21); WriteC((byte)clan.limitRankId); WriteC((byte)clan.limitAgeBigger); WriteC((byte)clan.limitAgeSmaller); WriteC((byte)clan.authorityConfig); WriteS(clan.notice, 255); WriteD(clan.partidas); WriteD(clan.vitorias); WriteD(clan.derrotas); WriteD(clan.partidas); WriteD(clan.vitorias); WriteD(clan.derrotas); //MELHORES MEMBROS DO CLÃ WriteQ(clan.BestPlayers.Exp.PlayerId); //XP Adquirida (Total) WriteQ(clan.BestPlayers.Exp.PlayerId); //XP Adquirida (Temporada) WriteQ(clan.BestPlayers.Wins.PlayerId); //Vitória (Total) WriteQ(clan.BestPlayers.Wins.PlayerId); //Vitória (Temporada) WriteQ(clan.BestPlayers.Kills.PlayerId); //Kills (Total) WriteQ(clan.BestPlayers.Kills.PlayerId); //Kills (Temporada) WriteQ(clan.BestPlayers.Headshot.PlayerId); //Headshots (Total) WriteQ(clan.BestPlayers.Headshot.PlayerId); //Headshots (Temporada) WriteQ(clan.BestPlayers.Participation.PlayerId); //Participação (Total) WriteQ(clan.BestPlayers.Participation.PlayerId); //Participação (Temporada) WriteT(clan.pontos); }
public override void RunImplement() { try { Account player = client.SessionPlayer; if (player == null) { return; } byte count = 0; using (PacketWriter writer = new PacketWriter()) { lock (ClanManager.clans) { for (int i = page * 170; i < ClanManager.clans.Count; i++) { Clan clan = ClanManager.clans[i]; if (player.clanId != clan.id) { writer.WriteD(clan.id); writer.WriteS(clan.name, 17); writer.WriteC(clan.rank); writer.WriteC(clan.GetClanPlayers()); writer.WriteC((byte)clan.maxPlayers); writer.WriteD(clan.creationDate); writer.WriteD(clan.logo); writer.WriteC(clan.nameColor); if (count++ == 170) { break; } } } } client.SendPacket(new PROTOCOL_CLAN_LIST_ACK(page, count, writer.memorystream.ToArray())); } } catch (Exception ex) { PacketLog(ex); } }
public override void RunImplement() { try { Account player = client.SessionPlayer; if (player == null) { return; } Clan clan = ClanManager.GetClan(player.clanId); if (clan.id == 0) { client.SendCompletePacket(PackageDataManager.CLAN_MEMBER_CONTEXT_ERROR_PAK); } else { client.SendPacket(new CLAN_MEMBER_CONTEXT_PAK(0, clan.GetClanPlayers())); } } catch (Exception ex) { PacketLog(ex); } }
public override void Write() { WriteH(1570); WriteD(_erro); if (_erro == 0) { byte players = c.GetClanPlayers(); WriteD(c.id); WriteS(c.name, 17); WriteC(c.rank); WriteC(players); WriteC((byte)c.maxPlayers); WriteD(c.creationDate); WriteD(c.logo); WriteC(c.nameColor); WriteC(c.GetClanUnit(players)); WriteD(c.exp); WriteD(0); WriteQ(c.ownerId); WriteS(leader.nickname, 33); WriteC(leader.rankId); WriteS("", 255); }//727 bytes }