Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
SM_CLAN_DETAIL_INFO - please help
#1
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:
[Изображение: 22814002_1436586059772258_44379895569845...e=5A6404F8]

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

}
}
Ответ
#2
@Awiion @PROGRAMMATOR please help me
Ответ
#3
1) Clan rank icon works, but text not work correctly. (there text is: NEW, but must be: II). - fixed
2) Clan levelup exp not changing, when i change rank from 2 to 3 or any else - fixed
3) MVP records not working
4) Clan points always 0

need help for 3 and 4
Ответ
#4
nikolen the clan points is not in that packet that makes it work. 2- the clan status of best member etc you have to do, 3-clan exp ai you have to use sniffer, clan class is something bug in your code you should use sniffer. Big Grin
Ответ
#5
agdamian Написал:nikolen the clan points is not in that packet that makes it work. 2- the clan status of best member etc you have to do, 3-clan exp ai you have to use sniffer, clan class is something bug in your code you should use sniffer. Big Grin

do you know in which packet is clan points? i understand the structure of clan ranking, exp in clan detail window. it's different than room. i fixed them. now need to fix clan points and mvp records
Ответ
#6
nikolen;428596 Написал:4) Clan points always 0

Search standart value (1000) in sniffs.

Код:
00 00 00 00 00 40 8F 40 // 1000 (double)
Ответ
#7
PROGRAMMATOR Написал:Search standart value (1000) in sniffs.

Код:
00 00 00 00 00 40 8F 40 // 1000 (double)

do you give me a sample? i don't understand clearly
Ответ
#8
[Изображение: clan_info.png]
Ответ
#9
PROGRAMMATOR Написал:[Изображение: clan_info.png]

not work Sad

PS. client: v37.1610.17.3 Point Blank
Цитата:// 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
writeDF(1000); //Clan points
writeQ(1); // Exp
writeQ(1); // Participation
writeQ(1); // Victory
writeQ(1); // Kill
writeQ(1); // Headshot
Ответ
#10
[SRC="csharp"]Struct.AddInt("Result");
Struct.AddInt("Id");
Struct.AddPaddedUnicodeString("Name", 17);
Struct.AddByte("Rank");
Struct.AddByte("Members");
Struct.AddByte("Limit");
Struct.AddInt("CreatedAt");
Struct.AddInt("IconId");
Struct.AddByte("NameColor");
Struct.AddByte("?");
Struct.AddByte("?");
Struct.AddInt("Exp");
Struct.AddShort("Rating");
Struct.AddShort("Top Rating");
Struct.AddLong("AccountId");
Struct.AddPaddedUnicodeString("AccountName", 33);
Struct.AddByte("AccountNameColor");
Struct.AddByte("AccountRank");
Struct.AddPaddedUnicodeString("Intro", 255);
Struct.AddPaddedUnicodeString("AzitUrl", 23);
Struct.AddPaddedUnicodeString("Notice", 255);
Struct.AddInt("Match");
Struct.AddInt("Win");
Struct.AddInt("Lost");
Struct.AddInt("Match");
Struct.AddInt("Win");
Struct.AddInt("Lost");
Struct.AddInt("?");
Struct.AddInt("?");
Struct.AddInt("?");
Struct.AddInt("?");
Struct.AddInt("?");
Struct.AddDouble("Points");
Struct.AddDouble("?");
Struct.AddDouble("?");
Struct.AddDouble("?");
Struct.AddDouble("Season Points");
Struct.AddDouble("?");

Struct.AddLong("Top Exp (Account)");
Struct.AddLong("Top Kills (Account)");
Struct.AddLong("Top Headshots (Account)");
Struct.AddLong("Top Participation (Account)");
Struct.AddLong("Top Win (Account)");
[/SRC]
Ответ


Перейти к форуму:


Пользователи, просматривающие эту тему: 2 Гость(ей)