From 28c5b326247b4764351bf997bcb246f22a202a35 Mon Sep 17 00:00:00 2001 From: Kinglykrab Date: Fri, 26 Aug 2016 18:01:34 -0400 Subject: [PATCH] Modified quantity in Merchant_Sell_Struct to be uint32 in accordance with Merchant_Purchase_Struct. This will allow you to buy stacks of items beyond 255. (Tested with a stack of 1,000 Arrows.) --- common/eq_packet_structs.h | 3 +-- common/patches/sod_structs.h | 3 +-- common/patches/sof_structs.h | 3 +-- common/patches/titanium_structs.h | 3 +-- common/patches/uf_structs.h | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/common/eq_packet_structs.h b/common/eq_packet_structs.h index cf411ef72..fec5af412 100644 --- a/common/eq_packet_structs.h +++ b/common/eq_packet_structs.h @@ -1934,8 +1934,7 @@ struct Merchant_Sell_Struct { /*004*/ uint32 playerid; // Player's entity id /*008*/ uint32 itemslot; uint32 unknown12; -/*016*/ uint8 quantity; // Already sold -/*017*/ uint8 Unknown016[3]; +/*016*/ uint32 quantity; /*020*/ uint32 price; }; struct Merchant_Purchase_Struct { diff --git a/common/patches/sod_structs.h b/common/patches/sod_structs.h index 6a73b7283..bd428c653 100644 --- a/common/patches/sod_structs.h +++ b/common/patches/sod_structs.h @@ -1880,8 +1880,7 @@ struct Merchant_Sell_Struct { /*004*/ uint32 playerid; // Player's entity id /*008*/ uint32 itemslot; /*012*/ uint32 unknown12; -/*016*/ uint8 quantity; // Already sold -/*017*/ uint8 Unknown017[3]; +/*016*/ uint32 quantity; /*020*/ uint32 Unknown020; /*024*/ uint32 price; /*028*/ uint32 pricehighorderbits; // It appears the price is 64 bits in SoD+ diff --git a/common/patches/sof_structs.h b/common/patches/sof_structs.h index 0256132bd..3c0861f42 100644 --- a/common/patches/sof_structs.h +++ b/common/patches/sof_structs.h @@ -1859,8 +1859,7 @@ struct Merchant_Sell_Struct { /*004*/ uint32 playerid; // Player's entity id /*008*/ uint32 itemslot; uint32 unknown12; -/*016*/ uint8 quantity; // Already sold -/*017*/ uint8 Unknown016[3]; +/*016*/ uint32 quantity; /*020*/ uint32 price; }; struct Merchant_Purchase_Struct { diff --git a/common/patches/titanium_structs.h b/common/patches/titanium_structs.h index 8d258871f..c6a5e6a49 100644 --- a/common/patches/titanium_structs.h +++ b/common/patches/titanium_structs.h @@ -1657,8 +1657,7 @@ struct Merchant_Sell_Struct { /*004*/ uint32 playerid; // Player's entity id /*008*/ uint32 itemslot; uint32 unknown12; -/*016*/ uint8 quantity; // Already sold -/*017*/ uint8 Unknown016[3]; +/*016*/ uint32 quantity; /*020*/ uint32 price; }; struct Merchant_Purchase_Struct { diff --git a/common/patches/uf_structs.h b/common/patches/uf_structs.h index 46e5b21cb..1ba5616dd 100644 --- a/common/patches/uf_structs.h +++ b/common/patches/uf_structs.h @@ -1921,8 +1921,7 @@ struct Merchant_Sell_Struct { /*004*/ uint32 playerid; // Player's entity id /*008*/ uint32 itemslot; /*012*/ uint32 unknown12; -/*016*/ uint8 quantity; // Already sold -/*017*/ uint8 Unknown017[3]; +/*016*/ uint32 quantity; /*020*/ uint32 Unknown020; /*024*/ uint32 price; /*028*/ uint32 pricehighorderbits; // It appears the price is 64 bits in Underfoot+