OregonCore  revision fb2a440-git
Your Favourite TBC server
ObjectMgr.cpp File Reference
#include "Common.h"
#include "Database/DatabaseEnv.h"
#include "Database/SQLStorage.h"
#include "Database/SQLStorageImpl.h"
#include "PoolMgr.h"
#include "Log.h"
#include "MapManager.h"
#include "ObjectMgr.h"
#include "SpellMgr.h"
#include "UpdateMask.h"
#include "World.h"
#include "WorldSession.h"
#include "Group.h"
#include "Guild.h"
#include "ArenaTeam.h"
#include "Transports.h"
#include "Language.h"
#include "GameEventMgr.h"
#include "Spell.h"
#include "Chat.h"
#include "AccountMgr.h"
#include "InstanceSaveMgr.h"
#include "SpellAuras.h"
#include "Utilities/Util.h"
#include "WaypointManager.h"
#include "GossipDef.h"
#include "DisableMgr.h"

Go to the source code of this file.

Classes

struct  SQLCreatureLoader
 
struct  SQLItemLoader
 
struct  SQLInstanceLoader
 
struct  SQLGameObjectLoader
 

Macros

#define UPDATE_PLAYER(plr)
 

Enumerations

enum  LanguageType {
  LT_BASIC_LATIN = 0x0000, LT_EXTENDEN_LATIN = 0x0001, LT_CYRILLIC = 0x0002, LT_EAST_ASIA = 0x0004,
  LT_ANY = 0xFFFF
}
 

Functions

 INSTANTIATE_SINGLETON_1 (ObjectMgr)
 
std::string GetScriptsTableNameByType (ScriptsType type)
 
ScriptMapMapGetScriptsMapByType (ScriptsType type)
 
std::string GetScriptCommandName (ScriptCommands command)
 
bool normalizePlayerName (std::string &name)
 
LanguageDesc const * GetLanguageDescByID (uint32 lang)
 
bool isValidString (std::wstring wstr, uint32 strictMask, bool numericOrSpace, bool create=false)
 
SkillRangeType GetSkillRangeType (SkillLineEntry const *pSkill, bool racial)
 
uint32 GetAreaTriggerScriptId (uint32 trigger_id)
 
bool LoadOregonStrings (DatabaseType &db, char const *table, int32 start_value, int32 end_value)
 
uint32 GetScriptId (const char *name)
 
ObjectMgr::ScriptNameMapGetScriptNames ()
 
GameObjectInfo const * GetGameObjectInfo (uint32 id)
 
CreatureInfo const * GetCreatureTemplate (uint32 id)
 
CreatureInfo const * GetCreatureTemplateStore (uint32 entry)
 
Quest const * GetQuestTemplateStore (uint32 entry)
 

Variables

ScriptMapMap sQuestEndScripts
 
ScriptMapMap sQuestStartScripts
 
ScriptMapMap sSpellScripts
 
ScriptMapMap sGameObjectScripts
 
ScriptMapMap sEventScripts
 
ScriptMapMap sGossipScripts
 
ScriptMapMap sWaypointScripts
 
LanguageDesc lang_description [LANGUAGES_COUNT]
 

Macro Definition Documentation

#define UPDATE_PLAYER (   plr)
Value:
if (Player* player = plr) \
{ \
player->SetRAFStatus(RAF_LINK_NONE); \
player->SetRestBonus(player->GetRestBonus()); \
}
Definition: Player.h:922

Definition at line 2976 of file ObjectMgr.cpp.

Referenced by ObjectMgr::LinkIntoRAF(), and ObjectMgr::UnlinkFromRAF().

Enumeration Type Documentation

Enumerator
LT_BASIC_LATIN 
LT_EXTENDEN_LATIN 
LT_CYRILLIC 
LT_EAST_ASIA 
LT_ANY 

Definition at line 6561 of file ObjectMgr.cpp.

6562 {
6563  LT_BASIC_LATIN = 0x0000,
6564  LT_EXTENDEN_LATIN = 0x0001,
6565  LT_CYRILLIC = 0x0002,
6566  LT_EAST_ASIA = 0x0004,
6567  LT_ANY = 0xFFFF
6568 };

Function Documentation

uint32 GetAreaTriggerScriptId ( uint32  trigger_id)

Definition at line 7630 of file ObjectMgr.cpp.

References sObjectMgr.

Referenced by ScriptMgr::AreaTrigger().

