diff --git a/db/packet_db.txt b/db/packet_db.txt index 4f04087c15..dc9a34c269 100644 --- a/db/packet_db.txt +++ b/db/packet_db.txt @@ -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] diff --git a/src/map/clif.c b/src/map/clif.c index e7de6bfabc..efff34aafb 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -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 .L .W .L .L .B (CZ_REQ_APPLY_BARGAIN_SALE_ITEM) +/// 0a3d .L .W .L .L .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) );