AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Guild.h File Reference
#include "Item.h"
#include "ObjectMgr.h"
#include "Optional.h"
#include "Player.h"
#include "World.h"
#include "WorldPacket.h"
#include <set>
#include <unordered_map>
#include <unordered_set>

Go to the source code of this file.

Classes

class  EmblemInfo
 
class  GuildBankRightsAndSlots
 
class  Guild
 
class  Guild::Member
 
class  Guild::LogEntry
 
class  Guild::EventLogEntry
 
class  Guild::BankEventLogEntry
 
class  Guild::LogHolder< Entry >
 
class  Guild::RankInfo
 
class  Guild::BankTab
 
class  Guild::MoveItemData
 
class  Guild::PlayerMoveItemData
 
class  Guild::BankMoveItemData
 

Namespaces

namespace  WorldPackets
 
namespace  WorldPackets::Guild
 

Typedefs

using SlotIds = std::set< uint8 >
 

Enumerations

enum  GuildMisc {
  GUILD_BANK_MAX_TABS = 6 ,
  GUILD_BANK_MAX_SLOTS = 98 ,
  GUILD_BANK_MONEY_LOGS_TAB = 100 ,
  GUILD_RANKS_MIN_COUNT = 5 ,
  GUILD_RANKS_MAX_COUNT = 10 ,
  GUILD_RANK_NONE = 0xFF ,
  GUILD_WITHDRAW_MONEY_UNLIMITED = 0xFFFFFFFF ,
  GUILD_WITHDRAW_SLOT_UNLIMITED = 0xFFFFFFFF ,
  GUILD_EVENT_LOG_GUID_UNDEFINED = 0xFFFFFFFF ,
  TAB_UNDEFINED = 0xFF
}
 
enum  GuildMemberData {
  GUILD_MEMBER_DATA_ZONEID ,
  GUILD_MEMBER_DATA_LEVEL
}
 
enum  GuildDefaultRanks {
  GR_GUILDMASTER = 0 ,
  GR_OFFICER = 1 ,
  GR_VETERAN = 2 ,
  GR_MEMBER = 3 ,
  GR_INITIATE = 4
}
 
enum  GuildRankRights {
  GR_RIGHT_EMPTY = 0x00000040 ,
  GR_RIGHT_GCHATLISTEN = GR_RIGHT_EMPTY | 0x00000001 ,
  GR_RIGHT_GCHATSPEAK = GR_RIGHT_EMPTY | 0x00000002 ,
  GR_RIGHT_OFFCHATLISTEN = GR_RIGHT_EMPTY | 0x00000004 ,
  GR_RIGHT_OFFCHATSPEAK = GR_RIGHT_EMPTY | 0x00000008 ,
  GR_RIGHT_INVITE = GR_RIGHT_EMPTY | 0x00000010 ,
  GR_RIGHT_REMOVE = GR_RIGHT_EMPTY | 0x00000020 ,
  GR_RIGHT_PROMOTE = GR_RIGHT_EMPTY | 0x00000080 ,
  GR_RIGHT_DEMOTE = GR_RIGHT_EMPTY | 0x00000100 ,
  GR_RIGHT_SETMOTD = GR_RIGHT_EMPTY | 0x00001000 ,
  GR_RIGHT_EPNOTE = GR_RIGHT_EMPTY | 0x00002000 ,
  GR_RIGHT_VIEWOFFNOTE = GR_RIGHT_EMPTY | 0x00004000 ,
  GR_RIGHT_EOFFNOTE = GR_RIGHT_EMPTY | 0x00008000 ,
  GR_RIGHT_MODIFY_GUILD_INFO = GR_RIGHT_EMPTY | 0x00010000 ,
  GR_RIGHT_WITHDRAW_GOLD_LOCK = 0x00020000 ,
  GR_RIGHT_WITHDRAW_REPAIR = 0x00040000 ,
  GR_RIGHT_WITHDRAW_GOLD = 0x00080000 ,
  GR_RIGHT_CREATE_GUILD_EVENT = 0x00100000 ,
  GR_RIGHT_ALL = 0x001DF1FF
}
 