7631 {
7632  return sObjectMgr.GetAreaTriggerScriptId(trigger_id);
7633 }
#define sObjectMgr
Definition: ObjectMgr.h:1285
CreatureInfo const* GetCreatureTemplateStore ( uint32  entry)

Definition at line 7668 of file ObjectMgr.cpp.

References SQLStorage::LookupEntry(), and sCreatureStorage.

Referenced by SystemMgr::LoadScriptWaypoints(), CreatureEventAI::ProcessAction(), and ScriptedAI::SetEquipmentSlots().

7669 {
7670  return sCreatureStorage.LookupEntry<CreatureInfo>(entry);
7671 }
SQLStorage sCreatureStorage
T const * LookupEntry(uint32 id) const
Definition: SQLStorage.h:52
GameObjectInfo const* GetGameObjectInfo ( uint32  id)
LanguageDesc const* GetLanguageDescByID ( uint32  lang)

Definition at line 269 of file ObjectMgr.cpp.

References LANGUAGES_COUNT.

Referenced by WorldSession::HandleMessagechatOpcode(), CreatureEventAIMgr::LoadCreatureEventAI_Texts(), CreatureTextMgr::LoadCreatureTexts(), SystemMgr::LoadScriptTexts(), and SystemMgr::LoadScriptTextsCustom().

270 {
271  for (uint8 i = 0; i < LANGUAGES_COUNT; ++i)
272  {
273  if (uint32(lang_description[i].lang_id) == lang)
274  return &lang_description[i];
275  }
276 
277  return NULL;
278 }
ACE_UINT8 uint8
Definition: Define.h:73
#define LANGUAGES_COUNT
LanguageDesc lang_description[LANGUAGES_COUNT]
Definition: ObjectMgr.cpp:246
ACE_UINT32 uint32
Definition: Define.h:71
Quest const* GetQuestTemplateStore ( uint32  entry)

Definition at line 7673 of file ObjectMgr.cpp.

References sObjectMgr.

7674 {
7675  return sObjectMgr.GetQuestTemplate(entry);
7676 }
#define sObjectMgr
Definition: ObjectMgr.h:1285
std::string GetScriptCommandName ( ScriptCommands  command)

Definition at line 120 of file ObjectMgr.cpp.

References SCRIPT_COMMAND_ACTIVATE_OBJECT, SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT, SCRIPT_COMMAND_CAST_SPELL, SCRIPT_COMMAND_CLOSE_DOOR, SCRIPT_COMMAND_CLOSE_GOSSIP, SCRIPT_COMMAND_CREATE_ITEM, SCRIPT_COMMAND_DESPAWN_SELF, SCRIPT_COMMAND_DO_NOTHING, SCRIPT_COMMAND_EMOTE, SCRIPT_COMMAND_EQUIP, SCRIPT_COMMAND_FIELD_SET, SCRIPT_COMMAND_FLAG_REMOVE, SCRIPT_COMMAND_FLAG_SET, SCRIPT_COMMAND_KILL, SCRIPT_COMMAND_KILL_CREDIT, SCRIPT_COMMAND_LOAD_PATH, SCRIPT_COMMAND_MODEL, SCRIPT_COMMAND_MOVE_TO, SCRIPT_COMMAND_OPEN_DOOR, SCRIPT_COMMAND_ORIENTATION, SCRIPT_COMMAND_PLAY_SOUND, SCRIPT_COMMAND_QUEST_EXPLORED, SCRIPT_COMMAND_REMOVE_AURA, SCRIPT_COMMAND_RESPAWN_GAMEOBJECT, SCRIPT_COMMAND_TALK, SCRIPT_COMMAND_TELEPORT_TO, and SCRIPT_COMMAND_TEMP_SUMMON_CREATURE.

Referenced by ScriptInfo::GetDebugInfo(), ObjectMgr::LoadScripts(), and Map::ScriptsProcess().

