1116 {
1119
1120 if (!creature || !player)
1121 return;
1122
1124 return;
1125
1127
1129 {
1135
1140
1142
1144 {
1147 }, 40s);
1148
1150 {
1152
1154 {
1157 }
1158 else
1160 }, 48s);
1161 }
1162 else
1164 }
#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:574
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:99
CreatureAI * AI() const
Definition Creature.h:143
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:208
bool EntryEquals(T... entries) const
Definition Object.h:240
static ObjectGuid GetGUID(Object const *o)
Definition Object.h:120
Creature * GetHitCreature()
Definition SpellScript.cpp:463
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:13651
MotionMaster * GetMotionMaster()
Definition Unit.h:1774
void CombatStop(bool includingCast=false, bool mutualPvP=true, bool keepPvPForOthers=false)
Definition Unit.cpp:7303
void SetUnitFlag(UnitFlags flags)
UnitFlags available in UnitDefines.h.
Definition Unit.h:754
void KillSelf(bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition Unit.h:1252
void SetImmuneToPC(bool apply, bool keepCombat=false)
Definition Unit.cpp:10423
EventProcessor m_Events
Definition Object.h:749
Player * GetPlayer(Map const *, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:244
@ NPC_SCARLET_LORD_MCCREE
Definition zone_the_scarlet_enclave.cpp:1101
@ SAY_CRUSADER
Definition zone_the_scarlet_enclave.cpp:1087
@ SAY_PERSUADED4
Definition zone_the_scarlet_enclave.cpp:1091
@ QUEST_HOW_TO_WIN_FRIENDS
Definition zone_the_scarlet_enclave.cpp:1095
@ SAY_PERSUADED5
Definition zone_the_scarlet_enclave.cpp:1092
@ NPC_SCARLET_COMMANDER
Definition zone_the_scarlet_enclave.cpp:1098
@ SAY_PERSUADED3
Definition zone_the_scarlet_enclave.cpp:1090
@ SAY_PERSUADED2
Definition zone_the_scarlet_enclave.cpp:1089
@ SAY_PERSUADE_RAND
Definition zone_the_scarlet_enclave.cpp:1094
@ NPC_SCARLET_PREACHER
Definition zone_the_scarlet_enclave.cpp:1097
@ NPC_SCARLET_CRUSADER
Definition zone_the_scarlet_enclave.cpp:1099
@ SAY_PERSUADED6
Definition zone_the_scarlet_enclave.cpp:1093
@ SAY_PERSUADED1
Definition zone_the_scarlet_enclave.cpp:1088
@ NPC_SCARLET_MARKSMAN
Definition zone_the_scarlet_enclave.cpp:1100