enum  GuildCommandType {
  GUILD_COMMAND_CREATE = 0 ,
  GUILD_COMMAND_INVITE = 1 ,
  GUILD_COMMAND_QUIT = 3 ,
  GUILD_COMMAND_ROSTER = 5 ,
  GUILD_COMMAND_PROMOTE = 6 ,
  GUILD_COMMAND_DEMOTE = 7 ,
  GUILD_COMMAND_REMOVE = 8 ,
  GUILD_COMMAND_CHANGE_LEADER = 10 ,
  GUILD_COMMAND_EDIT_MOTD = 11 ,
  GUILD_COMMAND_GUILD_CHAT = 13 ,
  GUILD_COMMAND_FOUNDER = 14 ,
  GUILD_COMMAND_CHANGE_RANK = 16 ,
  GUILD_COMMAND_PUBLIC_NOTE = 19 ,
  GUILD_COMMAND_VIEW_TAB = 21 ,
  GUILD_COMMAND_MOVE_ITEM = 22 ,
  GUILD_COMMAND_REPAIR = 25
}
 
enum  GuildCommandError {
  ERR_GUILD_COMMAND_SUCCESS = 0 ,
  ERR_GUILD_INTERNAL = 1 ,
  ERR_ALREADY_IN_GUILD = 2 ,
  ERR_ALREADY_IN_GUILD_S = 3 ,
  ERR_INVITED_TO_GUILD = 4 ,
  ERR_ALREADY_INVITED_TO_GUILD_S = 5 ,
  ERR_GUILD_NAME_INVALID = 6 ,
  ERR_GUILD_NAME_EXISTS_S = 7 ,
  ERR_GUILD_LEADER_LEAVE = 8 ,
  ERR_GUILD_PERMISSIONS = 8 ,
  ERR_GUILD_PLAYER_NOT_IN_GUILD = 9 ,
  ERR_GUILD_PLAYER_NOT_IN_GUILD_S = 10 ,
  ERR_GUILD_PLAYER_NOT_FOUND_S = 11 ,
  ERR_GUILD_NOT_ALLIED = 12 ,
  ERR_GUILD_RANK_TOO_HIGH_S = 13 ,
  ERR_GUILD_RANK_TOO_LOW_S = 14 ,
  ERR_GUILD_RANKS_LOCKED = 17 ,
  ERR_GUILD_RANK_IN_USE = 18 ,
  ERR_GUILD_IGNORING_YOU_S = 19 ,
  ERR_GUILD_UNK1 = 20 ,
  ERR_GUILD_WITHDRAW_LIMIT = 25 ,
  ERR_GUILD_NOT_ENOUGH_MONEY = 26 ,
  ERR_GUILD_BANK_FULL = 28 ,
  ERR_GUILD_ITEM_NOT_FOUND = 29
}
 
enum  GuildEvents {
  GE_PROMOTION = 0 ,
  GE_DEMOTION = 1 ,
  GE_MOTD = 2 ,
  GE_JOINED = 3 ,
  GE_LEFT = 4 ,
  GE_REMOVED = 5 ,
  GE_LEADER_IS = 6 ,
  GE_LEADER_CHANGED = 7 ,
  GE_DISBANDED = 8 ,
  GE_TABARDCHANGE = 9 ,
  GE_RANK_UPDATED = 10 ,
  GE_RANK_DELETED = 11 ,
  GE_SIGNED_ON = 12 ,
  GE_SIGNED_OFF = 13 ,
  GE_GUILDBANKBAGSLOTS_CHANGED = 14 ,
  GE_BANK_TAB_PURCHASED = 15 ,
  GE_BANK_TAB_UPDATED = 16 ,
  GE_BANK_MONEY_SET = 17 ,
  GE_BANK_TAB_AND_MONEY_UPDATED = 18 ,
  GE_BANK_TEXT_CHANGED = 19
}
 
enum  PetitionTurns {
  PETITION_TURN_OK = 0 ,
  PETITION_TURN_ALREADY_IN_GUILD = 2 ,
  PETITION_TURN_NEED_MORE_SIGNATURES = 4
}
 
enum  PetitionSigns {
  PETITION_SIGN_OK = 0 ,
  PETITION_SIGN_ALREADY_SIGNED = 1 ,
  PETITION_SIGN_ALREADY_IN_GUILD = 2 ,
  PETITION_SIGN_CANT_SIGN_OWN = 3 ,
  PETITION_SIGN_NOT_SERVER = 4
}
 
