diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2015-08-27 20:47:23 +0530 |
---|---|---|
committer | Dastgir <dastgirpojee@rocketmail.com> | 2015-08-27 21:16:42 +0530 |
commit | 2b4b33b06a964e83bf5df9f7f0b795ddf76f9dd0 (patch) | |
tree | f9357ef349422c260e09237e5f6e9811d38e15d7 /src/map/packets_struct.h | |
parent | bcf51fa5a12d07fe80975bc921ccce3e4f6bf35d (diff) | |
download | hercules-2b4b33b06a964e83bf5df9f7f0b795ddf76f9dd0.tar.gz hercules-2b4b33b06a964e83bf5df9f7f0b795ddf76f9dd0.tar.bz2 hercules-2b4b33b06a964e83bf5df9f7f0b795ddf76f9dd0.tar.xz hercules-2b4b33b06a964e83bf5df9f7f0b795ddf76f9dd0.zip |
Hotkey Rotate Packet Implemented
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index daf77c134..8f9747747 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -18,6 +18,13 @@ enum packet_headers { banking_checkType = 0x9a6, cart_additem_ackType = 0x12c, sc_notickType = 0x196, +#if PACKETVER >= 20141022 + hotkeyType = 0xa00, +#elif PACKETVER >= 20090603 + hotkeyType = 0x7d9, +#else + hotkeyType = 0x2b9, +#endif #if PACKETVER >= 20150226 cartaddType = 0xa0b, #elif PACKETVER >= 5 @@ -1082,6 +1089,18 @@ struct packet_party_leader_changed { unsigned int new_leader_aid; } __attribute__((packed)); +struct packet_hotkey { + short PacketType; +#if PACKETVER >= 20141022 + char Rotate; +#endif + struct { + char isSkill; // 0: Item, 1:Skill + unsigned int ID; // Item/Skill ID + short count; // Item Quantity/Skill Level + } hotkey[MAX_HOTKEYS]; +} __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 |