|
@@ -19071,13 +19071,14 @@ void clif_sale_add_reply( struct map_session_data* sd, enum e_sale_add_result re
|
|
|
|
|
|
/// A client request to put an item on sale.
|
|
|
/// 09ae <account id>.L <item id>.W <amount>.L <start time>.L <hours on sale>.B (CZ_REQ_APPLY_BARGAIN_SALE_ITEM)
|
|
|
+/// 0a3d <account id>.L <item id>.W <amount>.L <start time>.L <hours on sale>.W
|
|
|
void clif_parse_sale_add( int fd, struct map_session_data* sd ){
|
|
|
#if PACKETVER_SUPPORTS_SALES
|
|
|
int32 count;
|
|
|
int16 nameid;
|
|
|
int startTime;
|
|
|
int endTime;
|
|
|
- uint8 sellingHours;
|
|
|
+ uint16 sellingHours;
|
|
|
|
|
|
nullpo_retv(sd);
|
|
|
|
|
@@ -19092,7 +19093,13 @@ void clif_parse_sale_add( int fd, struct map_session_data* sd ){
|
|
|
nameid = RFIFOW(fd, 6);
|
|
|
count = RFIFOL(fd, 8);
|
|
|
startTime = RFIFOL(fd, 12);
|
|
|
- sellingHours = RFIFOB(fd, 16);
|
|
|
+#if PACKETVER >= 20150520
|
|
|
+ if( RFIFOW(fd,0) == 0xa3d )
|
|
|
+ sellingHours = RFIFOB(fd, 16);
|
|
|
+ else
|
|
|
+#endif
|
|
|
+ sellingHours = RFIFOB(fd, 16);
|
|
|
+
|
|
|
endTime = startTime + sellingHours * 60 * 60;
|
|
|
|
|
|
clif_sale_add_reply( sd, sale_add_item(nameid,count,startTime,endTime) );
|