Kaynağa Gözat

Nemo patch ExtendOldCashShopPreview (#7281)

Null il3ol2ed 2 yıl önce
ebeveyn
işleme
5ea44e7c0e
3 değiştirilmiş dosya ile 13 ekleme ve 0 silme
  1. 3 0
      src/config/core.hpp
  2. 5 0
      src/map/clif.cpp
  3. 5 0
      src/map/packets_struct.hpp

+ 3 - 0
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
  **/

+ 5 - 0
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 );

+ 5 - 0
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 {