enum  GuildBankRights {
  GUILD_BANK_RIGHT_VIEW_TAB = 0x01 ,
  GUILD_BANK_RIGHT_PUT_ITEM = 0x02 ,
  GUILD_BANK_RIGHT_UPDATE_TEXT = 0x04 ,
  GUILD_BANK_RIGHT_DEPOSIT_ITEM = GUILD_BANK_RIGHT_VIEW_TAB | GUILD_BANK_RIGHT_PUT_ITEM ,
  GUILD_BANK_RIGHT_FULL = 0xFF
}
 
enum  GuildBankEventLogTypes {
  GUILD_BANK_LOG_DEPOSIT_ITEM = 1 ,
  GUILD_BANK_LOG_WITHDRAW_ITEM = 2 ,
  GUILD_BANK_LOG_MOVE_ITEM = 3 ,
  GUILD_BANK_LOG_DEPOSIT_MONEY = 4 ,
  GUILD_BANK_LOG_WITHDRAW_MONEY = 5 ,
  GUILD_BANK_LOG_REPAIR_MONEY = 6 ,
  GUILD_BANK_LOG_MOVE_ITEM2 = 7 ,
  GUILD_BANK_LOG_UNK1 = 8 ,
  GUILD_BANK_LOG_BUY_SLOT = 9
}
 
enum  GuildEventLogTypes {
  GUILD_EVENT_LOG_INVITE_PLAYER = 1 ,
  GUILD_EVENT_LOG_JOIN_GUILD = 2 ,
  GUILD_EVENT_LOG_PROMOTE_PLAYER = 3 ,
  GUILD_EVENT_LOG_DEMOTE_PLAYER = 4 ,
  GUILD_EVENT_LOG_UNINVITE_PLAYER = 5 ,
  GUILD_EVENT_LOG_LEAVE_GUILD = 6
}
 
enum  GuildEmblemError {
  ERR_GUILDEMBLEM_SUCCESS = 0 ,
  ERR_GUILDEMBLEM_INVALID_TABARD_COLORS = 1 ,
  ERR_GUILDEMBLEM_NOGUILD = 2 ,
  ERR_GUILDEMBLEM_NOTGUILDMASTER = 3 ,
  ERR_GUILDEMBLEM_NOTENOUGHMONEY = 4 ,
  ERR_GUILDEMBLEM_INVALIDVENDOR = 5
}
 
enum  GuildMemberFlags {
  GUILDMEMBER_STATUS_NONE = 0x0000 ,
  GUILDMEMBER_STATUS_ONLINE = 0x0001 ,
  GUILDMEMBER_STATUS_AFK = 0x0002 ,
  GUILDMEMBER_STATUS_DND = 0x0004 ,
  GUILDMEMBER_STATUS_MOBILE = 0x0008
}
 

Variables

constexpr uint64 GUILD_BANK_MONEY_LIMIT = UI64LIT(0x7FFFFFFFFFFFF)
 

Typedef Documentation

◆ SlotIds

using SlotIds = std::set<uint8>

Enumeration Type Documentation

◆ GuildBankEventLogTypes

Enumerator
GUILD_BANK_LOG_DEPOSIT_ITEM 
GUILD_BANK_LOG_WITHDRAW_ITEM 
GUILD_BANK_LOG_MOVE_ITEM 
GUILD_BANK_LOG_DEPOSIT_MONEY 
GUILD_BANK_LOG_WITHDRAW_MONEY 
GUILD_BANK_LOG_REPAIR_MONEY 
GUILD_BANK_LOG_MOVE_ITEM2 
GUILD_BANK_LOG_UNK1 
GUILD_BANK_LOG_BUY_SLOT 
199{
209};
@ GUILD_BANK_LOG_MOVE_ITEM
Definition: Guild.h:202
@ GUILD_BANK_LOG_WITHDRAW_ITEM
Definition: Guild.h:201
@ GUILD_BANK_LOG_DEPOSIT_MONEY
Definition: Guild.h:203
@ GUILD_BANK_LOG_DEPOSIT_ITEM
Definition: Guild.h:200
@ GUILD_BANK_LOG_WITHDRAW_MONEY
Definition: Guild.h:204
@ GUILD_BANK_LOG_UNK1
Definition: Guild.h:207
@ GUILD_BANK_LOG_REPAIR_MONEY
Definition: Guild.h:205
@ GUILD_BANK_LOG_MOVE_ITEM2
Definition: Guild.h:206
@ GUILD_BANK_LOG_BUY_SLOT
Definition: Guild.h:208

