Nemo patch ExtendOldCashShopPreview (#7281)

This commit is contained in:
Null il3ol2ed 2022-09-22 06:23:27 +07:00 committed by GitHub
parent ba9770ce95
commit 5ea44e7c0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -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
**/

View File

@ -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 );

View File

@ -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 {