[DiscordArchive] These packets are going from server -> player, right? So I'd have to watch for the packet that had t
[DiscordArchive] These packets are going from server -> player, right? So I'd have to watch for the packet that had t
Archived author: ritzmenardi • Posted: 2023-06-17T00:45:56.317000+00:00
Original source
These packets are going from server -> player, right? So I'd have to watch for the packet that had the data about the NPC's inventory and then add the data about the random items to it?
Archived author: Foe • Posted: 2023-06-17T00:47:23.335000+00:00
Original source
yes
Archived author: ritzmenardi • Posted: 2023-06-17T00:47:55.205000+00:00
Original source
That does sound considerably easier
Archived author: Foe • Posted: 2023-06-17T00:48:29.716000+00:00
Original source
you'd check the packet opcode for the specific vendor list inventory packet, then grab the guid and figure out which creature it is by guid, then grab amount of items so you can increase the count and append the new info
Archived author: Foe • Posted: 2023-06-17T00:49:08.837000+00:00
Original source
do mind, that only takes care of the inventory part, you'd have to intercept the buy packet as well and handle that yourself
Archived author: ritzmenardi • Posted: 2023-06-17T00:49:38.274000+00:00
Original source
Interesting!
Archived author: ritzmenardi • Posted: 2023-06-17T00:49:50.547000+00:00
Original source
Okay I'll look around for some documentation on those opcodes and such
Archived author: Foe • Posted: 2023-06-17T00:50:36.668000+00:00
Original source
SMSG_LIST_INVENTORY = 0x19F,
CMSG_BUY_ITEM = 0x1A2,
CMSG_BUY_ITEM_IN_SLOT = 0x1A3,