◆ GuildBankRights

Enumerator
GUILD_BANK_RIGHT_VIEW_TAB 
GUILD_BANK_RIGHT_PUT_ITEM 
GUILD_BANK_RIGHT_UPDATE_TEXT 
GUILD_BANK_RIGHT_DEPOSIT_ITEM 
GUILD_BANK_RIGHT_FULL 
189{
193
196};
@ GUILD_BANK_RIGHT_PUT_ITEM
Definition: Guild.h:191
@ GUILD_BANK_RIGHT_VIEW_TAB
Definition: Guild.h:190
@ GUILD_BANK_RIGHT_FULL
Definition: Guild.h:195
@ GUILD_BANK_RIGHT_DEPOSIT_ITEM
Definition: Guild.h:194
@ GUILD_BANK_RIGHT_UPDATE_TEXT
Definition: Guild.h:192

◆ GuildCommandError

Enumerator
ERR_GUILD_COMMAND_SUCCESS 
ERR_GUILD_INTERNAL 
ERR_ALREADY_IN_GUILD 
ERR_ALREADY_IN_GUILD_S 
ERR_INVITED_TO_GUILD 
ERR_ALREADY_INVITED_TO_GUILD_S 
ERR_GUILD_NAME_INVALID 
ERR_GUILD_NAME_EXISTS_S 
ERR_GUILD_LEADER_LEAVE 
ERR_GUILD_PERMISSIONS 
ERR_GUILD_PLAYER_NOT_IN_GUILD 
ERR_GUILD_PLAYER_NOT_IN_GUILD_S 
ERR_GUILD_PLAYER_NOT_FOUND_S 
ERR_GUILD_NOT_ALLIED 
ERR_GUILD_RANK_TOO_HIGH_S 
ERR_GUILD_RANK_TOO_LOW_S 
ERR_GUILD_RANKS_LOCKED 
ERR_GUILD_RANK_IN_USE 
ERR_GUILD_IGNORING_YOU_S 
ERR_GUILD_UNK1 
ERR_GUILD_WITHDRAW_LIMIT 
ERR_GUILD_NOT_ENOUGH_MONEY 
ERR_GUILD_BANK_FULL 
ERR_GUILD_ITEM_NOT_FOUND 
121{
141 ERR_GUILD_UNK1 = 20, // Forces roster update
146};
@ ERR_GUILD_PERMISSIONS
Definition: Guild.h:131
@ ERR_GUILD_WITHDRAW_LIMIT
Definition: Guild.h:142
@ ERR_ALREADY_IN_GUILD_S
Definition: Guild.h:125
@ ERR_GUILD_PLAYER_NOT_IN_GUILD
Definition: Guild.h:132
@ ERR_GUILD_PLAYER_NOT_IN_GUILD_S
Definition: Guild.h:133
@ ERR_GUILD_RANK_IN_USE
Definition: Guild.h:139
@ ERR_GUILD_LEADER_LEAVE
Definition: Guild.h:130
@ ERR_GUILD_COMMAND_SUCCESS
Definition: Guild.h:122
@ ERR_INVITED_TO_GUILD
Definition: Guild.h:126
@ ERR_GUILD_RANKS_LOCKED
Definition: Guild.h:138
@ ERR_GUILD_NOT_ALLIED
Definition: Guild.h:135
@ ERR_GUILD_NOT_ENOUGH_MONEY
Definition: Guild.h:143
@ ERR_GUILD_INTERNAL
Definition: Guild.h:123
@ ERR_GUILD_BANK_FULL
Definition: Guild.h:144
@ ERR_GUILD_PLAYER_NOT_FOUND_S
Definition: Guild.h:134
@ ERR_GUILD_RANK_TOO_LOW_S
Definition: Guild.h:137
@ ERR_GUILD_IGNORING_YOU_S
Definition: Guild.h:140
@ ERR_GUILD_NAME_EXISTS_S
Definition: Guild.h:129
@ ERR_ALREADY_IN_GUILD
Definition: Guild.h:124
@ ERR_GUILD_RANK_TOO_HIGH_S
Definition: Guild.h:136
@ ERR_ALREADY_INVITED_TO_GUILD_S
Definition: Guild.h:127
@ ERR_GUILD_NAME_INVALID
Definition: Guild.h:128
@ ERR_GUILD_ITEM_NOT_FOUND
Definition: Guild.h:145
@ ERR_GUILD_UNK1
Definition: Guild.h:141

