Updated packet structure for PVP ranking.
Contributed by Index.
This commit is contained in:
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user