diff --git a/src/config/core.hpp b/src/config/core.hpp index d2221c23f2..1dcede8298 100644 --- a/src/config/core.hpp +++ b/src/config/core.hpp @@ -97,6 +97,9 @@ /// Uncomment for use with Nemo patch ExtendCashShopPreview //#define ENABLE_CASHSHOP_PREVIEW_PATCH +/// Uncomment for use with Nemo patch ExtendOldCashShopPreview +//#define ENABLE_OLD_CASHSHOP_PREVIEW_PATCH + /** * No settings past this point **/ diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 8e8e382a05..6d87bc4159 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -17290,6 +17290,11 @@ void clif_cashshop_show( struct map_session_data *sd, struct npc_data *nd ){ p->items[i].discountPrice = nd->u.shop.shop_item[i].value; // Discount Price p->items[i].itemType = itemtype( id->nameid ); p->items[i].itemId = client_nameid( id->nameid ); +#ifdef ENABLE_OLD_CASHSHOP_PREVIEW_PATCH + p->items[i].location = pc_equippoint_sub( sd, id ); + p->items[i].viewSprite = id->look; + memset( p->items[i].unused, 0, sizeof( p->items[i].unused ) ); +#endif } WFIFOSET( fd, len ); diff --git a/src/map/packets_struct.hpp b/src/map/packets_struct.hpp index 4b977c30c7..21fcc2b3e0 100644 --- a/src/map/packets_struct.hpp +++ b/src/map/packets_struct.hpp @@ -3326,6 +3326,11 @@ struct PACKET_ZC_PC_CASH_POINT_ITEMLIST_sub { #else uint16 itemId; #endif +#ifdef ENABLE_OLD_CASHSHOP_PREVIEW_PATCH + uint16 viewSprite; + uint32 location; + uint8 unused[6]; +#endif // ENABLE_OLD_CASHSHOP_PREVIEW_PATCH } __attribute__((packed)); struct PACKET_ZC_PC_CASH_POINT_ITEMLIST {