AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Guild.h"
Classes | |
class | BankEventLogEntry |
class | BankMoveItemData |
class | BankTab |
class | EventLogEntry |
class | LogEntry |
class | LogHolder |
class | Member |
class | MoveItemData |
class | PlayerMoveItemData |
class | RankInfo |
Public Member Functions | |
const Member * | GetMember (ObjectGuid guid) const |
Member * | GetMember (ObjectGuid guid) |
Member * | GetMember (std::string_view name) |
Guild () | |
~Guild () | |
bool | Create (Player *pLeader, std::string_view name) |
void | Disband () |
uint32 | GetId () const |
ObjectGuid | GetLeaderGUID () const |
std::string const & | GetName () const |
std::string const & | GetMOTD () const |
std::string const & | GetInfo () const |
bool | SetName (std::string_view const &name) |
void | HandleRoster (WorldSession *session) |
void | HandleQuery (WorldSession *session) |
void | HandleSetMOTD (WorldSession *session, std::string_view motd) |
void | HandleSetInfo (WorldSession *session, std::string_view info) |
void | HandleSetEmblem (WorldSession *session, const EmblemInfo &emblemInfo) |
void | HandleSetLeader (WorldSession *session, std::string_view name) |
void | HandleSetBankTabInfo (WorldSession *session, uint8 tabId, std::string_view name, std::string_view icon) |
void | HandleSetMemberNote (WorldSession *session, std::string_view name, std::string_view note, bool officer) |
void | HandleSetRankInfo (WorldSession *session, uint8 rankId, std::string_view name, uint32 rights, uint32 moneyPerDay, std::array< GuildBankRightsAndSlots, GUILD_BANK_MAX_TABS > const &rightsAndSlots) |
void | HandleBuyBankTab (WorldSession *session, uint8 tabId) |
void | HandleInviteMember (WorldSession *session, std::string const &name) |
void | HandleAcceptMember (WorldSession *session) |
void | HandleLeaveMember (WorldSession *session) |
void | HandleRemoveMember (WorldSession *session, std::string_view name) |
void | HandleUpdateMemberRank (WorldSession *session, std::string_view name, bool demote) |
void | HandleAddNewRank (WorldSession *session, std::string_view name) |
void | HandleRemoveRank (WorldSession *session, uint8 rankId) |
void | HandleRemoveLowestRank (WorldSession *session) |
void | HandleMemberDepositMoney (WorldSession *session, uint32 amount) |
bool | HandleMemberWithdrawMoney (WorldSession *session, uint32 amount, bool repair=false) |
void | HandleMemberLogout (WorldSession *session) |
void | HandleDisband (WorldSession *session) |
void | UpdateMemberData (Player *player, uint8 dataid, uint32 value) |
void | OnPlayerStatusChange (Player *player, uint32 flag, bool state) |
void | SendInfo (WorldSession *session) const |
void | SendEventLog (WorldSession *session) const |
void | SendBankLog (WorldSession *session, uint8 tabId) const |
void | SendBankTabsInfo (WorldSession *session, bool showTabs=false) |
void | SendBankTabData (WorldSession *session, uint8 tabId, bool sendAllSlots) const |
void | SendBankTabText (WorldSession *session, uint8 tabId) const |
void | SendPermissions (WorldSession *session) |
void | SendMoneyInfo (WorldSession *session) const |
void | SendLoginInfo (WorldSession *session) |
bool | LoadFromDB (Field *fields) |
void | LoadRankFromDB (Field *fields) |
bool | LoadMemberFromDB (Field *fields) |
bool | LoadEventLogFromDB (Field *fields) |
void | LoadBankRightFromDB (Field *fields) |
void | LoadBankTabFromDB (Field *fields) |
bool | LoadBankEventLogFromDB (Field *fields) |
bool | LoadBankItemFromDB (Field *fields) |
bool | Validate () |
void | BroadcastToGuild (WorldSession *session, bool officerOnly, std::string_view msg, uint32 language=LANG_UNIVERSAL) const |
void | BroadcastPacketToRank (WorldPacket const *packet, uint8 rankId) const |
void | BroadcastPacket (WorldPacket const *packet) const |
void | MassInviteToEvent (WorldSession *session, uint32 minLevel, uint32 maxLevel, uint32 minRank) |
template<class Do > | |
void | BroadcastWorker (Do &_do, Player *except=nullptr) |
bool | AddMember (ObjectGuid guid, uint8 rankId=GUILD_RANK_NONE) |
void | DeleteMember (ObjectGuid guid, bool isDisbanding=false, bool isKicked=false, bool canDeleteGuild=false) |
bool | ChangeMemberRank (ObjectGuid guid, uint8 newRank) |
void | SwapItems (Player *player, uint8 tabId, uint8 slotId, uint8 destTabId, uint8 destSlotId, uint32 splitedAmount) |
void | SwapItemsWithInventory (Player *player, bool toChar, uint8 tabId, uint8 slotId, uint8 playerBag, uint8 playerSlotId, uint32 splitedAmount) |
uint64 | GetTotalBankMoney () const |
uint32 | GetMemberCount () const |
time_t | GetCreatedDate () const |
void | SetBankTabText (uint8 tabId, std::string_view text) |
void | ResetTimes () |
bool | ModifyBankMoney (CharacterDatabaseTransaction trans, const uint64 &amount, bool add) |
uint32 | GetMemberSize () const |
Static Public Member Functions | |
static void | SendCommandResult (WorldSession *session, GuildCommandType type, GuildCommandError errCode, std::string_view param={}) |
static void | SendSaveEmblemResult (WorldSession *session, GuildEmblemError errCode) |
Protected Attributes | |
uint32 | m_id |
std::string | m_name |
ObjectGuid | m_leaderGuid |
std::string | m_motd |
std::string | m_info |
time_t | m_createdDate |
EmblemInfo | m_emblemInfo |
uint32 | m_accountsNumber |
uint64 | m_bankMoney |
std::vector< RankInfo > | m_ranks |
std::unordered_map< uint32, Member > | m_members |
std::vector< BankTab > | m_bankTabs |
LogHolder< EventLogEntry > | m_eventLog |
std::array< LogHolder< BankEventLogEntry >, GUILD_BANK_MAX_TABS+1 > | m_bankEventLog = {} |
Guild::Guild | ( | ) |
Guild::~Guild | ( | ) |
References _DeleteBankItems().
|
private |
References BroadcastPacket(), LOG_DEBUG, WorldPackets::Guild::GuildEvent::Type, and WorldPackets::Guild::GuildEvent::Write().
Referenced by AddMember(), DeleteMember(), Disband(), HandleAddNewRank(), HandleBuyBankTab(), HandleLeaveMember(), HandleMemberDepositMoney(), HandleMemberLogout(), HandleMemberWithdrawMoney(), HandleRemoveMember(), HandleRemoveRank(), HandleSetBankTabInfo(), HandleSetLeader(), HandleSetMOTD(), HandleSetRankInfo(), HandleUpdateMemberRank(), ResetTimes(), and SendLoginInfo().
|
private |
References _CreateRank(), CHAR_DEL_GUILD_BANK_RIGHTS, CHAR_DEL_GUILD_RANKS, CharacterDatabase, GR_RIGHT_ALL, GR_RIGHT_GCHATLISTEN, GR_RIGHT_GCHATSPEAK, LANG_GUILD_INITIATE, LANG_GUILD_MASTER, LANG_GUILD_MEMBER, LANG_GUILD_OFFICER, LANG_GUILD_VETERAN, m_id, PreparedStatementBase::SetData(), and sObjectMgr.
Referenced by Create(), and Validate().
|
private |
References _GetPurchasedTabsSize(), CHAR_DEL_GUILD_BANK_TAB, CHAR_INS_GUILD_BANK_TAB, CharacterDatabase, m_bankTabs, m_id, m_ranks, and PreparedStatementBase::SetData().
Referenced by Create(), and HandleBuyBankTab().
|
private |
References _GetPurchasedTabsSize(), _GetRanksSize(), CharacterDatabase, Guild::RankInfo::CreateMissingTabsIfNeeded(), GUILD_RANKS_MAX_COUNT, m_id, m_ranks, and Guild::RankInfo::SaveToDB().
Referenced by _CreateDefaultGuildRanks(), and HandleAddNewRank().
|
private |
References _GetPurchasedTabsSize(), and m_bankTabs.
|
inlineprivate |
References CHAR_DEL_GUILD_MEMBER, CharacterDatabase, and PreparedStatementBase::SetData().
Referenced by DeleteMember(), and LoadMemberFromDB().
|
private |
References Guild::MoveItemData::CanStore(), CharacterDatabase, Item::GetCount(), Guild::MoveItemData::GetItem(), Guild::MoveItemData::LogAction(), Guild::MoveItemData::LogBankEvent(), Guild::MoveItemData::RemoveItem(), and Guild::MoveItemData::StoreItem().
Referenced by _MoveItems().
References GetBankTab().
|
inlineprivate |
References m_ranks.
Referenced by AddMember(), ChangeMemberRank(), HandleRemoveLowestRank(), HandleUpdateMemberRank(), and Validate().
References _GetRankBankMoneyPerDay(), _GetRankRights(), Guild::Member::GetBankWithdrawValue(), Guild::Member::GetRankId(), GR_GUILDMASTER, GR_RIGHT_WITHDRAW_GOLD, GR_RIGHT_WITHDRAW_REPAIR, GUILD_BANK_MAX_TABS, and GUILD_WITHDRAW_MONEY_UNLIMITED.
Referenced by HandleMemberWithdrawMoney(), and SendMoneyInfo().
References _GetRankBankTabRights(), _GetRankBankTabSlotsPerDay(), Guild::Member::GetBankWithdrawValue(), Guild::Member::GetRankId(), GR_GUILDMASTER, GUILD_BANK_RIGHT_VIEW_TAB, and GUILD_WITHDRAW_SLOT_UNLIMITED.
Referenced by _SendBankList(), and SendPermissions().
|
inlineprivate |
References m_bankTabs.
Referenced by _CreateNewBankTab(), _CreateRank(), _DeleteBankItems(), _GetRankBankTabSlotsPerDay(), _SendBankList(), _SetRankBankTabRightsAndSlots(), HandleBuyBankTab(), LoadBankEventLogFromDB(), LoadBankItemFromDB(), LoadBankTabFromDB(), SendBankLog(), SendBankTabData(), SendPermissions(), SwapItems(), SwapItemsWithInventory(), and Validate().
References GetRankInfo().
Referenced by _GetMemberRemainingMoney(), and SendPermissions().
References GetRankInfo().
Referenced by _GetMemberRemainingSlots(), _MemberHasTabRights(), and SendPermissions().
References _GetPurchasedTabsSize(), and GetRankInfo().
Referenced by _GetMemberRemainingSlots(), and _UpdateMemberWithdrawSlots().
|
inlineprivate |
References GetRankInfo().
Referenced by HandleUpdateMemberRank().
References GetRankInfo().
Referenced by _GetMemberRemainingMoney(), _HasRankRight(), HandleMemberWithdrawMoney(), and SendPermissions().
|
inlineprivate |
References m_ranks.
Referenced by _CreateRank(), GetRankInfo(), HandleAddNewRank(), HandleQuery(), HandleRemoveRank(), and Validate().
References _GetRankRights(), Object::GetGUID(), GetMember(), and GR_RIGHT_EMPTY.
Referenced by BroadcastToGuild(), HandleInviteMember(), HandleRemoveMember(), HandleRoster(), HandleSetInfo(), HandleSetMemberNote(), HandleSetMOTD(), and HandleUpdateMemberRank().
|
private |
References Object::GetGUID(), GetMember(), GR_GUILDMASTER, and m_leaderGuid.
Referenced by HandleAddNewRank(), HandleDisband(), HandleLeaveMember(), HandleRemoveRank(), HandleSetEmblem(), HandleSetLeader(), and HandleSetRankInfo().
|
private |
References Guild::LogHolder< Entry >::AddEvent(), ObjectGuid::GetCounter(), Guild::LogHolder< Entry >::GetNextGUID(), GUILD_BANK_LOG_MOVE_ITEM, GUILD_BANK_MAX_TABS, GUILD_BANK_MONEY_LOGS_TAB, Guild::BankEventLogEntry::IsMoneyEvent(), m_bankEventLog, m_id, and sScriptMgr.
Referenced by HandleMemberDepositMoney(), and HandleMemberWithdrawMoney().
|
inlineprivate |
References CharacterDatabase, ObjectGuid::GetCounter(), m_eventLog, m_id, and sScriptMgr.
Referenced by AddMember(), HandleInviteMember(), HandleLeaveMember(), HandleRemoveMember(), and HandleUpdateMemberRank().
|
inlineprivate |
References _GetRankBankTabRights(), GetMember(), GR_GUILDMASTER, and m_leaderGuid.
Referenced by _SendBankContent(), and _SendBankList().
|
private |
References CHAR_UPD_GUILD_BANK_MONEY, CharacterDatabase, m_bankMoney, m_id, and PreparedStatementBase::SetData().
Referenced by HandleMemberDepositMoney(), HandleMemberWithdrawMoney(), and ModifyBankMoney().
|
private |
References _DoItemsMove(), _SendBankContentUpdate(), Guild::MoveItemData::CheckItem(), Guild::MoveItemData::CloneItem(), Guild::MoveItemData::HasStoreRights(), Guild::MoveItemData::HasWithdrawRights(), and Guild::MoveItemData::InitItem().
Referenced by SwapItems(), and SwapItemsWithInventory().
|
inlineprivate |
References GetBankTab().
|
private |
References _MemberHasTabRights(), _SendBankList(), Object::GetGUID(), WorldSession::GetPlayer(), and GUILD_BANK_RIGHT_VIEW_TAB.
Referenced by SendBankTabData().
|
private |
References _SendBankContentUpdate(), ASSERT, Guild::MoveItemData::CopySlots(), Guild::MoveItemData::GetContainer(), Guild::MoveItemData::GetSlotId(), and Guild::MoveItemData::IsBank().
Referenced by _MoveItems(), and _SendBankContentUpdate().
References _SendBankList().
|
private |
References _GetMemberRemainingSlots(), _GetPurchasedTabsSize(), _MemberHasTabRights(), WorldPackets::Guild::GuildBankItemInfo::Charges, WorldPackets::Guild::GuildBankItemInfo::Count, WorldPackets::Guild::GuildBankItemInfo::EnchantmentID, WorldPackets::Guild::GuildBankItemInfo::Flags, WorldPackets::Guild::GuildBankQueryResults::FullUpdate, GetBankTab(), Object::GetGUID(), GetMember(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetPlayerInfo(), WorldPackets::Packet::GetRawPacket(), GUILD_BANK_MAX_SLOTS, GUILD_BANK_RIGHT_VIEW_TAB, WorldPackets::Guild::GuildBankTabInfo::Icon, ITEM_FIELD_FLAGS, WorldPackets::Guild::GuildBankItemInfo::ItemID, WorldPackets::Guild::GuildBankQueryResults::ItemInfo, LOG_DEBUG, m_bankMoney, m_bankTabs, m_members, MAX_GEM_SOCKETS, WorldPackets::Guild::GuildBankQueryResults::Money, WorldPackets::Guild::GuildBankTabInfo::Name, PERM_ENCHANTMENT_SLOT, WorldPackets::Guild::GuildBankItemInfo::RandomPropertiesID, WorldPackets::Guild::GuildBankItemInfo::RandomPropertiesSeed, Player::SendDirectMessage(), WorldSession::SendPacket(), WorldPackets::Guild::GuildBankQueryResults::SetWithdrawalsRemaining(), WorldPackets::Guild::GuildBankItemInfo::Slot, SOCK_ENCHANTMENT_SLOT, WorldPackets::Guild::GuildBankItemInfo::SocketEnchant, WorldPackets::Guild::GuildBankSocketEnchant::SocketEnchantID, WorldPackets::Guild::GuildBankSocketEnchant::SocketIndex, sScriptMgr, WorldPackets::Guild::GuildBankQueryResults::Tab, WorldPackets::Guild::GuildBankQueryResults::TabInfo, WorldPackets::Guild::GuildBankQueryResults::WithdrawalsRemaining, and WorldPackets::Guild::GuildBankQueryResults::Write().
Referenced by _SendBankContent(), _SendBankContentUpdate(), _SendBankMoneyUpdate(), and SendBankTabsInfo().
|
private |
References _SendBankList().
|
private |
References Guild::Member::ChangeRank(), CHAR_UPD_GUILD_LEADER, CharacterDatabase, ObjectGuid::GetCounter(), Guild::Member::GetGUID(), GR_GUILDMASTER, m_id, m_leaderGuid, and PreparedStatementBase::SetData().
Referenced by DeleteMember(), HandleSetLeader(), and Validate().
References GetRankInfo().
Referenced by HandleSetRankInfo().
|
private |
References _GetPurchasedTabsSize(), GetRankInfo(), and GuildBankRightsAndSlots::GetTabId().
Referenced by HandleSetRankInfo(), and LoadBankRightFromDB().
|
private |
References m_accountsNumber, and m_members.
Referenced by AddMember(), DeleteMember(), and Validate().
|
inlineprivate |
References _GetRankBankTabSlotsPerDay(), GetMember(), and GR_GUILDMASTER.
bool Guild::AddMember | ( | ObjectGuid | guid, |
uint8 | rankId = GUILD_RANK_NONE |
||
) |
References _BroadcastEvent(), _GetLowestRankId(), _LogEvent(), _UpdateAccountsNumber(), CHAR_SEL_CHAR_DATA_FOR_GUILD, CharacterDatabase, Guild::Member::CheckStats(), ObjectAccessor::FindConnectedPlayer(), GE_JOINED, Field::Get(), ObjectGuid::GetCounter(), Player::GetGuildId(), WorldObject::GetName(), Player::GetSession(), GUILD_CHARTER_TYPE, GUILD_EVENT_LOG_JOIN_GUILD, GUILD_RANK_NONE, LOG_ERROR, m_id, m_members, m_name, Player::RemovePetitionsAndSigns(), Guild::Member::ResetFlags(), Guild::Member::SaveToDB(), sCharacterCache, SendLoginInfo(), PreparedStatementBase::SetData(), Player::SetGuildIdInvited(), Player::SetInGuild(), Player::SetRank(), Guild::Member::SetStats(), sScriptMgr, and ObjectGuid::ToString().
Referenced by Create(), HandleAcceptMember(), guild_commandscript::HandleGuildInviteCommand(), and WorldSession::HandleTurnInPetitionOpcode().
void Guild::BroadcastPacket | ( | WorldPacket const * | packet | ) | const |
References m_members.
Referenced by _BroadcastEvent(), and Guild::BankTab::SendText().
void Guild::BroadcastPacketToRank | ( | WorldPacket const * | packet, |
uint8 | rankId | ||
) | const |
void Guild::BroadcastToGuild | ( | WorldSession * | session, |
bool | officerOnly, | ||
std::string_view | msg, | ||
uint32 | language = LANG_UNIVERSAL |
||
) | const |
References _HasRankRight(), ChatHandler::BuildChatPacket(), CHAT_MSG_GUILD, CHAT_MSG_OFFICER, Object::GetGUID(), WorldSession::GetPlayer(), GR_RIGHT_GCHATLISTEN, GR_RIGHT_GCHATSPEAK, GR_RIGHT_OFFCHATLISTEN, GR_RIGHT_OFFCHATSPEAK, and m_members.
|
inline |
References m_members.
Referenced by AchievementMgr::SendAchievementEarned().
bool Guild::ChangeMemberRank | ( | ObjectGuid | guid, |
uint8 | newRank | ||
) |
References _GetLowestRankId(), CHAR_UPD_GUILD_LEADER, CharacterDatabase, ObjectGuid::GetCounter(), GetMember(), GR_GUILDMASTER, m_id, m_leaderGuid, and PreparedStatementBase::SetData().
Referenced by guild_commandscript::HandleGuildRankCommand().
bool Guild::Create | ( | Player * | pLeader, |
std::string_view | name | ||
) |
References _CreateDefaultGuildRanks(), _CreateNewBankTab(), AddMember(), CHAR_DEL_GUILD_MEMBERS, CHAR_INS_GUILD, CharacterDatabase, CONFIG_GUILD_BANK_INITIAL_TABS, EmblemInfo::GetBackgroundColor(), EmblemInfo::GetBorderColor(), EmblemInfo::GetBorderStyle(), EmblemInfo::GetColor(), ObjectGuid::GetCounter(), GameTime::GetGameTime(), Object::GetGUID(), WorldObject::GetName(), Player::GetSession(), WorldSession::GetSessionDbLocaleIndex(), EmblemInfo::GetStyle(), GR_GUILDMASTER, LOG_DEBUG, m_bankMoney, m_createdDate, m_emblemInfo, m_id, m_info, m_leaderGuid, m_motd, m_name, PreparedStatementBase::SetData(), sGuildMgr, sScriptMgr, sWorld, and ObjectGuid::ToString().
Referenced by guild_commandscript::HandleGuildCreateCommand(), and WorldSession::HandleTurnInPetitionOpcode().
void Guild::DeleteMember | ( | ObjectGuid | guid, |
bool | isDisbanding = false , |
||
bool | isKicked = false , |
||
bool | canDeleteGuild = false |
||
) |
References _BroadcastEvent(), _DeleteMemberFromDB(), _SetLeaderGUID(), _UpdateAccountsNumber(), Disband(), ObjectGuid::Empty, ObjectAccessor::FindConnectedPlayer(), Guild::Member::FindPlayer(), GE_LEADER_CHANGED, GE_LEFT, ObjectGuid::GetCounter(), Guild::Member::GetName(), Guild::Member::GetRankId(), GR_GUILDMASTER, m_leaderGuid, m_members, sCharacterCache, Player::SetInGuild(), Player::SetRank(), and sScriptMgr.
Referenced by Disband(), guild_commandscript::HandleGuildUninviteCommand(), HandleLeaveMember(), HandleRemoveMember(), and Validate().
void Guild::Disband | ( | ) |
References _BroadcastEvent(), _DeleteBankItems(), CHAR_DEL_GUILD, CHAR_DEL_GUILD_BANK_EVENTLOGS, CHAR_DEL_GUILD_BANK_ITEMS, CHAR_DEL_GUILD_BANK_RIGHTS, CHAR_DEL_GUILD_BANK_TABS, CHAR_DEL_GUILD_EVENTLOGS, CHAR_DEL_GUILD_RANKS, CharacterDatabase, DeleteMember(), GE_DISBANDED, m_id, m_members, PreparedStatementBase::SetData(), sGuildMgr, and sScriptMgr.
Referenced by DeleteMember(), HandleDisband(), guild_commandscript::HandleGuildDeleteCommand(), HandleLeaveMember(), and Validate().
References m_bankTabs.
Referenced by _GetItem(), _RemoveItem(), _SendBankList(), HandleSetBankTabInfo(), SendBankTabText(), and SetBankTabText().
References m_bankTabs.
|
inline |
|
inline |
References m_id.
Referenced by GuildMgr::AddGuild(), guild_commandscript::HandleGuildInfoCommand(), HandleLeaveMember(), HandleMemberDepositMoney(), HandleMemberWithdrawMoney(), LoadMemberFromDB(), and SetName().
|
inline |
|
inline |
References m_leaderGuid.
Referenced by HandleAcceptMember(), guild_commandscript::HandleGuildInfoCommand(), HandleMemberDepositMoney(), and HandleMemberWithdrawMoney().
|
inline |
References ObjectGuid::GetCounter(), and m_members.
|
inline |
References ObjectGuid::GetCounter(), and m_members.
Referenced by _HasRankRight(), _IsLeader(), _MemberHasTabRights(), _SendBankList(), _UpdateMemberWithdrawSlots(), ChangeMemberRank(), HandleBuyBankTab(), HandleMemberLogout(), HandleMemberWithdrawMoney(), WorldSession::HandlePlayerLoginFromDB(), HandleRemoveMember(), HandleSetLeader(), HandleSetMemberNote(), HandleUpdateMemberRank(), OnPlayerStatusChange(), SendBankTabsInfo(), SendLoginInfo(), SendMoneyInfo(), SendPermissions(), UpdateMemberData(), and Validate().
|
inline |
|
inline |
References m_members.
Referenced by guild_commandscript::HandleGuildInfoCommand(), HandleInviteMember(), HandleMemberDepositMoney(), and HandleMemberWithdrawMoney().
|
inline |
|
inline |
References _GetRanksSize(), and m_ranks.
References _GetRanksSize(), and m_ranks.
Referenced by _GetRankBankMoneyPerDay(), _GetRankBankTabRights(), _GetRankBankTabSlotsPerDay(), _GetRankName(), _GetRankRights(), _SetRankBankMoneyPerDay(), _SetRankBankTabRightsAndSlots(), HandleSetRankInfo(), and Validate().
|
inline |
References m_bankMoney.
Referenced by guild_commandscript::HandleGuildInfoCommand(), HandleMemberDepositMoney(), and HandleMemberWithdrawMoney().
void Guild::HandleAcceptMember | ( | WorldSession * | session | ) |
References AddMember(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, Object::GetGUID(), GetLeaderGUID(), WorldSession::GetPlayer(), Player::GetTeamId(), sCharacterCache, and sWorld.
void Guild::HandleAddNewRank | ( | WorldSession * | session, |
std::string_view | name | ||
) |
References _BroadcastEvent(), _CreateRank(), _GetRanksSize(), _IsLeader(), ObjectGuid::Empty, GE_RANK_UPDATED, WorldSession::GetPlayer(), GR_RIGHT_GCHATLISTEN, GR_RIGHT_GCHATSPEAK, GUILD_RANKS_MAX_COUNT, and m_ranks.
void Guild::HandleBuyBankTab | ( | WorldSession * | session, |
uint8 | tabId | ||
) |
Hack to force client to update permissions
References _BroadcastEvent(), _CreateNewBankTab(), _GetGuildBankTabPrice(), _GetPurchasedTabsSize(), GE_BANK_TAB_PURCHASED, Object::GetGUID(), GetMember(), WorldSession::GetPlayer(), GUILD_BANK_MAX_TABS, Player::HasEnoughMoney(), Player::ModifyMoney(), and SendPermissions().
void Guild::HandleDisband | ( | WorldSession * | session | ) |
References _IsLeader(), Disband(), WorldSession::GetPlayer(), and LOG_DEBUG.
void Guild::HandleInviteMember | ( | WorldSession * | session, |
std::string const & | name | ||
) |
References _HasRankRight(), _LogEvent(), CONFIG_ALLOW_TWO_SIDE_INTERACTION_GUILD, ERR_ALREADY_IN_GUILD_S, ERR_ALREADY_INVITED_TO_GUILD_S, ERR_GUILD_COMMAND_SUCCESS, ERR_GUILD_INTERNAL, ERR_GUILD_NOT_ALLIED, ERR_GUILD_PERMISSIONS, ERR_GUILD_PLAYER_NOT_FOUND_S, ObjectAccessor::FindPlayerByName(), Object::GetGUID(), Player::GetGuild(), Player::GetGuildId(), Player::GetGuildIdInvited(), GetMemberCount(), WorldObject::GetName(), GetName(), WorldSession::GetPlayer(), Player::GetSession(), Player::GetSocial(), Player::GetTeamId(), GR_RIGHT_INVITE, GUILD_COMMAND_INVITE, GUILD_EVENT_LOG_INVITE_PLAYER, WorldPackets::Guild::GuildInvite::GuildName, PlayerSocial::HasIgnore(), WorldPackets::Guild::GuildInvite::InviterName, LOG_DEBUG, m_id, ChatHandler::PSendSysMessage(), sConfigMgr, SendCommandResult(), Player::SendDirectMessage(), Player::SetGuildIdInvited(), sWorld, and WorldPackets::Guild::GuildInvite::Write().
void Guild::HandleLeaveMember | ( | WorldSession * | session | ) |
References _BroadcastEvent(), _IsLeader(), _LogEvent(), DeleteMember(), Disband(), ERR_GUILD_COMMAND_SUCCESS, ERR_GUILD_LEADER_LEAVE, GE_LEFT, Object::GetGUID(), GetId(), WorldObject::GetName(), WorldSession::GetPlayer(), GUILD_COMMAND_QUIT, GUILD_EVENT_LOG_LEAVE_GUILD, m_members, m_name, sCalendarMgr, and SendCommandResult().
void Guild::HandleMemberDepositMoney | ( | WorldSession * | session, |
uint32 | amount | ||
) |
References _BroadcastEvent(), _LogBankEvent(), _ModifyBankMoney(), Acore::Impl::ByteArrayToHexStr(), CharacterDatabase, ObjectGuid::Empty, ERR_GUILD_BANK_FULL, GE_BANK_MONEY_SET, WorldSession::GetAccountId(), ObjectGuid::GetCounter(), Object::GetGUID(), GetId(), GetLeaderGUID(), Unit::GetLevel(), GetMemberCount(), WorldObject::GetName(), GetName(), WorldSession::GetPlayer(), WorldSession::GetRemoteAddress(), GetTotalBankMoney(), GOLD, GUILD_BANK_LOG_DEPOSIT_MONEY, GUILD_BANK_MONEY_LIMIT, GUILD_COMMAND_MOVE_ITEM, m_bankMoney, Player::ModifyMoney(), Player::SaveGoldToDB(), SendCommandResult(), and sScriptMgr.
void Guild::HandleMemberLogout | ( | WorldSession * | session | ) |
References _BroadcastEvent(), GE_SIGNED_OFF, Object::GetGUID(), GetMember(), WorldObject::GetName(), and WorldSession::GetPlayer().
bool Guild::HandleMemberWithdrawMoney | ( | WorldSession * | session, |
uint32 | amount, | ||
bool | repair = false |
||
) |
References _BroadcastEvent(), _GetMemberRemainingMoney(), _GetRankRights(), _LogBankEvent(), _ModifyBankMoney(), Acore::Impl::ByteArrayToHexStr(), CharacterDatabase, ObjectGuid::Empty, GE_BANK_MONEY_SET, WorldSession::GetAccountId(), Object::GetGUID(), GetId(), GetLeaderGUID(), Unit::GetLevel(), GetMember(), GetMemberCount(), WorldObject::GetName(), GetName(), WorldSession::GetPlayer(), Guild::Member::GetRankId(), WorldSession::GetRemoteAddress(), GetTotalBankMoney(), GOLD, GR_RIGHT_WITHDRAW_REPAIR, GUILD_BANK_LOG_REPAIR_MONEY, GUILD_BANK_LOG_WITHDRAW_MONEY, GUILD_BANK_MAX_TABS, m_bankMoney, MAX_MONEY_AMOUNT, Player::ModifyMoney(), Player::SaveGoldToDB(), sScriptMgr, and Guild::Member::UpdateBankWithdrawValue().
Referenced by Player::DurabilityRepair().
void Guild::HandleQuery | ( | WorldSession * | session | ) |
References _GetRanksSize(), WorldPackets::Guild::GuildInfo::BackgroundColor, WorldPackets::Guild::GuildInfo::BorderColor, WorldPackets::Guild::GuildInfo::BorderStyle, WorldPackets::Guild::GuildInfo::EmblemColor, WorldPackets::Guild::GuildInfo::EmblemStyle, EmblemInfo::GetBackgroundColor(), EmblemInfo::GetBorderColor(), EmblemInfo::GetBorderStyle(), EmblemInfo::GetColor(), WorldSession::GetPlayerInfo(), EmblemInfo::GetStyle(), WorldPackets::Guild::QueryGuildInfoResponse::GuildId, WorldPackets::Guild::GuildInfo::GuildName, WorldPackets::Guild::QueryGuildInfoResponse::Info, LOG_DEBUG, m_emblemInfo, m_id, m_name, m_ranks, WorldPackets::Guild::GuildInfo::RankCount, WorldPackets::Guild::GuildInfo::Ranks, WorldSession::SendPacket(), and WorldPackets::Guild::QueryGuildInfoResponse::Write().
Referenced by HandleSetEmblem().
void Guild::HandleRemoveLowestRank | ( | WorldSession * | session | ) |
References _GetLowestRankId(), and HandleRemoveRank().
void Guild::HandleRemoveMember | ( | WorldSession * | session, |
std::string_view | name | ||
) |
References _BroadcastEvent(), _HasRankRight(), _LogEvent(), DeleteMember(), ObjectGuid::Empty, ERR_GUILD_LEADER_LEAVE, ERR_GUILD_PERMISSIONS, ERR_GUILD_RANK_TOO_HIGH_S, GE_REMOVED, Object::GetGUID(), GetMember(), WorldObject::GetName(), WorldSession::GetPlayer(), Guild::Member::GetRankId(), GR_GUILDMASTER, GR_RIGHT_REMOVE, GUILD_COMMAND_REMOVE, GUILD_EVENT_LOG_UNINVITE_PLAYER, Guild::Member::IsRankNotLower(), and SendCommandResult().
void Guild::HandleRemoveRank | ( | WorldSession * | session, |
uint8 | rankId | ||
) |
References _BroadcastEvent(), _GetRanksSize(), _IsLeader(), CHAR_DEL_GUILD_BANK_RIGHTS_FOR_RANK, CHAR_DEL_GUILD_LOWEST_RANK, CharacterDatabase, ObjectGuid::Empty, GE_RANK_DELETED, WorldSession::GetPlayer(), GUILD_RANKS_MIN_COUNT, m_id, m_ranks, and PreparedStatementBase::SetData().
Referenced by HandleRemoveLowestRank().
void Guild::HandleRoster | ( | WorldSession * | session | ) |
References _HasRankRight(), WorldPackets::Guild::GuildRosterMemberData::AreaID, WorldPackets::Guild::GuildRosterMemberData::ClassID, DAY, WorldPackets::Guild::GuildRankData::Flags, WorldPackets::Guild::GuildRosterMemberData::Gender, GameTime::GetGameTime(), WorldSession::GetPlayer(), WorldSession::GetPlayerInfo(), GR_RIGHT_VIEWOFFNOTE, WorldPackets::Guild::GuildRosterMemberData::Guid, GUILD_BANK_MAX_TABS, WorldPackets::Guild::GuildRoster::InfoText, WorldPackets::Guild::GuildRosterMemberData::LastSave, WorldPackets::Guild::GuildRosterMemberData::Level, LOG_DEBUG, m_info, m_members, m_motd, m_ranks, WorldPackets::Guild::GuildRoster::MemberData, WorldPackets::Guild::GuildRosterMemberData::Name, WorldPackets::Guild::GuildRosterMemberData::Note, WorldPackets::Guild::GuildRosterMemberData::OfficerNote, WorldPackets::Guild::GuildRoster::RankData, WorldPackets::Guild::GuildRosterMemberData::RankID, WorldSession::SendPacket(), WorldPackets::Guild::GuildRosterMemberData::Status, WorldPackets::Guild::GuildRankData::TabFlags, WorldPackets::Guild::GuildRankData::TabWithdrawItemLimit, WorldPackets::Guild::GuildRoster::WelcomeText, WorldPackets::Guild::GuildRankData::WithdrawGoldLimit, and WorldPackets::Guild::GuildRoster::Write().
Referenced by HandleSetMemberNote(), and SendLoginInfo().
void Guild::HandleSetBankTabInfo | ( | WorldSession * | session, |
uint8 | tabId, | ||
std::string_view | name, | ||
std::string_view | icon | ||
) |
References _BroadcastEvent(), ObjectGuid::Empty, GE_BANK_TAB_UPDATED, GetBankTab(), Guild::BankTab::GetIcon(), Guild::BankTab::GetName(), WorldSession::GetPlayerInfo(), LOG_ERROR, and Guild::BankTab::SetInfo().
void Guild::HandleSetEmblem | ( | WorldSession * | session, |
const EmblemInfo & | emblemInfo | ||
) |
References _IsLeader(), EMBLEM_PRICE, ERR_GUILDEMBLEM_NOTENOUGHMONEY, ERR_GUILDEMBLEM_NOTGUILDMASTER, ERR_GUILDEMBLEM_SUCCESS, WorldSession::GetPlayer(), HandleQuery(), Player::HasEnoughMoney(), m_emblemInfo, m_id, Player::ModifyMoney(), EmblemInfo::SaveToDB(), and SendSaveEmblemResult().
void Guild::HandleSetInfo | ( | WorldSession * | session, |
std::string_view | info | ||
) |
References _HasRankRight(), CHAR_UPD_GUILD_INFO, CharacterDatabase, WorldSession::GetPlayer(), GR_RIGHT_MODIFY_GUILD_INFO, m_id, m_info, PreparedStatementBase::SetData(), and sScriptMgr.
void Guild::HandleSetLeader | ( | WorldSession * | session, |
std::string_view | name | ||
) |
References _BroadcastEvent(), _IsLeader(), _SetLeaderGUID(), ObjectGuid::Empty, ERR_GUILD_PERMISSIONS, GE_LEADER_CHANGED, Object::GetGUID(), GetMember(), WorldObject::GetName(), WorldSession::GetPlayer(), GR_OFFICER, GUILD_COMMAND_CHANGE_LEADER, and SendCommandResult().
void Guild::HandleSetMemberNote | ( | WorldSession * | session, |
std::string_view | name, | ||
std::string_view | note, | ||
bool | officer | ||
) |
References _HasRankRight(), ERR_GUILD_PERMISSIONS, GetMember(), WorldSession::GetPlayer(), GR_RIGHT_EOFFNOTE, GR_RIGHT_EPNOTE, GUILD_COMMAND_PUBLIC_NOTE, HandleRoster(), and SendCommandResult().
void Guild::HandleSetMOTD | ( | WorldSession * | session, |
std::string_view | motd | ||
) |
References _BroadcastEvent(), _HasRankRight(), CHAR_UPD_GUILD_MOTD, CharacterDatabase, ObjectGuid::Empty, ERR_GUILD_PERMISSIONS, GE_MOTD, WorldSession::GetPlayer(), GR_RIGHT_SETMOTD, GUILD_COMMAND_EDIT_MOTD, m_id, m_motd, SendCommandResult(), PreparedStatementBase::SetData(), and sScriptMgr.
void Guild::HandleSetRankInfo | ( | WorldSession * | session, |
uint8 | rankId, | ||
std::string_view | name, | ||
uint32 | rights, | ||
uint32 | moneyPerDay, | ||
std::array< GuildBankRightsAndSlots, GUILD_BANK_MAX_TABS > const & | rightsAndSlots | ||
) |
References _BroadcastEvent(), _IsLeader(), _SetRankBankMoneyPerDay(), _SetRankBankTabRightsAndSlots(), ObjectGuid::Empty, ERR_GUILD_PERMISSIONS, GE_RANK_UPDATED, WorldSession::GetPlayer(), GetRankInfo(), GUILD_COMMAND_CHANGE_RANK, LOG_DEBUG, m_ranks, and SendCommandResult().
Referenced by WorldSession::HandleGuildRankOpcode().
void Guild::HandleUpdateMemberRank | ( | WorldSession * | session, |
std::string_view | name, | ||
bool | demote | ||
) |
References _BroadcastEvent(), _GetLowestRankId(), _GetRankName(), _HasRankRight(), _LogEvent(), ObjectGuid::Empty, ERR_GUILD_NAME_INVALID, ERR_GUILD_PERMISSIONS, ERR_GUILD_RANK_TOO_HIGH_S, ERR_GUILD_RANK_TOO_LOW_S, GE_DEMOTION, GE_PROMOTION, Object::GetGUID(), GetMember(), WorldObject::GetName(), WorldSession::GetPlayer(), Guild::Member::GetRankId(), GR_RIGHT_DEMOTE, GR_RIGHT_PROMOTE, GUILD_COMMAND_DEMOTE, GUILD_COMMAND_PROMOTE, GUILD_EVENT_LOG_DEMOTE_PLAYER, GUILD_EVENT_LOG_PROMOTE_PLAYER, and SendCommandResult().
bool Guild::LoadBankEventLogFromDB | ( | Field * | fields | ) |
References _GetPurchasedTabsSize(), Guild::LogHolder< Entry >::CanInsert(), Field::Get(), GUILD_BANK_MAX_TABS, GUILD_BANK_MONEY_LOGS_TAB, Guild::BankEventLogEntry::IsMoneyEvent(), Guild::LogHolder< Entry >::LoadEvent(), LOG_ERROR, m_bankEventLog, and m_id.
bool Guild::LoadBankItemFromDB | ( | Field * | fields | ) |
References _GetPurchasedTabsSize(), Field::Get(), LOG_ERROR, and m_bankTabs.
void Guild::LoadBankRightFromDB | ( | Field * | fields | ) |
References _SetRankBankTabRightsAndSlots().
void Guild::LoadBankTabFromDB | ( | Field * | fields | ) |
References _GetPurchasedTabsSize(), Field::Get(), LOG_ERROR, and m_bankTabs.
bool Guild::LoadEventLogFromDB | ( | Field * | fields | ) |
References m_eventLog, and m_id.
bool Guild::LoadFromDB | ( | Field * | fields | ) |
References Field::Get(), GUILD_BANK_MAX_TABS, EmblemInfo::LoadFromDB(), m_bankMoney, m_bankTabs, m_createdDate, m_emblemInfo, m_id, m_info, m_leaderGuid, m_motd, and m_name.
Referenced by GuildMgr::LoadGuilds().
bool Guild::LoadMemberFromDB | ( | Field * | fields | ) |
References _DeleteMemberFromDB(), Field::Get(), GetId(), Guild::Member::LoadFromDB(), LOG_ERROR, m_id, m_members, m_name, and sCharacterCache.
void Guild::LoadRankFromDB | ( | Field * | fields | ) |
References Guild::RankInfo::LoadFromDB(), m_id, and m_ranks.
void Guild::MassInviteToEvent | ( | WorldSession * | session, |
uint32 | minLevel, | ||
uint32 | maxLevel, | ||
uint32 | minRank | ||
) |
References ByteBuffer::appendPackGUID(), CALENDAR_ERROR_INVITES_EXCEEDED, CALENDAR_MAX_INVITES, Object::GetGUID(), WorldSession::GetPlayer(), m_members, ByteBuffer::put(), sCalendarMgr, sCharacterCache, WorldSession::SendPacket(), and SMSG_CALENDAR_FILTER_GUILD.
|
inline |
References _ModifyBankMoney().
References Object::GetGUID(), and GetMember().
void Guild::ResetTimes | ( | ) |
References _BroadcastEvent(), ObjectGuid::Empty, GE_BANK_TAB_AND_MONEY_UPDATED, and m_members.
void Guild::SendBankLog | ( | WorldSession * | session, |
uint8 | tabId | ||
) | const |
References _GetPurchasedTabsSize(), WorldPackets::Guild::GuildBankLogQueryResults::Entry, WorldSession::GetPlayerInfo(), GUILD_BANK_MAX_TABS, LOG_DEBUG, m_bankEventLog, WorldSession::SendPacket(), WorldPackets::Guild::GuildBankLogQueryResults::Tab, and WorldPackets::Guild::GuildBankLogQueryResults::Write().
void Guild::SendBankTabData | ( | WorldSession * | session, |
uint8 | tabId, | ||
bool | sendAllSlots | ||
) | const |
References _GetPurchasedTabsSize(), and _SendBankContent().
void Guild::SendBankTabsInfo | ( | WorldSession * | session, |
bool | showTabs = false |
||
) |
References _SendBankList(), Object::GetGUID(), GetMember(), WorldSession::GetPlayer(), and Guild::Member::SubscribeToGuildBankUpdatePackets().
Referenced by WorldSession::HandleGuildBankerActivate().
void Guild::SendBankTabText | ( | WorldSession * | session, |
uint8 | tabId | ||
) | const |
References GetBankTab().
|
static |
References WorldPackets::Guild::GuildCommandResult::Command, WorldSession::GetPlayerInfo(), LOG_DEBUG, WorldPackets::Guild::GuildCommandResult::Name, WorldPackets::Guild::GuildCommandResult::Result, WorldSession::SendPacket(), and WorldPackets::Guild::GuildCommandResult::Write().
Referenced by WorldSession::HandleGuildBankerActivate(), WorldSession::HandleGuildRosterOpcode(), HandleInviteMember(), HandleLeaveMember(), HandleMemberDepositMoney(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionBuyOpcode(), WorldSession::HandlePetitionRenameOpcode(), WorldSession::HandlePetitionSignOpcode(), HandleRemoveMember(), HandleSetLeader(), HandleSetMemberNote(), HandleSetMOTD(), HandleSetRankInfo(), WorldSession::HandleTurnInPetitionOpcode(), and HandleUpdateMemberRank().
void Guild::SendEventLog | ( | WorldSession * | session | ) | const |
References WorldPackets::Guild::GuildEventLogQueryResults::Entry, WorldSession::GetPlayerInfo(), LOG_DEBUG, m_eventLog, WorldSession::SendPacket(), and WorldPackets::Guild::GuildEventLogQueryResults::Write().
void Guild::SendInfo | ( | WorldSession * | session | ) | const |
References WorldPackets::Guild::GuildInfoResponse::CreateDate, WorldSession::GetPlayerInfo(), WorldPackets::Guild::GuildInfoResponse::GuildName, LOG_DEBUG, m_accountsNumber, m_createdDate, m_members, m_name, WorldPackets::Guild::GuildInfoResponse::NumAccounts, WorldPackets::Guild::GuildInfoResponse::NumMembers, WorldSession::SendPacket(), and WorldPackets::Guild::GuildInfoResponse::Write().
void Guild::SendLoginInfo | ( | WorldSession * | session | ) |
References _BroadcastEvent(), GE_MOTD, GE_SIGNED_ON, Object::GetGUID(), GetMember(), WorldObject::GetName(), WorldSession::GetPlayer(), WorldSession::GetPlayerInfo(), GUILDMEMBER_STATUS_ONLINE, HandleRoster(), LOG_DEBUG, m_motd, WorldPackets::Guild::GuildEvent::Params, WorldSession::SendPacket(), WorldPackets::Guild::GuildEvent::Type, and WorldPackets::Guild::GuildEvent::Write().
Referenced by AddMember(), and WorldSession::HandlePlayerLoginFromDB().
void Guild::SendMoneyInfo | ( | WorldSession * | session | ) | const |
References _GetMemberRemainingMoney(), Object::GetGUID(), GetMember(), WorldSession::GetPlayer(), WorldSession::GetPlayerInfo(), LOG_DEBUG, WorldPackets::Guild::GuildBankRemainingWithdrawMoney::RemainingWithdrawMoney, WorldSession::SendPacket(), and WorldPackets::Guild::GuildBankRemainingWithdrawMoney::Write().
void Guild::SendPermissions | ( | WorldSession * | session | ) |
References _GetMemberRemainingSlots(), _GetPurchasedTabsSize(), _GetRankBankMoneyPerDay(), _GetRankBankTabRights(), _GetRankRights(), WorldPackets::Guild::GuildPermissionsQueryResults::Flags, Object::GetGUID(), GetMember(), WorldSession::GetPlayer(), WorldSession::GetPlayerInfo(), Guild::Member::GetRankId(), GUILD_BANK_MAX_TABS, LOG_DEBUG, WorldPackets::Guild::GuildPermissionsQueryResults::NumTabs, WorldPackets::Guild::GuildPermissionsQueryResults::RankID, WorldSession::SendPacket(), WorldPackets::Guild::GuildPermissionsQueryResults::Tab, Guild::Member::UnsubscribeFromGuildBankUpdatePackets(), WorldPackets::Guild::GuildPermissionsQueryResults::WithdrawGoldLimit, and WorldPackets::Guild::GuildPermissionsQueryResults::Write().
Referenced by HandleBuyBankTab().
|
static |
References WorldPackets::Guild::PlayerSaveGuildEmblem::Error, WorldSession::GetPlayerInfo(), LOG_DEBUG, WorldSession::SendPacket(), and WorldPackets::Guild::PlayerSaveGuildEmblem::Write().
Referenced by WorldSession::HandleSaveGuildEmblemOpcode(), and HandleSetEmblem().
void Guild::SetBankTabText | ( | uint8 | tabId, |
std::string_view | text | ||
) |
References GetBankTab().
bool Guild::SetName | ( | std::string_view const & | name | ) |
References CHAR_UPD_GUILD_NAME, CharacterDatabase, GetId(), ObjectMgr::IsValidCharterName(), m_name, and PreparedStatementBase::SetData().
Referenced by guild_commandscript::HandleGuildRenameCommand().
void Guild::SwapItems | ( | Player * | player, |
uint8 | tabId, | ||
uint8 | slotId, | ||
uint8 | destTabId, | ||
uint8 | destSlotId, | ||
uint32 | splitedAmount | ||
) |
References _GetPurchasedTabsSize(), _MoveItems(), and GUILD_BANK_MAX_SLOTS.
Referenced by WorldSession::HandleGuildBankSwapItems().
void Guild::SwapItemsWithInventory | ( | Player * | player, |
bool | toChar, | ||
uint8 | tabId, | ||
uint8 | slotId, | ||
uint8 | playerBag, | ||
uint8 | playerSlotId, | ||
uint32 | splitedAmount | ||
) |
References _GetPurchasedTabsSize(), _MoveItems(), GUILD_BANK_MAX_SLOTS, and NULL_SLOT.
Referenced by WorldSession::HandleGuildBankSwapItems().
References Object::GetGUID(), GetMember(), GUILD_MEMBER_DATA_LEVEL, GUILD_MEMBER_DATA_ZONEID, and LOG_ERROR.
bool Guild::Validate | ( | ) |
References _CreateDefaultGuildRanks(), _GetLowestRankId(), _GetPurchasedTabsSize(), _GetRanksSize(), _SetLeaderGUID(), _UpdateAccountsNumber(), CharacterDatabase, Guild::RankInfo::CreateMissingTabsIfNeeded(), DEFAULT_LOCALE, DeleteMember(), Disband(), Guild::RankInfo::GetId(), GetMember(), GetRankInfo(), GR_GUILDMASTER, GR_OFFICER, GUILD_RANKS_MAX_COUNT, Guild::Member::IsRank(), LOG_ERROR, m_id, m_leaderGuid, m_members, m_ranks, and sConfigMgr.
Referenced by GuildMgr::LoadGuilds().
|
protected |
Referenced by _UpdateAccountsNumber(), and SendInfo().
|
protected |
Referenced by _LogBankEvent(), LoadBankEventLogFromDB(), and SendBankLog().
|
protected |
|
protected |
|
protected |
Referenced by Create(), GetCreatedDate(), LoadFromDB(), and SendInfo().
|
protected |
Referenced by Create(), HandleQuery(), HandleSetEmblem(), and LoadFromDB().
|
protected |
Referenced by _LogEvent(), LoadEventLogFromDB(), and SendEventLog().
|
protected |
Referenced by _CreateDefaultGuildRanks(), _CreateNewBankTab(), _CreateRank(), _LogBankEvent(), _LogEvent(), _ModifyBankMoney(), _SetLeaderGUID(), AddMember(), ChangeMemberRank(), Create(), Disband(), GetId(), HandleInviteMember(), HandleQuery(), HandleRemoveRank(), HandleSetEmblem(), HandleSetInfo(), HandleSetMOTD(), LoadBankEventLogFromDB(), LoadEventLogFromDB(), LoadFromDB(), LoadMemberFromDB(), LoadRankFromDB(), and Validate().
|
protected |
Referenced by Create(), GetInfo(), HandleRoster(), HandleSetInfo(), and LoadFromDB().
|
protected |
Referenced by _IsLeader(), _MemberHasTabRights(), _SetLeaderGUID(), ChangeMemberRank(), Create(), DeleteMember(), GetLeaderGUID(), LoadFromDB(), and Validate().
Referenced by _SendBankList(), _UpdateAccountsNumber(), AddMember(), BroadcastPacket(), BroadcastPacketToRank(), BroadcastToGuild(), BroadcastWorker(), DeleteMember(), Disband(), GetMember(), GetMemberCount(), GetMemberSize(), HandleLeaveMember(), HandleRoster(), LoadMemberFromDB(), MassInviteToEvent(), ResetTimes(), SendInfo(), and Validate().
|
protected |
Referenced by Create(), GetMOTD(), HandleRoster(), HandleSetMOTD(), LoadFromDB(), and SendLoginInfo().
|
protected |
Referenced by AddMember(), Create(), GetName(), HandleLeaveMember(), HandleQuery(), Guild::RankInfo::LoadFromDB(), Guild::BankTab::LoadFromDB(), LoadFromDB(), LoadMemberFromDB(), Guild::RankInfo::SaveToDB(), SendInfo(), Guild::BankTab::SetInfo(), SetName(), Guild::RankInfo::SetName(), and Guild::Member::SetStats().
|
protected |