◆ GuildCommandType

Enumerator
GUILD_COMMAND_CREATE 
GUILD_COMMAND_INVITE 
GUILD_COMMAND_QUIT 
GUILD_COMMAND_ROSTER 
GUILD_COMMAND_PROMOTE 
GUILD_COMMAND_DEMOTE 
GUILD_COMMAND_REMOVE 
GUILD_COMMAND_CHANGE_LEADER 
GUILD_COMMAND_EDIT_MOTD 
GUILD_COMMAND_GUILD_CHAT 
GUILD_COMMAND_FOUNDER 
GUILD_COMMAND_CHANGE_RANK 
GUILD_COMMAND_PUBLIC_NOTE 
GUILD_COMMAND_VIEW_TAB 
GUILD_COMMAND_MOVE_ITEM 
GUILD_COMMAND_REPAIR 
101{
118};
@ GUILD_COMMAND_GUILD_CHAT
Definition: Guild.h:111
@ GUILD_COMMAND_CHANGE_LEADER
Definition: Guild.h:109
@ GUILD_COMMAND_FOUNDER
Definition: Guild.h:112
@ GUILD_COMMAND_INVITE
Definition: Guild.h:103
@ GUILD_COMMAND_REPAIR
Definition: Guild.h:117
@ GUILD_COMMAND_VIEW_TAB
Definition: Guild.h:115
@ GUILD_COMMAND_MOVE_ITEM
Definition: Guild.h:116
@ GUILD_COMMAND_QUIT
Definition: Guild.h:104
@ GUILD_COMMAND_CREATE
Definition: Guild.h:102
@ GUILD_COMMAND_PROMOTE
Definition: Guild.h:106
@ GUILD_COMMAND_DEMOTE
Definition: Guild.h:107
@ GUILD_COMMAND_PUBLIC_NOTE
Definition: Guild.h:114
@ GUILD_COMMAND_CHANGE_RANK
Definition: Guild.h:113
@ GUILD_COMMAND_REMOVE
Definition: Guild.h:108
@ GUILD_COMMAND_ROSTER
Definition: Guild.h:105
@ GUILD_COMMAND_EDIT_MOTD
Definition: Guild.h:110

◆ GuildDefaultRanks

Enumerator
GR_GUILDMASTER 
GR_OFFICER 
GR_VETERAN 
GR_MEMBER 
GR_INITIATE 
66{
67 // These ranks can be modified, but they cannot be deleted
69 GR_OFFICER = 1,
70 GR_VETERAN = 2,
71 GR_MEMBER = 3,
72 GR_INITIATE = 4
73 // When promoting member server does: rank--
74 // When demoting member server does: rank++
75};
@ GR_MEMBER
Definition: Guild.h:71
@ GR_GUILDMASTER
Definition: Guild.h:68
@ GR_INITIATE
Definition: Guild.h:72
@ GR_OFFICER
Definition: Guild.h:69
@ GR_VETERAN
Definition: Guild.h:70

◆ GuildEmblemError

Enumerator
ERR_GUILDEMBLEM_SUCCESS 
ERR_GUILDEMBLEM_INVALID_TABARD_COLORS 
ERR_GUILDEMBLEM_NOGUILD 
ERR_GUILDEMBLEM_NOTGUILDMASTER 
ERR_GUILDEMBLEM_NOTENOUGHMONEY 
ERR_GUILDEMBLEM_INVALIDVENDOR 
222{
229};
@ ERR_GUILDEMBLEM_NOTGUILDMASTER
Definition: Guild.h:226
@ ERR_GUILDEMBLEM_INVALIDVENDOR
Definition: Guild.h:228
@ ERR_GUILDEMBLEM_INVALID_TABARD_COLORS
Definition: Guild.h:224
@ ERR_GUILDEMBLEM_NOTENOUGHMONEY
Definition: Guild.h:227
@ ERR_GUILDEMBLEM_SUCCESS
Definition: Guild.h:223
@ ERR_GUILDEMBLEM_NOGUILD
Definition: Guild.h:225

