AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
cs_misc.cpp File Reference
#include "AccountMgr.h"
#include "ArenaTeamMgr.h"
#include "BattlegroundMgr.h"
#include "CellImpl.h"
#include "CharacterCache.h"
#include "Chat.h"
#include "CommandScript.h"
#include "Common.h"
#include "GameGraveyard.h"
#include "GameTime.h"
#include "GridNotifiers.h"
#include "GridTerrainLoader.h"
#include "Group.h"
#include "GuildMgr.h"
#include "IPLocation.h"
#include "InstanceSaveMgr.h"
#include "LFG.h"
#include "LFGMgr.h"
#include "Language.h"
#include "MapMgr.h"
#include "MiscPackets.h"
#include "MMapFactory.h"
#include "MovementGenerator.h"
#include "ObjectAccessor.h"
#include "Pet.h"
#include "Player.h"
#include "Realm.h"
#include "ScriptMgr.h"
#include "SpellAuras.h"
#include "TargetedMovementGenerator.h"
#include "Tokenize.h"
#include "WeatherMgr.h"
#include "WorldSessionMgr.h"
#include "GridNotifiersImpl.h"

Go to the source code of this file.

Classes

struct  AccountFlagText
 
class  misc_commandscript
 

Functions

std::string const GetLocalizeCreatureName (Creature *creature, LocaleConstant locale)
 
void AddSC_misc_commandscript ()
 

Variables

constexpr auto SPELL_STUCK = 7355
 
constexpr auto SPELL_FREEZE = 9454
 
AccountFlagText const accountFlagText [MAX_ACCOUNT_FLAG]
 

Function Documentation

◆ AddSC_misc_commandscript()

void AddSC_misc_commandscript ( )
3081{
3082 new misc_commandscript();
3083}
Definition cs_misc.cpp:131

Referenced by AddCommandsScripts().

◆ GetLocalizeCreatureName()

std::string const GetLocalizeCreatureName ( Creature creature,
LocaleConstant  locale 
)
105{
106 auto creatureTemplate = sObjectMgr->GetCreatureTemplate(creature->GetEntry());
107 auto cretureLocale = sObjectMgr->GetCreatureLocale(creature->GetEntry());
108 std::string name;
109
110 if (cretureLocale)
111 {
112 name = cretureLocale->Name[locale];
113 }
114
115 if (name.empty() && creatureTemplate)
116 {
117 name = creatureTemplate->Name;
118 }
119
120 if (name.empty())
121 {
122 name = "Unknown creature";
123 }
124
125 return name;
126}
#define sObjectMgr
Definition ObjectMgr.h:1650
uint32 GetEntry() const
Definition Object.h:116

References Object::GetEntry(), and sObjectMgr.

Referenced by misc_commandscript::HandleFreezeCommand(), and misc_commandscript::HandleUnFreezeCommand().

Variable Documentation

◆ accountFlagText

