Originally posted by ksmith
There are two opcodes used when transmitting item data.
ItemCode (0x02c5) used for inventory and bank
ItemInfoCode (0x01fa) used for item links, vendor items, looted items, etc.
I haven't taken a close enough look to see what the flow of packets looks like when you open a merchant other than you get a bunch of ItemInfoCode packets back.
Actually, ItemCode is used for:
Code:
ItemPacketViewLink = 0x00,
ItemPacketMerchant = 0x64,
ItemPacketLoot = 0x66,
ItemPacketTrade = 0x67,
ItemPacketCharInventory = 0x69,
ItemPacketSummonItem = 0x6a,
ItemPacketWorldContainer = 0x6b
And to answer GanjaSeqUser's question, if you look in the itempackets.log file you'll see that stuff off of a vendor will start with "Type(Merchant)". Note, the item data in that file will be exactly as it appeared in the packet (sub-items and all). Although the merchant packets seem to just be sent one item at a time.
Enjoy,
Zaphod (dohpaZ)