◆ GuildEventLogTypes

Enumerator
GUILD_EVENT_LOG_INVITE_PLAYER 
GUILD_EVENT_LOG_JOIN_GUILD 
GUILD_EVENT_LOG_PROMOTE_PLAYER 
GUILD_EVENT_LOG_DEMOTE_PLAYER 
GUILD_EVENT_LOG_UNINVITE_PLAYER 
GUILD_EVENT_LOG_LEAVE_GUILD 
212{
219};
@ GUILD_EVENT_LOG_LEAVE_GUILD
Definition: Guild.h:218
@ GUILD_EVENT_LOG_PROMOTE_PLAYER
Definition: Guild.h:215
@ GUILD_EVENT_LOG_UNINVITE_PLAYER
Definition: Guild.h:217
@ GUILD_EVENT_LOG_INVITE_PLAYER
Definition: Guild.h:213
@ GUILD_EVENT_LOG_DEMOTE_PLAYER
Definition: Guild.h:216
@ GUILD_EVENT_LOG_JOIN_GUILD
Definition: Guild.h:214

◆ GuildEvents

Enumerator
GE_PROMOTION 
GE_DEMOTION 
GE_MOTD 
GE_JOINED 
GE_LEFT 
GE_REMOVED 
GE_LEADER_IS 
GE_LEADER_CHANGED 
GE_DISBANDED 
GE_TABARDCHANGE 
GE_RANK_UPDATED 
GE_RANK_DELETED 
GE_SIGNED_ON 
GE_SIGNED_OFF 
GE_GUILDBANKBAGSLOTS_CHANGED 
GE_BANK_TAB_PURCHASED 
Todo:
: Sent when items are moved in gbank - all players with bank open will send tab query
GE_BANK_TAB_UPDATED 
GE_BANK_MONEY_SET 
GE_BANK_TAB_AND_MONEY_UPDATED 
GE_BANK_TEXT_CHANGED 
149{
150 GE_PROMOTION = 0,
151 GE_DEMOTION = 1,
152 GE_MOTD = 2,
153 GE_JOINED = 3,
154 GE_LEFT = 4,
155 GE_REMOVED = 5,
156 GE_LEADER_IS = 6,
158 GE_DISBANDED = 8,
159 GE_TABARDCHANGE = 9,
160 GE_RANK_UPDATED = 10,
161 GE_RANK_DELETED = 11,
162 GE_SIGNED_ON = 12,
163 GE_SIGNED_OFF = 13,
170};
@ GE_LEFT
Definition: Guild.h:154
@ GE_LEADER_IS
Definition: Guild.h:156
@ GE_TABARDCHANGE
Definition: Guild.h:159
@ GE_REMOVED
Definition: Guild.h:155
@ GE_JOINED
Definition: Guild.h:153
@ GE_RANK_DELETED
Definition: Guild.h:161
@ GE_GUILDBANKBAGSLOTS_CHANGED
Definition: Guild.h:164
@ GE_PROMOTION
Definition: Guild.h:150
@ GE_BANK_TAB_UPDATED
Definition: Guild.h:166
@ GE_BANK_MONEY_SET
Definition: Guild.h:167
@ GE_DISBANDED
Definition: Guild.h:158
@ GE_BANK_TEXT_CHANGED
Definition: Guild.h:169
@ GE_SIGNED_OFF
Definition: Guild.h:163
@ GE_MOTD
Definition: Guild.h:152
@ GE_BANK_TAB_PURCHASED
Definition: Guild.h:165
@ GE_LEADER_CHANGED
Definition: Guild.h:157
@ GE_SIGNED_ON
Definition: Guild.h:162
@ GE_DEMOTION
Definition: Guild.h:151
@ GE_BANK_TAB_AND_MONEY_UPDATED
Definition: Guild.h:168
@ GE_RANK_UPDATED
Definition: Guild.h:160

