AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
cs_npc.cpp File Reference
#include "Chat.h"
#include "CommandScript.h"
#include "CreatureAI.h"
#include "CreatureGroups.h"
#include "GameTime.h"
#include "Language.h"
#include "ObjectMgr.h"
#include "Pet.h"
#include "Player.h"
#include "TargetedMovementGenerator.h"
#include "Transport.h"
#include <string>

Go to the source code of this file.

Classes

struct  NpcFlagText
 
struct  MechanicImmune
 
struct  SpellSchoolImmune
 
class  npc_commandscript
 

Macros

#define NPCFLAG_COUNT   24
 

Typedefs

using CreatureSpawnId = Variant< Hyperlink< creature >, ObjectGuid::LowType >
 
using CreatureEntry = Variant< Hyperlink< creature_entry >, uint32 >
 

Functions

void AddSC_npc_commandscript ()
 

Variables

NpcFlagText const npcFlagTexts [NPCFLAG_COUNT]
 
MechanicImmune const mechanicImmunes [MAX_MECHANIC]
 
SpellSchoolImmune const spellSchoolImmunes [MAX_SPELL_SCHOOL]
 

Macro Definition Documentation

◆ NPCFLAG_COUNT

#define NPCFLAG_COUNT   24

Typedef Documentation

◆ CreatureEntry

using CreatureEntry = Variant<Hyperlink<creature_entry>, uint32>

◆ CreatureSpawnId

Function Documentation

◆ AddSC_npc_commandscript()

void AddSC_npc_commandscript ( )
1275{
1276 new npc_commandscript();
1277}
Definition: cs_npc.cpp:132

Referenced by AddCommandsScripts().

Variable Documentation

◆ mechanicImmunes

◆ npcFlagTexts