AccountFlagText const accountFlagText[MAX_ACCOUNT_FLAG]
68{
69 { ACCOUNT_FLAG_GM, "ACCOUNT_FLAG_GM" },
70 { ACCOUNT_FLAG_NOKICK, "ACCOUNT_FLAG_NOKICK" },
71 { ACCOUNT_FLAG_COLLECTOR, "ACCOUNT_FLAG_COLLECTOR" },
72 { ACCOUNT_FLAG_TRIAL, "ACCOUNT_FLAG_TRIAL" },
73 { ACCOUNT_FLAG_CANCELLED, "ACCOUNT_FLAG_CANCELLED" },
74 { ACCOUNT_FLAG_IGR, "ACCOUNT_FLAG_IGR" },
75 { ACCOUNT_FLAG_WHOLESALER, "ACCOUNT_FLAG_WHOLESALER" },
76 { ACCOUNT_FLAG_PRIVILEGED, "ACCOUNT_FLAG_PRIVILEGED" },
77 { ACCOUNT_FLAG_EU_FORBID_ELV, "ACCOUNT_FLAG_EU_FORBID_ELV" },
78 { ACCOUNT_FLAG_EU_FORBID_BILLING, "ACCOUNT_FLAG_EU_FORBID_BILLING" },
79 { ACCOUNT_FLAG_RESTRICTED, "ACCOUNT_FLAG_RESTRICTED" },
80 { ACCOUNT_FLAG_REFERRAL, "ACCOUNT_FLAG_REFERRAL" },
81 { ACCOUNT_FLAG_BLIZZARD, "ACCOUNT_FLAG_BLIZZARD" },
82 { ACCOUNT_FLAG_RECURRING_BILLING, "ACCOUNT_FLAG_RECURRING_BILLING" },
83 { ACCOUNT_FLAG_NOELECTUP, "ACCOUNT_FLAG_NOELECTUP" },
84 { ACCOUNT_FLAG_KR_CERTIFICATE, "ACCOUNT_FLAG_KR_CERTIFICATE" },
85 { ACCOUNT_FLAG_EXPANSION_COLLECTOR, "ACCOUNT_FLAG_EXPANSION_COLLECTOR" },
86 { ACCOUNT_FLAG_DISABLE_VOICE, "ACCOUNT_FLAG_DISABLE_VOICE" },
87 { ACCOUNT_FLAG_DISABLE_VOICE_SPEAK, "ACCOUNT_FLAG_DISABLE_VOICE_SPEAK" },
88 { ACCOUNT_FLAG_REFERRAL_RESURRECT, "ACCOUNT_FLAG_REFERRAL_RESURRECT" },
89 { ACCOUNT_FLAG_EU_FORBID_CC, "ACCOUNT_FLAG_EU_FORBID_CC" },
90 { ACCOUNT_FLAG_OPENBETA_DELL, "ACCOUNT_FLAG_OPENBETA_DELL" },
91 { ACCOUNT_FLAG_PROPASS, "ACCOUNT_FLAG_PROPASS" },
92 { ACCOUNT_FLAG_PROPASS_LOCK, "ACCOUNT_FLAG_PROPASS_LOCK" },
93 { ACCOUNT_FLAG_PENDING_UPGRADE, "ACCOUNT_FLAG_PENDING_UPGRADE" },
94 { ACCOUNT_FLAG_RETAIL_FROM_TRIAL, "ACCOUNT_FLAG_RETAIL_FROM_TRIAL" },
95 { ACCOUNT_FLAG_EXPANSION2_COLLECTOR, "ACCOUNT_FLAG_EXPANSION2_COLLECTOR" },
96 { ACCOUNT_FLAG_OVERMIND_LINKED, "ACCOUNT_FLAG_OVERMIND_LINKED" },
97 { ACCOUNT_FLAG_DEMOS, "ACCOUNT_FLAG_DEMOS" },
98 { ACCOUNT_FLAG_DEATH_KNIGHT_OK, "ACCOUNT_FLAG_DEATH_KNIGHT_OK" },
99 { ACCOUNT_FLAG_S2_REQUIRE_IGR, "ACCOUNT_FLAG_S2_REQUIRE_IGR" },
100 { ACCOUNT_FLAG_S2_TRIAL, "ACCOUNT_FLAG_S2_TRIAL" },
101 // { ACCOUNT_FLAG_S2_RESTRICTED, "ACCOUNT_FLAG_S2_RESTRICTED" }
102};
@ ACCOUNT_FLAG_NOKICK
Definition Common.h:68
@ ACCOUNT_FLAG_S2_TRIAL
Definition Common.h:99
@ ACCOUNT_FLAG_DISABLE_VOICE
Definition Common.h:84
@ ACCOUNT_FLAG_BLIZZARD
Definition Common.h:79
@ ACCOUNT_FLAG_EU_FORBID_CC
Definition Common.h:87
@ ACCOUNT_FLAG_CANCELLED
Definition Common.h:71
@ ACCOUNT_FLAG_TRIAL
Definition Common.h:70
@ ACCOUNT_FLAG_GM
Definition Common.h:67
@ ACCOUNT_FLAG_REFERRAL
Definition Common.h:78
@ ACCOUNT_FLAG_PROPASS_LOCK
Definition Common.h:90
@ ACCOUNT_FLAG_PENDING_UPGRADE
Definition Common.h:91
@ ACCOUNT_FLAG_DEMOS
Definition Common.h:95
@ ACCOUNT_FLAG_EXPANSION_COLLECTOR
Definition Common.h:83
@ ACCOUNT_FLAG_NOELECTUP
Definition Common.h:81
@ ACCOUNT_FLAG_PROPASS
Definition Common.h:89
@ ACCOUNT_FLAG_EXPANSION2_COLLECTOR
Definition Common.h:93
@ ACCOUNT_FLAG_S2_REQUIRE_IGR
Definition Common.h:98
@ ACCOUNT_FLAG_IGR
Definition Common.h:72
@ ACCOUNT_FLAG_PRIVILEGED
Definition Common.h:74
@ ACCOUNT_FLAG_WHOLESALER
Definition Common.h:73
@ ACCOUNT_FLAG_DEATH_KNIGHT_OK
Definition Common.h:96
@ ACCOUNT_FLAG_DISABLE_VOICE_SPEAK
Definition Common.h:85
@ ACCOUNT_FLAG_RECURRING_BILLING
Definition Common.h:80
@ ACCOUNT_FLAG_EU_FORBID_ELV
Definition Common.h:75
@ ACCOUNT_FLAG_RESTRICTED
Definition Common.h:77
@ ACCOUNT_FLAG_REFERRAL_RESURRECT
Definition Common.h:86
@ ACCOUNT_FLAG_OVERMIND_LINKED
Definition Common.h:94
@ ACCOUNT_FLAG_KR_CERTIFICATE
Definition Common.h:82
@ ACCOUNT_FLAG_COLLECTOR
Definition Common.h:69
@ ACCOUNT_FLAG_OPENBETA_DELL
Definition Common.h:88
@ ACCOUNT_FLAG_EU_FORBID_BILLING
Definition Common.h:76
@ ACCOUNT_FLAG_RETAIL_FROM_TRIAL
Definition Common.h:92

Referenced by misc_commandscript::HandlePInfoCommand().

◆ SPELL_FREEZE

constexpr auto SPELL_FREEZE = 9454
constexpr

◆ SPELL_STUCK

constexpr auto SPELL_STUCK = 7355
constexpr
Todo:
: this import is not necessary for compilation and marked as unused by the IDE

Referenced by misc_commandscript::HandleUnstuckCommand().