diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-06 02:46:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-15 20:36:18 +0300 |
commit | 62e26cfe0e2e710bc469036ffb9c2b8bb0e3d225 (patch) | |
tree | 58e1429fee4eeb114e9bd13f3602b19e7bb161a9 /src/map/packets_struct.h | |
parent | 6900b9087b83da2aa5a4ab62e8618499f7f4835f (diff) | |
download | hercules-62e26cfe0e2e710bc469036ffb9c2b8bb0e3d225.tar.gz hercules-62e26cfe0e2e710bc469036ffb9c2b8bb0e3d225.tar.bz2 hercules-62e26cfe0e2e710bc469036ffb9c2b8bb0e3d225.tar.xz hercules-62e26cfe0e2e710bc469036ffb9c2b8bb0e3d225.zip |
Update packet ZC_SPRITE_CHANGE.
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index b8abe0b23..d962795ab 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -385,6 +385,11 @@ enum packet_headers { #else useItemAckType = 0xa8, #endif +#if PACKETVER >= 4 + sendLookType = 0x1d7, +#else + sendLookType = 0xc3, +#endif }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -1962,6 +1967,21 @@ struct PACKET_ZC_USE_ITEM_ACK { uint8 result; } __attribute__((packed)); +struct PACKET_ZC_SPRITE_CHANGE { + int16 packetType; + uint32 AID; + uint8 type; +#if PACKETVER_RE_NUM >= 20180704 + uint32 val; + uint32 val2; +#elif PACKETVER >= 4 + uint16 val; + uint16 val2; +#else + uint8 val; +#endif +} __attribute__((packed)); + #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 |