Skip to content
Permalink
Browse files

Server/Arena: Drop some dead code.

Signed-off-by: AriDEV <aridev666@gmail.com>
  • Loading branch information...
AriDEV committed Jul 6, 2019
1 parent 8c1fa10 commit 319a3c5ba4503aebee58d7a9d1fad63a6cb7cf5f
@@ -42,59 +42,6 @@ ArenaTeam::ArenaTeam()
ArenaTeam::~ArenaTeam()
{ }

void ArenaTeam::Roster(WorldSession* session)
{
Player* player = NULL;

uint8 unk308 = 0;

WorldPacket data(SMSG_ARENA_TEAM_ROSTER, 100);
data << uint32(GetId()); // team id
data << uint8(unk308); // 3.0.8 unknown value but affect packet structure
data << uint32(GetMembersSize()); // members count
data << uint32(GetType()); // arena team type?

for (MemberList::const_iterator itr = Members.begin(); itr != Members.end(); ++itr)
{
player = ObjectAccessor::FindPlayer(itr->Guid);

data << uint64(itr->Guid); // guid
data << uint8((player ? 1 : 0)); // online flag
data << itr->Name; // member name
data << uint32((itr->Guid == GetCaptain() ? 0 : 1)); // captain flag 0 captain 1 member
data << uint8((player ? player->getLevel() : 0)); // unknown, level?
data << uint8(itr->Class); // class
data << uint32(itr->WeekGames); // played this week
data << uint32(itr->WeekWins); // wins this week
data << uint32(itr->SeasonGames); // played this season
data << uint32(itr->SeasonWins); // wins this season
data << uint32(itr->PersonalRating); // personal rating
//if (unk308)
//{
// data << float(0.0f); // 308 unk
// data << float(0.0f); // 308 unk
//}
}

session->SendPacket(&data);
SF_LOG_DEBUG("network", "WORLD: Sent SMSG_ARENA_TEAM_ROSTER");
}

void ArenaTeam::Query(WorldSession* session)
{
WorldPacket data(SMSG_ARENA_TEAM_QUERY_RESPONSE, 4*7+GetName().size()+1);
data << uint32(GetId()); // team id
data << GetName(); // team name
data << uint32(GetType()); // arena team type (2=2x2, 3=3x3 or 5=5x5)
data << uint32(BackgroundColor); // background color
data << uint32(EmblemStyle); // emblem style
data << uint32(EmblemColor); // emblem color
data << uint32(BorderStyle); // border style
data << uint32(BorderColor); // border color
session->SendPacket(&data);
SF_LOG_DEBUG("network", "WORLD: Sent SMSG_ARENA_TEAM_QUERY_RESPONSE");
}

void ArenaTeam::SendStats(WorldSession* session)
{
WorldPacket data(SMSG_ARENA_TEAM_STATS, 4*7);
@@ -146,8 +146,6 @@ class ArenaTeam

void MassInviteToEvent(WorldSession* session);

void Roster(WorldSession* session);
void Query(WorldSession* session);
void SendStats(WorldSession* session);

static int32 GetMatchmakerRatingMod(uint32 ownRating, uint32 opponentRating, bool won);
@@ -1118,11 +1118,8 @@ void OpcodeTable::InitializeServerTable()
DEFINE_OPCODE_HANDLER(SMSG_AREA_TRIGGER_MOVEMENT_UPDATE, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_ERROR, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_UNIT_DESTROYED, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_TEAM_CHANGE_FAILED_QUEUED, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_TEAM_EVENT, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_TEAM_INVITE, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_TEAM_QUERY_RESPONSE, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_TEAM_ROSTER, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_ARENA_TEAM_STATS, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_AUCTION_LIST_PENDING_SALES, 0x0000, STATUS_UNHANDLED);
DEFINE_OPCODE_HANDLER(SMSG_AUCTION_REMOVED_NOTIFICATION, 0x0000, STATUS_UNHANDLED);
@@ -689,11 +689,8 @@ enum Opcodes
SMSG_AREA_TRIGGER_MOVEMENT_UPDATE,
SMSG_ARENA_ERROR,
SMSG_ARENA_UNIT_DESTROYED,
SMSG_ARENA_TEAM_CHANGE_FAILED_QUEUED,
SMSG_ARENA_TEAM_EVENT,
SMSG_ARENA_TEAM_INVITE,
SMSG_ARENA_TEAM_QUERY_RESPONSE,
SMSG_ARENA_TEAM_ROSTER,
SMSG_ARENA_TEAM_STATS,
SMSG_ATTACKER_STATE_UPDATE,
SMSG_ATTACK_START,

0 comments on commit 319a3c5

Please sign in to comment.
You can’t perform that action at this time.