121 {
122  std::string res = "";
123  switch (command)
124  {
125  case SCRIPT_COMMAND_TALK:
126  res = "SCRIPT_COMMAND_TALK";
127  break;
129  res = "SCRIPT_COMMAND_EMOTE";
130  break;
132  res = "SCRIPT_COMMAND_FIELD_SET";
133  break;
135  res = "SCRIPT_COMMAND_MOVE_TO";
136  break;
138  res = "SCRIPT_COMMAND_FLAG_SET";
139  break;
141  res = "SCRIPT_COMMAND_FLAG_REMOVE";
142  break;
144  res = "SCRIPT_COMMAND_TELEPORT_TO";
145  break;
147  res = "SCRIPT_COMMAND_QUEST_EXPLORED";
148  break;
150  res = "SCRIPT_COMMAND_KILL_CREDIT";
151  break;
153  res = "SCRIPT_COMMAND_RESPAWN_GAMEOBJECT";
154  break;
156  res = "SCRIPT_COMMAND_TEMP_SUMMON_CREATURE";
157  break;
159  res = "SCRIPT_COMMAND_OPEN_DOOR";
160  break;
162  res = "SCRIPT_COMMAND_CLOSE_DOOR";
163  break;
165  res = "SCRIPT_COMMAND_ACTIVATE_OBJECT";
166  break;
168  res = "SCRIPT_COMMAND_REMOVE_AURA";
169  break;
171  res = "SCRIPT_COMMAND_CAST_SPELL";
172  break;
174  res = "SCRIPT_COMMAND_PLAY_SOUND";
175  break;
177  res = "SCRIPT_COMMAND_CREATE_ITEM";
178  break;
180  res = "SCRIPT_COMMAND_DESPAWN_SELF";
181  break;
183  res = "SCRIPT_COMMAND_DO_NOTHING";
184  break;
186  res = "SCRIPT_COMMAND_LOAD_PATH";
187  break;
189  res = "SCRIPT_COMMAND_CALLSCRIPT_TO_UNIT";
190  break;
191  case SCRIPT_COMMAND_KILL:
192  res = "SCRIPT_COMMAND_KILL";
193  break;
194  // Oregon only
196  res = "SCRIPT_COMMAND_ORIENTATION";
197  break;
199  res = "SCRIPT_COMMAND_EQUIP";
200  break;
202  res = "SCRIPT_COMMAND_MODEL";
203  break;
205  res = "SCRIPT_COMMAND_CLOSE_GOSSIP";
206  break;
207  default:
208  {
209  char sz[32];
210  sprintf(sz, "Unknown command: %d", command);
211  res = sz;
212  break;
213  }
214  }
215  return res;
216 }
ObjectMgr::ScriptNameMap& GetScriptNames ( )

Definition at line 7653 of file ObjectMgr.cpp.

References sObjectMgr.

7654 {
7655  return sObjectMgr.GetScriptNames();
7656 }
#define sObjectMgr
Definition: ObjectMgr.h:1285
ScriptMapMap* GetScriptsMapByType ( ScriptsType  type)

Definition at line 88 of file ObjectMgr.cpp.

References SCRIPTS_EVENT, SCRIPTS_GAMEOBJECT, SCRIPTS_GOSSIP, SCRIPTS_QUEST_END, SCRIPTS_QUEST_START, SCRIPTS_SPELL, SCRIPTS_WAYPOINT, sEventScripts, sGameObjectScripts, sGossipScripts, sQuestEndScripts, sQuestStartScripts, sSpellScripts, and sWaypointScripts.

Referenced by ObjectMgr::CheckScripts(), ObjectMgr::LoadScripts(), and Map::ScriptsProcess().

89 {
90  ScriptMapMap* res = NULL;
91  switch (type)
92  {
93  case SCRIPTS_QUEST_END:
94  res = &sQuestEndScripts;
95  break;
97  res = &sQuestStartScripts;
98  break;
99  case SCRIPTS_SPELL:
100  res = &sSpellScripts;
101  break;
102  case SCRIPTS_GAMEOBJECT:
103  res = &sGameObjectScripts;
104  break;
105  case SCRIPTS_EVENT:
106  res = &sEventScripts;
107  break;
108  case SCRIPTS_WAYPOINT:
109  res = &sWaypointScripts;
110  break;
111  case SCRIPTS_GOSSIP:
112  res = &sGossipScripts;
113  break;
114  default:
115  break;
116  }
117  return res;
118 }
ScriptMapMap sSpellScripts
Definition: ObjectMgr.cpp:50
std::map< uint32, ScriptMap > ScriptMapMap
Definition: ObjectMgr.h:328
ScriptMapMap sQuestEndScripts
Definition: ObjectMgr.cpp:48
ScriptMapMap sGossipScripts
Definition: ObjectMgr.cpp:53
ScriptMapMap sQuestStartScripts
Definition: ObjectMgr.cpp:49
ScriptMapMap sGameObjectScripts
Definition: ObjectMgr.cpp:51
ScriptMapMap sEventScripts
Definition: ObjectMgr.cpp:52
ScriptMapMap sWaypointScripts
Definition: ObjectMgr.cpp:54
std::string GetScriptsTableNameByType ( ScriptsType  type)

