AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Guild.cpp File Reference
#include "Guild.h"
#include "Bag.h"
#include "CalendarMgr.h"
#include "CharacterCache.h"
#include "Chat.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "GameTime.h"
#include "GuildMgr.h"
#include "GuildPackets.h"
#include "Language.h"
#include "Log.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "Opcodes.h"
#include "Player.h"
#include "ScriptMgr.h"
#include "SocialMgr.h"
#include "World.h"
#include "WorldSession.h"
#include <boost/iterator/counting_iterator.hpp>

Go to the source code of this file.

Macros

#define MAX_GUILD_BANK_TAB_TEXT_LEN   500
 
#define EMBLEM_PRICE   10 * GOLD
 

Functions

std::string _GetGuildEventString (GuildEvents event)
 
uint32 _GetGuildBankTabPrice (uint8 tabId)
 

Macro Definition Documentation

◆ EMBLEM_PRICE

#define EMBLEM_PRICE   10 * GOLD

◆ MAX_GUILD_BANK_TAB_TEXT_LEN

#define MAX_GUILD_BANK_TAB_TEXT_LEN   500

Function Documentation

◆ _GetGuildBankTabPrice()

uint32 _GetGuildBankTabPrice ( uint8  tabId)
inline
94{
95 switch (tabId)
96 {
97 case 0:
98 return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_0);
99 case 1:
100 return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_1);
101 case 2:
102 return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_2);
103 case 3:
104 return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_3);
105 case 4:
106 return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_4);
107 case 5:
108 return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_5);
109 default:
110 return 0;
111 }
112}
@ CONFIG_GUILD_BANK_TAB_COST_4
Definition: IWorld.h:408
@ CONFIG_GUILD_BANK_TAB_COST_3
Definition: IWorld.h:407
@ CONFIG_GUILD_BANK_TAB_COST_2
Definition: IWorld.h:406
@ CONFIG_GUILD_BANK_TAB_COST_5
Definition: IWorld.h:409
@ CONFIG_GUILD_BANK_TAB_COST_1
Definition: IWorld.h:405
@ CONFIG_GUILD_BANK_TAB_COST_0
Definition: IWorld.h:404
#define sWorld
Definition: World.h:443

References CONFIG_GUILD_BANK_TAB_COST_0, CONFIG_GUILD_BANK_TAB_COST_1, CONFIG_GUILD_BANK_TAB_COST_2, CONFIG_GUILD_BANK_TAB_COST_3, CONFIG_GUILD_BANK_TAB_COST_4, CONFIG_GUILD_BANK_TAB_COST_5, and sWorld.

Referenced by Guild::HandleBuyBankTab().

◆ _GetGuildEventString()

std::string _GetGuildEventString ( GuildEvents  event)
44{
45 switch (event)
46 {
47 case GE_PROMOTION:
48 return "Member promotion";
49 case GE_DEMOTION:
50 return "Member demotion";
51 case GE_MOTD:
52 return "Guild MOTD";
53 case GE_JOINED:
54 return "Member joined";
55 case GE_LEFT:
56 return "Member left";
57 case GE_REMOVED:
58 return "Member removed";
59 case GE_LEADER_IS:
60 return "Leader is";
62 return "Leader changed";
63 case GE_DISBANDED:
64 return "Guild disbanded";
65 case GE_TABARDCHANGE:
66 return "Tabard change";
67 case GE_RANK_UPDATED:
68 return "Rank updated";
69 case GE_RANK_DELETED:
70 return "Rank deleted";
71 case GE_SIGNED_ON:
72 return "Member signed on";
73 case GE_SIGNED_OFF:
74 return "Member signed off";
76 return "Bank bag slots changed";
78 return "Bank tab purchased";
80 return "Bank tab updated";
82 return "Bank money set";
84 return "Bank and money updated";
86 return "Bank tab text changed";
87 default:
88 break;
89 }
90 return "<None>";
91}
@ GE_LEFT
Definition: Guild.h:151
@ GE_LEADER_IS
Definition: Guild.h:153
@ GE_TABARDCHANGE
Definition: Guild.h:156
@ GE_REMOVED
Definition: Guild.h:152
@ GE_JOINED
Definition: Guild.h:150
@ GE_RANK_DELETED
Definition: Guild.h:158
@ GE_GUILDBANKBAGSLOTS_CHANGED
Definition: Guild.h:161
@ GE_PROMOTION
Definition: Guild.h:147
@ GE_BANK_TAB_UPDATED
Definition: Guild.h:163
@ GE_BANK_MONEY_SET
Definition: Guild.h:164
@ GE_DISBANDED
Definition: Guild.h:155
@ GE_BANK_TEXT_CHANGED
Definition: Guild.h:166
@ GE_SIGNED_OFF
Definition: Guild.h:160
@ GE_MOTD
Definition: Guild.h:149
@ GE_BANK_TAB_PURCHASED
Definition: Guild.h:162
@ GE_LEADER_CHANGED
Definition: Guild.h:154
@ GE_SIGNED_ON
Definition: Guild.h:159
@ GE_DEMOTION
Definition: Guild.h:148
@ GE_BANK_TAB_AND_MONEY_UPDATED
Definition: Guild.h:165
@ GE_RANK_UPDATED
Definition: Guild.h:157

References GE_BANK_MONEY_SET, GE_BANK_TAB_AND_MONEY_UPDATED, GE_BANK_TAB_PURCHASED, GE_BANK_TAB_UPDATED, GE_BANK_TEXT_CHANGED, GE_DEMOTION, GE_DISBANDED, GE_GUILDBANKBAGSLOTS_CHANGED, GE_JOINED, GE_LEADER_CHANGED, GE_LEADER_IS, GE_LEFT, GE_MOTD, GE_PROMOTION, GE_RANK_DELETED, GE_RANK_UPDATED, GE_REMOVED, GE_SIGNED_OFF, GE_SIGNED_ON, and GE_TABARDCHANGE.