Updated packet structure for PVP ranking.

Contributed by Index.
This commit is contained in:
MobiusDevelopment
2022-03-29 23:48:18 +00:00
parent 4a17d079eb
commit 5c5410301a
6 changed files with 30 additions and 42 deletions

View File

@@ -31,16 +31,14 @@ public class RequestPvpRankingList implements IClientIncomingPacket
private int _tabId; private int _tabId;
private int _type; private int _type;
private int _race; private int _race;
private int _class;
@Override @Override
public boolean read(GameClient client, PacketReader packet) public boolean read(GameClient client, PacketReader packet)
{ {
_season = packet.readC(); _season = packet.readC(); // CurrentSeason
_tabId = packet.readC(); _tabId = packet.readC(); // RankingGroup
_type = packet.readC(); _type = packet.readC(); // RankingScope
_race = packet.readD(); _race = packet.readD(); // Race
_class = packet.readD();
return true; return true;
} }
@@ -53,6 +51,6 @@ public class RequestPvpRankingList implements IClientIncomingPacket
return; return;
} }
player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, _class)); player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, player.getBaseClass()));
} }
} }

View File

@@ -31,16 +31,14 @@ public class RequestPvpRankingList implements IClientIncomingPacket
private int _tabId; private int _tabId;
private int _type; private int _type;
private int _race; private int _race;
private int _class;
@Override @Override
public boolean read(GameClient client, PacketReader packet) public boolean read(GameClient client, PacketReader packet)
{ {
_season = packet.readC(); _season = packet.readC(); // CurrentSeason
_tabId = packet.readC(); _tabId = packet.readC(); // RankingGroup
_type = packet.readC(); _type = packet.readC(); // RankingScope
_race = packet.readD(); _race = packet.readD(); // Race
_class = packet.readD();
return true; return true;
} }
@@ -53,6 +51,6 @@ public class RequestPvpRankingList implements IClientIncomingPacket
return; return;
} }
player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, _class)); player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, player.getBaseClass()));
} }
} }

View File

@@ -31,16 +31,14 @@ public class RequestPvpRankingList implements IClientIncomingPacket
private int _tabId; private int _tabId;
private int _type; private int _type;
private int _race; private int _race;
private int _class;
@Override @Override
public boolean read(GameClient client, PacketReader packet) public boolean read(GameClient client, PacketReader packet)
{ {
_season = packet.readC(); _season = packet.readC(); // CurrentSeason
_tabId = packet.readC(); _tabId = packet.readC(); // RankingGroup
_type = packet.readC(); _type = packet.readC(); // RankingScope
_race = packet.readD(); _race = packet.readD(); // Race
_class = packet.readD();
return true; return true;
} }
@@ -53,6 +51,6 @@ public class RequestPvpRankingList implements IClientIncomingPacket
return; return;
} }
player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, _class)); player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, player.getBaseClass()));
} }
} }

View File

@@ -31,16 +31,14 @@ public class RequestPvpRankingList implements IClientIncomingPacket
private int _tabId; private int _tabId;
private int _type; private int _type;
private int _race; private int _race;
private int _class;
@Override @Override
public boolean read(GameClient client, PacketReader packet) public boolean read(GameClient client, PacketReader packet)
{ {
_season = packet.readC(); _season = packet.readC(); // CurrentSeason
_tabId = packet.readC(); _tabId = packet.readC(); // RankingGroup
_type = packet.readC(); _type = packet.readC(); // RankingScope
_race = packet.readD(); _race = packet.readD(); // Race
_class = packet.readD();
return true; return true;
} }
@@ -53,6 +51,6 @@ public class RequestPvpRankingList implements IClientIncomingPacket
return; return;
} }
player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, _class)); player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, player.getBaseClass()));
} }
} }

View File

@@ -31,16 +31,14 @@ public class RequestPvpRankingList implements IClientIncomingPacket
private int _tabId; private int _tabId;
private int _type; private int _type;
private int _race; private int _race;
private int _class;
@Override @Override
public boolean read(GameClient client, PacketReader packet) public boolean read(GameClient client, PacketReader packet)
{ {
_season = packet.readC(); _season = packet.readC(); // CurrentSeason
_tabId = packet.readC(); _tabId = packet.readC(); // RankingGroup
_type = packet.readC(); _type = packet.readC(); // RankingScope
_race = packet.readD(); _race = packet.readD(); // Race
_class = packet.readD();
return true; return true;
} }
@@ -53,6 +51,6 @@ public class RequestPvpRankingList implements IClientIncomingPacket
return; return;
} }
player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, _class)); player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, player.getBaseClass()));
} }
} }

View File

@@ -31,16 +31,14 @@ public class RequestPvpRankingList implements IClientIncomingPacket
private int _tabId; private int _tabId;
private int _type; private int _type;
private int _race; private int _race;
private int _class;
@Override @Override
public boolean read(GameClient client, PacketReader packet) public boolean read(GameClient client, PacketReader packet)
{ {
_season = packet.readC(); _season = packet.readC(); // CurrentSeason
_tabId = packet.readC(); _tabId = packet.readC(); // RankingGroup
_type = packet.readC(); _type = packet.readC(); // RankingScope
_race = packet.readD(); _race = packet.readD(); // Race
_class = packet.readD();
return true; return true;
} }
@@ -53,6 +51,6 @@ public class RequestPvpRankingList implements IClientIncomingPacket
return; return;
} }
player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, _class)); player.sendPacket(new ExPvpRankingList(player, _season, _tabId, _type, _race, player.getBaseClass()));
} }
} }