1108 {
1111
1112 if (!creature || !player)
1113 return;
1114
1116 return;
1117
1119
1121 {
1127
1132
1134
1136 {
1139 }, 40s);
1140
1142 {
1144
1146 {
1149 }
1150 else
1152 }, 48s);
1153 }
1154 else
1156 }
#define sCreatureTextMgr
Definition CreatureTextMgr.h:123
@ TEXT_RANGE_NORMAL
Definition CreatureTextMgr.h:30
bool roll_chance_f(float chance)
Definition Random.h:57
@ CHAT_MSG_ADDON
Definition SharedDefines.h:3384
@ LANG_ADDON
Definition SharedDefines.h:741
@ TEAM_NEUTRAL
Definition SharedDefines.h:750
@ UNIT_FLAG_NON_ATTACKABLE
Definition UnitDefines.h:258
@ REACT_PASSIVE
Definition Unit.h:567
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0ms)
Causes the creature to talk/say the text assigned to their entry in the creature_text database table.
Definition CreatureAI.cpp:67
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition Creature.h:100
CreatureAI * AI() const
Definition Creature.h:144
void AddEventAtOffset(BasicEvent *event, Milliseconds offset, uint8 eventGroup=0)
Definition EventProcessor.h:108
void MoveIdle()
Definition MotionMaster.cpp:235
Definition ObjectGuid.h:121
Player * ToPlayer()
Definition Object.h:202
bool EntryEquals(T... entries) const
Definition Object.h:234
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:114
Creature * GetHitCreature()
Definition SpellScript.cpp:458
Unit * GetCaster()
Definition SpellScript.cpp:401
static void Kill(Unit *killer, Unit *victim, bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition Unit.cpp:13975
MotionMaster * GetMotionMaster()
Definition Unit.h:1758
void CombatStop(bool includingCast=false, bool mutualPvP=true)
Definition Unit.cpp:7532
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:749
void KillSelf(bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition Unit.h:1235
void SetImmuneToPC(bool apply, bool keepCombat=false)
Definition Unit.cpp:10631
EventProcessor m_Events
Definition Object.h:742
Player * GetPlayer(Map const *, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:244
@ NPC_SCARLET_LORD_MCCREE
Definition zone_the_scarlet_enclave.cpp:1093
@ SAY_CRUSADER
Definition zone_the_scarlet_enclave.cpp:1079
@ SAY_PERSUADED4
Definition zone_the_scarlet_enclave.cpp:1083
@ QUEST_HOW_TO_WIN_FRIENDS
Definition zone_the_scarlet_enclave.cpp:1087
@ SAY_PERSUADED5
Definition zone_the_scarlet_enclave.cpp:1084
@ NPC_SCARLET_COMMANDER
Definition zone_the_scarlet_enclave.cpp:1090
@ SAY_PERSUADED3
Definition zone_the_scarlet_enclave.cpp:1082
@ SAY_PERSUADED2
Definition zone_the_scarlet_enclave.cpp:1081
@ SAY_PERSUADE_RAND
Definition zone_the_scarlet_enclave.cpp:1086
@ NPC_SCARLET_PREACHER
Definition zone_the_scarlet_enclave.cpp:1089
@ NPC_SCARLET_CRUSADER
Definition zone_the_scarlet_enclave.cpp:1091
@ SAY_PERSUADED6
Definition zone_the_scarlet_enclave.cpp:1085
@ SAY_PERSUADED1
Definition zone_the_scarlet_enclave.cpp:1080
@ NPC_SCARLET_MARKSMAN
Definition zone_the_scarlet_enclave.cpp:1092