mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/PacketIO: Removed handler for another opcode that doesn't exist anymore
This commit is contained in:
@@ -15310,18 +15310,6 @@ void Player::SetQuestSlotTimer(uint16 slot, uint32 timer)
|
||||
SetUInt32Value(PLAYER_QUEST_LOG + slot * MAX_QUEST_OFFSET + QUEST_TIME_OFFSET, timer);
|
||||
}
|
||||
|
||||
void Player::SwapQuestSlot(uint16 slot1, uint16 slot2)
|
||||
{
|
||||
for (int i = 0; i < MAX_QUEST_OFFSET; ++i)
|
||||
{
|
||||
uint32 temp1 = GetUInt32Value(PLAYER_QUEST_LOG + MAX_QUEST_OFFSET * slot1 + i);
|
||||
uint32 temp2 = GetUInt32Value(PLAYER_QUEST_LOG + MAX_QUEST_OFFSET * slot2 + i);
|
||||
|
||||
SetUInt32Value(PLAYER_QUEST_LOG + MAX_QUEST_OFFSET * slot1 + i, temp2);
|
||||
SetUInt32Value(PLAYER_QUEST_LOG + MAX_QUEST_OFFSET * slot2 + i, temp1);
|
||||
}
|
||||
}
|
||||
|
||||
void Player::SetQuestCompletedBit(uint32 questBit, bool completed)
|
||||
{
|
||||
if (!questBit)
|
||||
|
||||
@@ -1542,7 +1542,6 @@ class Player : public Unit, public GridObject<Player>
|
||||
void SetQuestSlotState(uint16 slot, uint32 state);
|
||||
void RemoveQuestSlotState(uint16 slot, uint32 state);
|
||||
void SetQuestSlotTimer(uint16 slot, uint32 timer);
|
||||
void SwapQuestSlot(uint16 slot1, uint16 slot2);
|
||||
void SetQuestCompletedBit(uint32 questBit, bool completed);
|
||||
|
||||
uint16 GetReqKillOrCastCurrentCount(uint32 quest_id, int32 entry) const;
|
||||
@@ -2772,7 +2771,7 @@ class Player : public Unit, public GridObject<Player>
|
||||
bool IsHasDelayedTeleport() const { return m_bHasDelayedTeleport; }
|
||||
void SetDelayedTeleportFlag(bool setting) { m_bHasDelayedTeleport = setting; }
|
||||
void ScheduleDelayedOperation(uint32 operation) { if (operation < DELAYED_END) m_DelayedOperations |= operation; }
|
||||
|
||||
|
||||
bool IsInstanceLoginGameMasterException() const;
|
||||
|
||||
MapReference m_mapRef;
|
||||
|
||||
@@ -399,19 +399,6 @@ void WorldSession::HandleQuestgiverCancel(WorldPacket& /*recvData*/)
|
||||
_player->PlayerTalkClass->SendCloseGossip();
|
||||
}
|
||||
|
||||
void WorldSession::HandleQuestLogSwapQuest(WorldPacket& recvData)
|
||||
{
|
||||
uint8 slot1, slot2;
|
||||
recvData >> slot1 >> slot2;
|
||||
|
||||
if (slot1 == slot2 || slot1 >= MAX_QUEST_LOG_SIZE || slot2 >= MAX_QUEST_LOG_SIZE)
|
||||
return;
|
||||
|
||||
TC_LOG_DEBUG("network", "WORLD: Received CMSG_QUESTLOG_SWAP_QUEST slot 1 = %u, slot 2 = %u", slot1, slot2);
|
||||
|
||||
GetPlayer()->SwapQuestSlot(slot1, slot2);
|
||||
}
|
||||
|
||||
void WorldSession::HandleQuestLogRemoveQuest(WorldPackets::Quest::QuestLogRemoveQuest& packet)
|
||||
{
|
||||
TC_LOG_DEBUG("network", "WORLD: Received CMSG_QUESTLOG_REMOVE_QUEST slot = %u", packet.Entry);
|
||||
|
||||
@@ -1380,7 +1380,6 @@ class WorldSession
|
||||
void HandleQuestgiverRequestRewardOpcode(WorldPackets::Quest::QuestGiverRequestReward& packet);
|
||||
void HandleQuestQueryOpcode(WorldPackets::Quest::QueryQuestInfo& packet);
|
||||
void HandleQuestgiverCancel(WorldPacket& recvData);
|
||||
void HandleQuestLogSwapQuest(WorldPacket& recvData);
|
||||
void HandleQuestLogRemoveQuest(WorldPackets::Quest::QuestLogRemoveQuest& packet);
|
||||
void HandleQuestConfirmAccept(WorldPackets::Quest::QuestConfirmAccept& packet);
|
||||
void HandleQuestgiverCompleteQuest(WorldPackets::Quest::QuestGiverCompleteQuest& packet);
|
||||
|
||||
Reference in New Issue
Block a user