Skip to content
Permalink
Browse files
Added support for 0xa3d
  • Loading branch information
Lemongrass3110 committed Mar 2, 2017
1 parent 40f6b7f commit 7ecaf8bc74586136abf49b132e0e5fcbfad082b4
Showing with 12 additions and 2 deletions.
  1. +3 −0 db/packet_db.txt
  2. +9 −2 src/map/clif.c
@@ -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]
@@ -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) );

0 comments on commit 7ecaf8b

Please sign in to comment.