Okay I thought I had this, but maybe I do not.
I am guessing this is the packet that got sent from me sellling a single malachite to a vendor using Underfoot
Code:
[OPCode: 0x0b27] OP_ShopPlayerSell [Server->Client] [Size: 16]
000 | 93 01 00 00 17 00 00 00 01 00 00 00 31 00 00 00 | ............1...
This is 16 bytes if I am right, and have the right packet.
So this would be the structure correct ? It is me selling to the vendor a malachite. The sell struct seems to be larger so it does not looking like a likely candidate.
So this would be the struct.
Code:
struct Merchant_Purchase_Struct {
/*000*/ int32 npcid; // Merchant NPC's entity id
/*004*/ int32 itemslot; // Player's entity id
/*008*/ int32 quantity;
/*012*/ int32 price;
};
I can make out the slot and the amount, which was one malachite. But the NPCid does not match me or the vendor, no matter if I read it from right to left or left to right, converted it to decimal. I am thinking I am missing something simple here.
I posted this in a separate thread because this has nothing to really do with the VoA development.