NpcFlagText const npcFlagTexts[NPCFLAG_COUNT]
Initial value:
=
{
}
@ LANG_NPCINFO_INNKEEPER
Definition: Language.h:772
@ LANG_NPCINFO_VENDOR_REAGENT
Definition: Language.h:767
@ LANG_NPCINFO_TRAINER_PROFESSION
Definition: Language.h:763
@ LANG_NPCINFO_GOSSIP
Definition: Language.h:760
@ LANG_NPCINFO_TRAINER
Definition: Language.h:593
@ LANG_NPCINFO_QUESTGIVER
Definition: Language.h:761
@ LANG_NPCINFO_VENDOR_AMMO
Definition: Language.h:764
@ LANG_NPCINFO_GUILD_BANKER
Definition: Language.h:779
@ LANG_NPCINFO_VENDOR
Definition: Language.h:592
@ LANG_NPCINFO_TABARDDESIGNER
Definition: Language.h:775
@ LANG_NPCINFO_FLIGHTMASTER
Definition: Language.h:769
@ LANG_NPCINFO_SPIRITGUIDE
Definition: Language.h:771
@ LANG_NPCINFO_VENDOR_POISON
Definition: Language.h:766
@ LANG_NPCINFO_TRAINER_CLASS
Definition: Language.h:762
@ LANG_NPCINFO_AUCTIONEER
Definition: Language.h:777
@ LANG_NPCINFO_VENDOR_FOOD
Definition: Language.h:765
@ LANG_NPCINFO_BANKER
Definition: Language.h:773
@ LANG_NPCINFO_PETITIONER
Definition: Language.h:774
@ LANG_NPCINFO_BATTLEMASTER
Definition: Language.h:776
@ LANG_NPCINFO_SPELLCLICK
Definition: Language.h:780
@ LANG_NPCINFO_STABLEMASTER
Definition: Language.h:778
@ LANG_NPCINFO_PLAYER_VEHICLE
Definition: Language.h:782
@ LANG_NPCINFO_SPIRITHEALER
Definition: Language.h:770
@ LANG_NPCINFO_REPAIR
Definition: Language.h:768
@ UNIT_NPC_FLAG_VENDOR_AMMO
Definition: UnitDefines.h:302
@ UNIT_NPC_FLAG_TABARDDESIGNER
Definition: UnitDefines.h:313
@ UNIT_NPC_FLAG_BANKER
Definition: UnitDefines.h:311
@ UNIT_NPC_FLAG_AUCTIONEER
Definition: UnitDefines.h:315
@ UNIT_NPC_FLAG_VENDOR_POISON
Definition: UnitDefines.h:304
@ UNIT_NPC_FLAG_GUILD_BANKER
Definition: UnitDefines.h:317
@ UNIT_NPC_FLAG_VENDOR
Definition: UnitDefines.h:301
@ UNIT_NPC_FLAG_STABLEMASTER
Definition: UnitDefines.h:316
@ UNIT_NPC_FLAG_VENDOR_REAGENT
Definition: UnitDefines.h:305
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
@ UNIT_NPC_FLAG_BATTLEMASTER
Definition: UnitDefines.h:314
@ UNIT_NPC_FLAG_VENDOR_FOOD
Definition: UnitDefines.h:303
@ UNIT_NPC_FLAG_QUESTGIVER
Definition: UnitDefines.h:295
@ UNIT_NPC_FLAG_INNKEEPER
Definition: UnitDefines.h:310
@ UNIT_NPC_FLAG_SPELLCLICK
Definition: UnitDefines.h:318
@ UNIT_NPC_FLAG_PLAYER_VEHICLE
Definition: UnitDefines.h:319
@ UNIT_NPC_FLAG_FLIGHTMASTER
Definition: UnitDefines.h:307
@ UNIT_NPC_FLAG_TRAINER_CLASS
Definition: UnitDefines.h:299
@ UNIT_NPC_FLAG_TRAINER_PROFESSION
Definition: UnitDefines.h:300
@ UNIT_NPC_FLAG_REPAIR
Definition: UnitDefines.h:306
@ UNIT_NPC_FLAG_TRAINER
Definition: UnitDefines.h:298
@ UNIT_NPC_FLAG_PETITIONER
Definition: UnitDefines.h:312
@ UNIT_NPC_FLAG_SPIRITGUIDE
Definition: UnitDefines.h:309
@ UNIT_NPC_FLAG_SPIRITHEALER
Definition: UnitDefines.h:308

Referenced by npc_commandscript::HandleNpcInfoCommand().

◆ spellSchoolImmunes

SpellSchoolImmune const spellSchoolImmunes[MAX_SPELL_SCHOOL]
Initial value:
=
{
{ SPELL_SCHOOL_NORMAL, "SPELL_SCHOOL_NORMAL" },
{ SPELL_SCHOOL_HOLY, "SPELL_SCHOOL_HOLY" },
{ SPELL_SCHOOL_FIRE, "SPELL_SCHOOL_FIRE" },
{ SPELL_SCHOOL_NATURE, "SPELL_SCHOOL_NATURE" },
{ SPELL_SCHOOL_FROST, "SPELL_SCHOOL_FROST" },
{ SPELL_SCHOOL_SHADOW, "SPELL_SCHOOL_SHADOW" },
{ SPELL_SCHOOL_ARCANE, "SPELL_SCHOOL_ARCANE" },
}
@ SPELL_SCHOOL_SHADOW
Definition: SharedDefines.h:288
@ SPELL_SCHOOL_NORMAL
Definition: SharedDefines.h:283
@ SPELL_SCHOOL_NATURE
Definition: SharedDefines.h:286
@ SPELL_SCHOOL_FROST
Definition: SharedDefines.h:287
@ SPELL_SCHOOL_ARCANE
Definition: SharedDefines.h:289
@ SPELL_SCHOOL_FIRE
Definition: SharedDefines.h:285
@ SPELL_SCHOOL_HOLY
Definition: SharedDefines.h:284

Referenced by npc_commandscript::HandleNpcInfoCommand().