Definition at line 56 of file ObjectMgr.cpp.

References SCRIPTS_EVENT, SCRIPTS_GAMEOBJECT, SCRIPTS_GOSSIP, SCRIPTS_QUEST_END, SCRIPTS_QUEST_START, SCRIPTS_SPELL, and SCRIPTS_WAYPOINT.

Referenced by ScriptInfo::GetDebugInfo(), ObjectMgr::LoadScripts(), and Map::ScriptsProcess().

57 {
58  std::string res = "";
59  switch (type)
60  {
61  case SCRIPTS_QUEST_END:
62  res = "quest_end_scripts";
63  break;
65  res = "quest_start_scripts";
66  break;
67  case SCRIPTS_SPELL:
68  res = "spell_scripts";
69  break;
70  case SCRIPTS_GAMEOBJECT:
71  res = "gameobject_scripts";
72  break;
73  case SCRIPTS_EVENT:
74  res = "event_scripts";
75  break;
76  case SCRIPTS_WAYPOINT:
77  res = "waypoint_scripts";
78  break;
79  case SCRIPTS_GOSSIP:
80  res = "gossip_scripts";
81  break;
82  default:
83  break;
84  }
85  return res;
86 }
SkillRangeType GetSkillRangeType ( SkillLineEntry const *  pSkill,
bool  racial 
)

Definition at line 6976 of file ObjectMgr.cpp.

References SkillLineEntry::categoryId, SkillLineEntry::id, IsProfessionSkill(), SKILL_CATEGORY_ARMOR, SKILL_CATEGORY_ATTRIBUTES, SKILL_CATEGORY_CLASS, SKILL_CATEGORY_LANGUAGES, SKILL_CATEGORY_NOT_DISPLAYED, SKILL_CATEGORY_PROFESSION, SKILL_CATEGORY_SECONDARY, SKILL_CATEGORY_WEAPON, SKILL_FIST_WEAPONS, SKILL_LOCKPICKING, SKILL_POISONS, SKILL_RANGE_LANGUAGE, SKILL_RANGE_LEVEL, SKILL_RANGE_MONO, SKILL_RANGE_NONE, and SKILL_RANGE_RANK.

Referenced by Player::_LoadSkills(), Player::AddSpell(), and Player::UpdateSkillsForLevel().

6977 {
6978  switch (pSkill->categoryId)
6979  {
6981  return SKILL_RANGE_LANGUAGE;
6982  case SKILL_CATEGORY_WEAPON:
6983  if (pSkill->id != SKILL_FIST_WEAPONS)
6984  return SKILL_RANGE_LEVEL;
6985  else
6986  return SKILL_RANGE_MONO;
6987  case SKILL_CATEGORY_ARMOR:
6988  case SKILL_CATEGORY_CLASS:
6989  if (pSkill->id != SKILL_POISONS && pSkill->id != SKILL_LOCKPICKING)
6990  return SKILL_RANGE_MONO;
6991  else
6992  return SKILL_RANGE_LEVEL;
6995  // not set skills for professions and racial abilities
6996  if (IsProfessionSkill(pSkill->id))
6997  return SKILL_RANGE_RANK;
6998  else if (racial)
6999  return SKILL_RANGE_NONE;
7000  else
7001  return SKILL_RANGE_MONO;
7002  default:
7003  case SKILL_CATEGORY_ATTRIBUTES: //not found in dbc
7004  case SKILL_CATEGORY_NOT_DISPLAYED: //only GENEREC(DND)
7005  return SKILL_RANGE_NONE;
7006  }
7007 }
bool IsProfessionSkill(uint32 skill)
Definition: SpellMgr.h:825
INSTANTIATE_SINGLETON_1 ( ObjectMgr  )
bool isValidString ( std::wstring  wstr,
uint32  strictMask,
bool  numericOrSpace,
bool  create = false 
)

Definition at line 6598 of file ObjectMgr.cpp.

References isBasicLatinString(), isCyrillicString(), isEastAsianString(), isExtendedLatinString(), LT_CYRILLIC, LT_EAST_ASIA, and LT_EXTENDEN_LATIN.

