diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-12-14 23:51:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-12-14 23:52:47 +0300 |
commit | 59eb8ed011d447ba91c085590c11e2681773d2a0 (patch) | |
tree | 7d07e9f2e6b67c06ba37718d9a21d2b061acec24 /src/map | |
parent | 4194f0ad5d47640dc0a26c48b070759b354424a7 (diff) | |
download | hercules-59eb8ed011d447ba91c085590c11e2681773d2a0.tar.gz hercules-59eb8ed011d447ba91c085590c11e2681773d2a0.tar.bz2 hercules-59eb8ed011d447ba91c085590c11e2681773d2a0.tar.xz hercules-59eb8ed011d447ba91c085590c11e2681773d2a0.zip |
Add packet CZ_REQ_REMAINTIME (with empty handler)
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/clif.c | 7 | ||||
-rw-r--r-- | src/map/clif.h | 1 | ||||
-rw-r--r-- | src/map/packets.h | 1 | ||||
-rw-r--r-- | src/map/packets_struct.h | 5 |
4 files changed, 14 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index a81b967d1..b0698fefd 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -3173,6 +3173,12 @@ static void clif_parse_inventoryExpansionRejected(int fd, struct map_session_dat #endif } +// CZ_REQ_REMAINTIME +static void clif_parse_reqRemainTime(int fd, struct map_session_data *sd) __attribute__((nonnull (2))); +static void clif_parse_reqRemainTime(int fd, struct map_session_data *sd) +{ +} + /// Removes cart (ZC_CARTOFF). /// 012b /// Client behavior: @@ -23362,4 +23368,5 @@ void clif_defaults(void) clif->petEvolutionResult = clif_pet_evolution_result; clif->pMemorialDungeonCommand = clif_parse_memorial_dungeon_command; + clif->pReqRemainTime = clif_parse_reqRemainTime; } diff --git a/src/map/clif.h b/src/map/clif.h index 47766b33d..568c312cf 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -1585,6 +1585,7 @@ struct clif_interface { void (*camera_change) (struct map_session_data *sd, float range, float rotation, float latitude, enum send_target target); void (*item_preview) (struct map_session_data *sd, int n); bool (*enchant_equipment) (struct map_session_data *sd, enum equip_pos pos, int cardSlot, int cardId); + void (*pReqRemainTime) (int fd, struct map_session_data *sd); }; #ifdef HERCULES_CORE diff --git a/src/map/packets.h b/src/map/packets.h index 4ce7ee916..8e392cc63 100644 --- a/src/map/packets.h +++ b/src/map/packets.h @@ -147,6 +147,7 @@ packet(0x01ba,clif->pGMShift,2); packet(0x01bb,clif->pGMShift,2); packet(0x01bc,clif->pGMRecall,2); packet(0x01bd,clif->pGMRecall,2); +packet(0x01c0,clif->pReqRemainTime); packet(0x01ce,clif->pAutoSpell,2); packet(0x01d5,clif->pNpcStringInput,2,4,8); packet(0x01df,clif->pGMReqAccountName,2); diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 1283f8494..26e6343d7 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3029,6 +3029,11 @@ struct PACKET_CZ_INVENTORY_EXPAND_REJECTED { DEFINE_PACKET_HEADER(CZ_INVENTORY_EXPAND_REJECTED, 0x0b19); #endif +struct PACKET_CZ_REQ_REMAINTIME { + int16 packetType; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(CZ_REQ_REMAINTIME, 0x01c0); + #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute #pragma pack(pop) #endif // not NetBSD < 6 / Solaris |