Guild emblem implementation for late 2019 clients or later (#5144)
Co-authored-by: valhein <35770095+attackjom@users.noreply.github.com> Co-authored-by: Lemongrass3110 <lemongrass@kstp.at> Co-authored-by: Aleos <aleos89@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5112f8e2d8
commit
d38d2b6b71
@@ -405,6 +405,11 @@ enum packet_headers {
|
||||
#else
|
||||
guildLeave = 0x15a,
|
||||
#endif
|
||||
#if PACKETVER >= 20190724
|
||||
changeGuildEmblem = 0xb47,
|
||||
#else
|
||||
changeGuildEmblem = 0x1b4,
|
||||
#endif
|
||||
};
|
||||
|
||||
#if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute
|
||||
@@ -3870,6 +3875,27 @@ struct PACKET_ZC_AUTORUN_SKILL {
|
||||
} __attribute__((packed));
|
||||
DEFINE_PACKET_HEADER(ZC_AUTORUN_SKILL, 0x0147);
|
||||
|
||||
struct PACKET_CZ_GUILD_EMBLEM_CHANGE2 {
|
||||
int16 packetType;
|
||||
uint32 guild_id;
|
||||
uint32 version;
|
||||
} __attribute__((packed));
|
||||
DEFINE_PACKET_HEADER(CZ_GUILD_EMBLEM_CHANGE2, 0x0b46);
|
||||
|
||||
struct PACKET_ZC_CHANGE_GUILD {
|
||||
int16 packetType;
|
||||
#if PACKETVER < 20190724
|
||||
uint32 aid;
|
||||
uint32 guild_id;
|
||||
uint16 emblem_id;
|
||||
#else
|
||||
uint32 guild_id;
|
||||
uint32 emblem_id;
|
||||
uint32 unknown;
|
||||
#endif
|
||||
} __attribute__((packed));
|
||||
DEFINE_PACKET_HEADER(ZC_CHANGE_GUILD, 0x0b47);
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user