◆ GuildMemberData

Enumerator
GUILD_MEMBER_DATA_ZONEID 
GUILD_MEMBER_DATA_LEVEL 
60{
63};
@ GUILD_MEMBER_DATA_LEVEL
Definition: Guild.h:62
@ GUILD_MEMBER_DATA_ZONEID
Definition: Guild.h:61

◆ GuildMemberFlags

Enumerator
GUILDMEMBER_STATUS_NONE 
GUILDMEMBER_STATUS_ONLINE 
GUILDMEMBER_STATUS_AFK 
GUILDMEMBER_STATUS_DND 
GUILDMEMBER_STATUS_MOBILE 
232{
235 GUILDMEMBER_STATUS_AFK = 0x0002,
236 GUILDMEMBER_STATUS_DND = 0x0004,
237 GUILDMEMBER_STATUS_MOBILE = 0x0008, // remote chat from mobile app
238};
@ GUILDMEMBER_STATUS_AFK
Definition: Guild.h:235
@ GUILDMEMBER_STATUS_NONE
Definition: Guild.h:233
@ GUILDMEMBER_STATUS_MOBILE
Definition: Guild.h:237
@ GUILDMEMBER_STATUS_ONLINE
Definition: Guild.h:234
@ GUILDMEMBER_STATUS_DND
Definition: Guild.h:236

◆ GuildMisc

enum GuildMisc
Enumerator
GUILD_BANK_MAX_TABS 
GUILD_BANK_MAX_SLOTS 
GUILD_BANK_MONEY_LOGS_TAB 
GUILD_RANKS_MIN_COUNT 
GUILD_RANKS_MAX_COUNT 
GUILD_RANK_NONE 
GUILD_WITHDRAW_MONEY_UNLIMITED 
GUILD_WITHDRAW_SLOT_UNLIMITED 
GUILD_EVENT_LOG_GUID_UNDEFINED 
TAB_UNDEFINED 
44{
45 GUILD_BANK_MAX_TABS = 6, // send by client for money log also
47 GUILD_BANK_MONEY_LOGS_TAB = 100, // used for money log in DB
50 GUILD_RANK_NONE = 0xFF,
54 TAB_UNDEFINED = 0xFF,
55};
@ GUILD_RANKS_MIN_COUNT
Definition: Guild.h:48
@ GUILD_EVENT_LOG_GUID_UNDEFINED
Definition: Guild.h:53
@ GUILD_WITHDRAW_SLOT_UNLIMITED
Definition: Guild.h:52
@ TAB_UNDEFINED
Definition: Guild.h:54
@ GUILD_BANK_MONEY_LOGS_TAB
Definition: Guild.h:47
@ GUILD_WITHDRAW_MONEY_UNLIMITED
Definition: Guild.h:51
@ GUILD_BANK_MAX_SLOTS
Definition: Guild.h:46
@ GUILD_RANKS_MAX_COUNT
Definition: Guild.h:49
@ GUILD_BANK_MAX_TABS
Definition: Guild.h:45
@ GUILD_RANK_NONE
Definition: Guild.h:50

◆ GuildRankRights

