Nemo patch ExtendOldCashShopPreview (#7281)
This commit is contained in:
parent
ba9770ce95
commit
5ea44e7c0e
@ -97,6 +97,9 @@
|
|||||||
/// Uncomment for use with Nemo patch ExtendCashShopPreview
|
/// Uncomment for use with Nemo patch ExtendCashShopPreview
|
||||||
//#define ENABLE_CASHSHOP_PREVIEW_PATCH
|
//#define ENABLE_CASHSHOP_PREVIEW_PATCH
|
||||||
|
|
||||||
|
/// Uncomment for use with Nemo patch ExtendOldCashShopPreview
|
||||||
|
//#define ENABLE_OLD_CASHSHOP_PREVIEW_PATCH
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No settings past this point
|
* No settings past this point
|
||||||
**/
|
**/
|
||||||
|
@ -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].discountPrice = nd->u.shop.shop_item[i].value; // Discount Price
|
||||||
p->items[i].itemType = itemtype( id->nameid );
|
p->items[i].itemType = itemtype( id->nameid );
|
||||||
p->items[i].itemId = client_nameid( 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 );
|
WFIFOSET( fd, len );
|
||||||
|
@ -3326,6 +3326,11 @@ struct PACKET_ZC_PC_CASH_POINT_ITEMLIST_sub {
|
|||||||
#else
|
#else
|
||||||
uint16 itemId;
|
uint16 itemId;
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_OLD_CASHSHOP_PREVIEW_PATCH
|
||||||
|
uint16 viewSprite;
|
||||||
|
uint32 location;
|
||||||
|
uint8 unused[6];
|
||||||
|
#endif // ENABLE_OLD_CASHSHOP_PREVIEW_PATCH
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
struct PACKET_ZC_PC_CASH_POINT_ITEMLIST {
|
struct PACKET_ZC_PC_CASH_POINT_ITEMLIST {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user