Referenced by ObjectMgr::IsValidCharterName(), ObjectMgr::IsValidName(), and ObjectMgr::IsValidPetName().

6599 {
6600  if (strictMask == 0) // any language, ignore realm
6601  {
6602  if (isExtendedLatinString(wstr, numericOrSpace))
6603  return true;
6604  if (isCyrillicString(wstr, numericOrSpace))
6605  return true;
6606  if (isEastAsianString(wstr, numericOrSpace))
6607  return true;
6608  return false;
6609  }
6610 
6611  if (strictMask & 0x2) // realm zone specific
6612  {
6613  LanguageType lt = GetRealmLanguageType(create);
6614  if (lt & LT_EXTENDEN_LATIN)
6615  if (isExtendedLatinString(wstr, numericOrSpace))
6616  return true;
6617  if (lt & LT_CYRILLIC)
6618  if (isCyrillicString(wstr, numericOrSpace))
6619  return true;
6620  if (lt & LT_EAST_ASIA)
6621  if (isEastAsianString(wstr, numericOrSpace))
6622  return true;
6623  }
6624 
6625  if (strictMask & 0x1) // basic Latin
6626  {
6627  if (isBasicLatinString(wstr, numericOrSpace))
6628  return true;
6629  }
6630 
6631  return false;
6632 }
bool isBasicLatinString(std::wstring wstr, bool numericOrSpace)
Definition: Util.h:220
bool isExtendedLatinString(std::wstring wstr, bool numericOrSpace)
Definition: Util.h:228
LanguageType
Definition: ObjectMgr.cpp:6561
bool isEastAsianString(std::wstring wstr, bool numericOrSpace)
Definition: Util.h:244
bool isCyrillicString(std::wstring wstr, bool numericOrSpace)
Definition: Util.h:236
bool LoadOregonStrings ( DatabaseType db,
char const *  table,
int32  start_value,
int32  end_value 
)

Definition at line 7635 of file ObjectMgr.cpp.

References MAX_DB_SCRIPT_STRING_ID, sLog, and sObjectMgr.

Referenced by ObjectMgr::LoadDbScriptStrings(), ObjectMgr::LoadOregonStrings(), SystemMgr::LoadScriptTexts(), and SystemMgr::LoadScriptTextsCustom().

7636 {
7637  // MAX_DB_SCRIPT_STRING_ID is max allowed negative value for scripts (scrpts can use only more deep negative values
7638  // start/end reversed for negative values
7639  if (start_value > MAX_DB_SCRIPT_STRING_ID || end_value >= start_value)
7640  {
7641  sLog.outErrorDb("Table '%s' attempt loaded with reserved by core range (%d - %d), strings not loaded.", table, start_value, end_value + 1);
7642  return false;
7643  }
7644 
7645  return sObjectMgr.LoadOregonStrings(db, table, start_value, end_value);
7646 }
#define sLog
Log class singleton.
Definition: Log.h:187
#define sObjectMgr
Definition: ObjectMgr.h:1285
const AuthHandler table[]
Definition: AuthSocket.cpp:149
#define MAX_DB_SCRIPT_STRING_ID
Definition: ObjectMgr.h:369
bool normalizePlayerName ( std::string &  name)

Definition at line 225 of file ObjectMgr.cpp.

References MAX_INTERNAL_PLAYER_NAME, Utf8toWStr(), wcharToLower(), wcharToUpper(), and WStrToUtf8().

