mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
Fix online interactions, UI, and inventory sync
This commit is contained in:
parent
7436420cd1
commit
fdc614902b
14 changed files with 525 additions and 143 deletions
|
|
@ -1906,6 +1906,27 @@ network::Packet AutostoreLootItemPacket::build(uint8_t slotIndex) {
|
|||
return packet;
|
||||
}
|
||||
|
||||
network::Packet UseItemPacket::build(uint8_t bagIndex, uint8_t slotIndex, uint64_t itemGuid) {
|
||||
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_USE_ITEM));
|
||||
packet.writeUInt8(bagIndex);
|
||||
packet.writeUInt8(slotIndex);
|
||||
packet.writeUInt8(0); // spell index
|
||||
packet.writeUInt8(0); // cast count
|
||||
packet.writeUInt32(0); // spell id (unused)
|
||||
packet.writeUInt64(itemGuid);
|
||||
packet.writeUInt32(0); // glyph index
|
||||
packet.writeUInt8(0); // cast flags
|
||||
// SpellCastTargets: self
|
||||
packet.writeUInt32(0x00);
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet AutoEquipItemPacket::build(uint64_t itemGuid) {
|
||||
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_AUTOEQUIP_ITEM));
|
||||
packet.writeUInt64(itemGuid);
|
||||
return packet;
|
||||
}
|
||||
|
||||
network::Packet LootReleasePacket::build(uint64_t lootGuid) {
|
||||
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_LOOT_RELEASE));
|
||||
packet.writeUInt64(lootGuid);
|
||||
|
|
@ -2122,5 +2143,11 @@ network::Packet RepopRequestPacket::build() {
|
|||
return packet;
|
||||
}
|
||||
|
||||
network::Packet SpiritHealerActivatePacket::build(uint64_t npcGuid) {
|
||||
network::Packet packet(static_cast<uint16_t>(Opcode::CMSG_SPIRIT_HEALER_ACTIVATE));
|
||||
packet.writeUInt64(npcGuid);
|
||||
return packet;
|
||||
}
|
||||
|
||||
} // namespace game
|
||||
} // namespace wowee
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue