diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-08-08 22:00:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-08-21 22:36:41 +0300 |
commit | 0c200e53ad49bd443bec30504bd760411bf76015 (patch) | |
tree | 770ecfff6cfac330f2e60767a9edb2da9216834f /src/map/packets_struct.h | |
parent | 8ccaccfc1a66982132558ae4a7bd11ca32f8e9db (diff) | |
download | hercules-0c200e53ad49bd443bec30504bd760411bf76015.tar.gz hercules-0c200e53ad49bd443bec30504bd760411bf76015.tar.bz2 hercules-0c200e53ad49bd443bec30504bd760411bf76015.tar.xz hercules-0c200e53ad49bd443bec30504bd760411bf76015.zip |
Convert ZC_ADD_SKILL into struct and add new packet version
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 59f148c94..8170f13f2 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3533,6 +3533,32 @@ struct PACKET_ZC_HAT_EFFECT { DEFINE_PACKET_HEADER(ZC_HAT_EFFECT, 0x0a3b); #endif +#if PACKETVER_RE_NUM >= 20190807 +struct PACKET_ZC_ADD_SKILL { + int16 packetType; + uint16 id; + int inf; + uint16 level; + uint16 sp; + uint16 range2; + uint8 upFlag; + uint16 level2; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0b31); +#else +struct PACKET_ZC_ADD_SKILL { + int16 packetType; + uint16 id; + int inf; + uint16 level; + uint16 sp; + uint16 range2; + char name[NAME_LENGTH]; + uint8 upFlag; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_ADD_SKILL, 0x0111); +#endif + #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 |