Referenced by ChatHandler::GetDeletedCharacterInfoList(), TicketMgr::GetGMTicketByName(), ChatHandler::GetPlayerGroupAndGUIDByName(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleAddIgnoreOpcode(), ChatHandler::HandleAppearCommand(), WorldSession::HandleArenaTeamAddMemberOpcode(), WorldSession::HandleArenaTeamPromoteToCaptainOpcode(), WorldSession::HandleArenaTeamRemoveFromTeamOpcode(), ChatHandler::HandleBanHelper(), ChatHandler::HandleBanInfoCharacterCommand(), WorldSession::HandleChangePlayerNameOpcode(), WorldSession::HandleChannelBan(), WorldSession::HandleChannelInvite(), WorldSession::HandleChannelKick(), WorldSession::HandleChannelModerator(), WorldSession::HandleChannelMute(), WorldSession::HandleChannelSetOwner(), WorldSession::HandleChannelUnban(), WorldSession::HandleChannelUnmoderator(), WorldSession::HandleChannelUnmute(), ChatHandler::HandleCharacterDeletedRestoreCommand(), ChatHandler::HandleCharacterEraseCommand(), ChatHandler::HandleCharacterRenameCommand(), WorldSession::HandleCharCreateOpcode(), ChatHandler::HandleCombatStopCommand(), WorldSession::HandleDeclinedPlayerNameOpcode(), ChatHandler::HandleFreezeCommand(), ChatHandler::HandleGMTicketAssignToCommand(), ChatHandler::HandleGPSCommand(), WorldSession::HandleGroupInviteOpcode(), ChatHandler::HandleGroupSummonCommand(), WorldSession::HandleGroupUninviteNameOpcode(), WorldSession::HandleGuildDemoteOpcode(), ChatHandler::HandleGuildInviteCommand(), WorldSession::HandleGuildInviteOpcode(), WorldSession::HandleGuildLeaderOpcode(), WorldSession::HandleGuildPromoteOpcode(), ChatHandler::HandleGuildRankCommand(), WorldSession::HandleGuildRemoveOpcode(), WorldSession::HandleGuildSetOfficerNoteOpcode(), WorldSession::HandleGuildSetPublicNoteOpcode(), ChatHandler::HandleGuildUninviteCommand(), ChatHandler::HandleKickPlayerCommand(), ChatHandler::HandleLearnAllDefaultCommand(), ChatHandler::HandleLevelUpCommand(), ChatHandler::HandleLoadPDumpCommand(), WorldSession::HandleMessagechatOpcode(), ChatHandler::HandleMuteCommand(), ChatHandler::HandleNameTeleCommand(), ChatHandler::HandlePInfoCommand(), ChatHandler::HandleRecallCommand(), ChatHandler::HandleResetHonorCommand(), ChatHandler::HandleResetLevelCommand(), ChatHandler::HandleResetSpellsCommand(), ChatHandler::HandleResetStatsCommand(), ChatHandler::HandleResetTalentsCommand(), ChatHandler::HandleReviveCommand(), ChatHandler::HandleSendItemsCommand(), WorldSession::HandleSendMail(), ChatHandler::HandleSendMailCommand(), ChatHandler::HandleSendMessageCommand(), ChatHandler::HandleSendMoneyCommand(), ChatHandler::HandleSummonCommand(), ChatHandler::HandleUnBanHelper(), ChatHandler::HandleUnFreezeCommand(), ChatHandler::HandleUnmuteCommand(), WorldSession::HandleWhoisOpcode(), ChatHandler::HandleWritePDumpCommand(), PlayerDumpReader::LoadDump(), and ObjectMgr::LoadReservedPlayersNames().

226 {
227  if (name.empty())
228  return false;
229 
230  wchar_t wstr_buf[MAX_INTERNAL_PLAYER_NAME + 1];
231  size_t wstr_len = MAX_INTERNAL_PLAYER_NAME;
232 
233  if (!Utf8toWStr(name, &wstr_buf[0], wstr_len))
234  return false;
235 
236  wstr_buf[0] = wcharToUpper(wstr_buf[0]);
237  for (size_t i = 1; i < wstr_len; ++i)
238  wstr_buf[i] = wcharToLower(wstr_buf[i]);
239 
240  if (!WStrToUtf8(wstr_buf, wstr_len, name))
241  return false;
242 
243  return true;
244 }
bool Utf8toWStr(char const *utf8str, size_t csize, wchar_t *wstr, size_t &wsize)
Definition: Util.cpp:255
bool WStrToUtf8(wchar_t *wstr, size_t size, std::string &utf8str)
Definition: Util.cpp:299
#define MAX_INTERNAL_PLAYER_NAME
Definition: ObjectMgr.h:498
wchar_t wcharToLower(wchar_t wchar)
Definition: Util.h:280
wchar_t wcharToUpper(wchar_t wchar)
Definition: Util.h:252

Variable Documentation

LanguageDesc lang_description[LANGUAGES_COUNT]
Initial value:
=
{
{ LANG_ADDON, 0, 0 },
{ LANG_UNIVERSAL, 0, 0 },
{ LANG_ZOMBIE, 0, 0 },
}

Definition at line 246 of file ObjectMgr.cpp.

Referenced by ChatHandler::HandleLearnAllLangCommand().

ScriptMapMap sGossipScripts
ScriptMapMap sQuestEndScripts
ScriptMapMap sQuestStartScripts
ScriptMapMap sSpellScripts