Added support for 0xa3d

This commit is contained in:
Lemongrass3110 2017-03-02 22:28:00 +01:00
parent 40f6b7f44a
commit 7ecaf8bc74
2 changed files with 12 additions and 2 deletions

View File

@ -2546,6 +2546,9 @@ packet_keys: 0x62C86D09,0x75944F17,0x112C133D // [YomRawr]
0x09FB,-1,dull,0 // CZ_PET_EVOLUTION
0x09FC,6 // ZC_PET_EVOLUTION_RESULT
//2015-05-20aRagexe
0x0A3D,18,saleadd,2:6:8:12:16
//2015-09-16Ragexe
packet_ver: 53
packet_keys: 0x17F83A19,0x116944F4,0x1CC541E9 // [Napster]

View File

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