10-26-2017, 08:29 PM
hello everybody. i have problem with this packet. please help me to fix this packet. thanks!
1) Clan rank icon works, but text not work correctly. (there text is: NEW, but must be: II).
2) Clan levelup exp not changing, when i change rank from 2 to 3 or any else
3) MVP records not working
4) Clan points always 0
screen:
code:
1) Clan rank icon works, but text not work correctly. (there text is: NEW, but must be: II).
2) Clan levelup exp not changing, when i change rank from 2 to 3 or any else
3) MVP records not working
4) Clan points always 0
screen:
code:
Цитата:package ru.pb.game.network.client.packets.server;
import ru.pb.game.network.client.packets.ServerPacket;
import ru.pb.global.models.Clan;
public class SM_CLAN_DETAIL_INFO extends ServerPacket {
private Clan clan;
public SM_CLAN_DETAIL_INFO(Clan clan) {
super(1305);
this.clan = clan;
}
@Override
public void writeImpl() {
writeD(0); // error
writeD(clan.getId().intValue());
writeS(clan.getName(), 17);
writeC(clan.getRank()); // 2
writeC(clan.getPlayers());
writeC(clan.getMaxPlayers());
writeB(new byte[4]);
writeC(clan.getLogo1());
writeC(clan.getLogo2());
writeC(clan.getLogo3());
writeC(clan.getLogo4());
writeC(clan.getColor());
writeC(0); // unk
writeD(clan.getExp());
writeD(0); // unk
writeD(0); // unk
writeD(0); // unk
writeS(clan.Master == null ? "" : clan.Master.Name, 33);
writeC(clan.Master == null ? 0 : clan.Master.Rank);
writeS(clan.getDescription(), 255);
writeB(new byte[21]);
// Clan staff settings
writeC(clan.getSettings().getAdmissionReq()); // rank limit
writeC(clan.getSettings().getAgeLimit1()); // age limit 1
writeC(clan.getSettings().getAgeLimit2()); // age limit 2
writeC(clan.getSettings().getStaffSettings()); // staff settings
writeS(clan.getNotice(), 255);
// ALL TOTAL WAR
writeD(clan.getStats().getAllTotalWar());
writeD(clan.getStats().getAllTotalWin());
writeD(clan.getStats().getAllTotalLose());
// SEASON TOTAL WAR
writeD(clan.getStats().getSeasonTotalWar());
writeD(clan.getStats().getSeasonTotalWin());
writeD(clan.getStats().getSeasonTotalLose());
//MVP Records
writeQ(1); // Exp
writeQ(1); // Participation
writeQ(1); // Victory
writeQ(1); // Kill
writeQ(1); // Headshot
writeQ(1); // Exp
writeQ(1); // Participation
writeQ(1); // Victory
writeQ(1); // Kill
writeQ(1); // Headshot
}
}