Enumerator
GR_RIGHT_EMPTY 
GR_RIGHT_GCHATLISTEN 
GR_RIGHT_GCHATSPEAK 
GR_RIGHT_OFFCHATLISTEN 
GR_RIGHT_OFFCHATSPEAK 
GR_RIGHT_INVITE 
GR_RIGHT_REMOVE 
GR_RIGHT_PROMOTE 
GR_RIGHT_DEMOTE 
GR_RIGHT_SETMOTD 
GR_RIGHT_EPNOTE 
GR_RIGHT_VIEWOFFNOTE 
GR_RIGHT_EOFFNOTE 
GR_RIGHT_MODIFY_GUILD_INFO 
GR_RIGHT_WITHDRAW_GOLD_LOCK 
GR_RIGHT_WITHDRAW_REPAIR 
GR_RIGHT_WITHDRAW_GOLD 
GR_RIGHT_CREATE_GUILD_EVENT 
GR_RIGHT_ALL 
78{
79 GR_RIGHT_EMPTY = 0x00000040,
84 GR_RIGHT_INVITE = GR_RIGHT_EMPTY | 0x00000010,
85 GR_RIGHT_REMOVE = GR_RIGHT_EMPTY | 0x00000020,
86 GR_RIGHT_PROMOTE = GR_RIGHT_EMPTY | 0x00000080,
87 GR_RIGHT_DEMOTE = GR_RIGHT_EMPTY | 0x00000100,
88 GR_RIGHT_SETMOTD = GR_RIGHT_EMPTY | 0x00001000,
89 GR_RIGHT_EPNOTE = GR_RIGHT_EMPTY | 0x00002000,
91 GR_RIGHT_EOFFNOTE = GR_RIGHT_EMPTY | 0x00008000,
93 GR_RIGHT_WITHDRAW_GOLD_LOCK = 0x00020000, // remove money withdraw capacity
94 GR_RIGHT_WITHDRAW_REPAIR = 0x00040000, // withdraw for repair
95 GR_RIGHT_WITHDRAW_GOLD = 0x00080000, // withdraw gold
96 GR_RIGHT_CREATE_GUILD_EVENT = 0x00100000, // wotlk
97 GR_RIGHT_ALL = 0x001DF1FF
98};
@ GR_RIGHT_EMPTY
Definition: Guild.h:79
@ GR_RIGHT_EOFFNOTE
Definition: Guild.h:91
@ GR_RIGHT_GCHATSPEAK
Definition: Guild.h:81
@ GR_RIGHT_OFFCHATSPEAK
Definition: Guild.h:83
@ GR_RIGHT_WITHDRAW_GOLD_LOCK
Definition: Guild.h:93
@ GR_RIGHT_ALL
Definition: Guild.h:97
@ GR_RIGHT_EPNOTE
Definition: Guild.h:89
@ GR_RIGHT_OFFCHATLISTEN
Definition: Guild.h:82
@ GR_RIGHT_GCHATLISTEN
Definition: Guild.h:80
@ GR_RIGHT_CREATE_GUILD_EVENT
Definition: Guild.h:96
@ GR_RIGHT_SETMOTD
Definition: Guild.h:88
@ GR_RIGHT_MODIFY_GUILD_INFO
Definition: Guild.h:92
@ GR_RIGHT_VIEWOFFNOTE
Definition: Guild.h:90
@ GR_RIGHT_WITHDRAW_REPAIR
Definition: Guild.h:94
@ GR_RIGHT_REMOVE
Definition: Guild.h:85
@ GR_RIGHT_WITHDRAW_GOLD
Definition: Guild.h:95
@ GR_RIGHT_INVITE
Definition: Guild.h:84
@ GR_RIGHT_DEMOTE
Definition: Guild.h:87
@ GR_RIGHT_PROMOTE
Definition: Guild.h:86

◆ PetitionSigns

Enumerator
PETITION_SIGN_OK 
PETITION_SIGN_ALREADY_SIGNED 
PETITION_SIGN_ALREADY_IN_GUILD 
PETITION_SIGN_CANT_SIGN_OWN 
PETITION_SIGN_NOT_SERVER 
180{
186};
@ PETITION_SIGN_ALREADY_SIGNED
Definition: Guild.h:182
@ PETITION_SIGN_ALREADY_IN_GUILD
Definition: Guild.h:183
@ PETITION_SIGN_CANT_SIGN_OWN
Definition: Guild.h:184
@ PETITION_SIGN_OK
Definition: Guild.h:181
@ PETITION_SIGN_NOT_SERVER
Definition: Guild.h:185

◆ PetitionTurns

Enumerator
PETITION_TURN_OK 
PETITION_TURN_ALREADY_IN_GUILD 
PETITION_TURN_NEED_MORE_SIGNATURES 
173{
177};
@ PETITION_TURN_NEED_MORE_SIGNATURES
Definition: Guild.h:176
@ PETITION_TURN_ALREADY_IN_GUILD
Definition: Guild.h:175
@ PETITION_TURN_OK
Definition: Guild.h:174

Variable Documentation

◆ GUILD_BANK_MONEY_LIMIT

constexpr uint64 GUILD_BANK_MONEY_LIMIT = UI64LIT(0x7FFFFFFFFFFFF)
constexpr