Skip to content

Commit

Permalink
Core/PacketIO: Update SMSG_QUESTGIVER_REQUEST_ITEMS
Browse files Browse the repository at this point in the history
Picked from: https://github.com/vmangos/core

vmangos/core@b9b006d

Co-authored-by: brotalnia <brotalnia@gmail.com>
  • Loading branch information
2 people authored and killerwife committed Jul 12, 2024
1 parent 23cd08e commit 4427b31
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/game/Entities/GossipDef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,16 +559,15 @@ void PlayerMenu::SendQuestGiverRequestItems(Quest const* pQuest, ObjectGuid npcG
data << uint32(0);
}

data << uint32(0x02);
data << uint32(0x02); // flags1

if (!Completable) // Completable = flags1 && flags2 && flags3 && flags4
data << uint32(0x00); // flags1
data << uint32(0x00); // flags2
else
data << uint32(0x03);
data << uint32(0x03); // flags2

data << uint32(0x04); // flags2
data << uint32(0x08); // flags3
data << uint32(0x10); // flags4
data << uint32(0x04); // flags3
data << uint32(0x08); // flags4

GetMenuSession()->SendPacket(data);
DEBUG_LOG("WORLD: Sent SMSG_QUESTGIVER_REQUEST_ITEMS NPCGuid = %s, questid = %u", npcGUID.GetString().c_str(), pQuest->GetQuestId());
Expand Down

0 comments on commit 4427b31

Please sign in to comment.