18 #ifndef TRINITY_SMARTSCRIPTMGR_H
19 #define TRINITY_SMARTSCRIPTMGR_H
1386 operator bool()
const {
return entryOrGuid != 0; }
1389 typedef std::unordered_map<uint32, WayPoint*>
WPPath;
1403 m_objectList = objectList;
1404 m_baseObject = baseObject;
1407 for (ObjectList::iterator itr = objectList->begin(); itr != objectList->end(); ++itr)
1409 m_guidList->push_back((*itr)->GetGUID());
1418 m_objectList->clear();
1420 for (GuidList::iterator itr = m_guidList->begin(); itr != m_guidList->end(); ++itr)
1423 m_objectList->push_back(obj);
1425 TC_LOG_DEBUG(
"scripts.ai",
"SmartScript::mTargetStorage stores a guid to an invalid object: %s", itr->ToString().c_str());
1434 return m_objectList == objectList;
1458 if (waypoint_map.find(
id) != waypoint_map.end())
1459 return waypoint_map[
id];
1460 else return nullptr;
1486 void LoadSmartAIFromDB();
1490 SmartAIEventList temp;
1491 if (mEventMap[
uint32(type)].find(entry) != mEventMap[
uint32(type)].end())
1492 return mEventMap[
uint32(type)][entry];
1496 TC_LOG_DEBUG(
"scripts.ai",
"SmartAIMgr::GetScript: Could not load Script for Entry %d ScriptType %u.", entry,
uint32(type));
1503 SmartAIEventList::iterator itr = std::find_if(list.begin(), list.end(),
1506 if (itr != list.end())
1510 return SmartScriptHolderDummy;
1515 SmartAIEventList::iterator itr = std::find_if(list.begin(), list.end(),
1518 if (itr != list.end())
1522 return SmartScriptHolderDummy;
1584 if (!
sObjectMgr->GetGameObjectTemplate(entry))
1655 void LoadHelperStores();
1656 void UnLoadHelperStores();
1658 CacheSpellContainerBounds GetSummonCreatureSpellContainerBounds(uint32 creatureEntry)
const;
1659 CacheSpellContainerBounds GetSummonGameObjectSpellContainerBounds(uint32 gameObjectEntry)
const;
1660 CacheSpellContainerBounds GetKillCreditSpellContainerBounds(uint32 killCredit)
const;
1661 CacheSpellContainerBounds GetCreateItemSpellContainerBounds(uint32 itemId)
const;
1669 #define sSmartScriptMgr SmartAIMgr::instance()
1670 #define sSmartWaypointMgr SmartWaypointMgr::instance()
uint32 wp2
Definition: SmartScriptMgr.h:1032
bool Equals(ObjectList *objectList)
Definition: SmartScriptMgr.h:1432
Definition: SmartScriptMgr.h:1352
Definition: SmartScriptMgr.h:1066
struct SmartAction::@114::@186 goFlag
struct SmartAction::@114::@139 setInstanceData64
Definition: SmartScriptMgr.h:51
float x
Definition: SmartScriptMgr.h:42
Definition: SmartScriptMgr.h:81
uint32 count
Definition: SmartScriptMgr.h:822
Definition: SmartScriptMgr.h:106
Definition: SmartScriptMgr.h:452
Definition: SmartScriptMgr.h:1086
struct SmartAction::@114::@156 item
struct SmartAction::@114::@168 unitFlag
Definition: SmartScriptMgr.h:1099
Definition: SmartScriptMgr.h:1337
struct SmartAction::@114::@178 RespawnTarget
SmartScriptType
Definition: SmartScriptMgr.h:1208
Definition: SmartScriptMgr.h:175
struct SmartEvent::@77::@99 instancePlayerEnter
struct SmartAction::@114::@136 randomPhaseRange
Definition: SmartScriptMgr.h:125
Definition: SmartScriptMgr.h:532
Definition: SmartScriptMgr.h:1229
Definition: SmartScriptMgr.h:68
Definition: SmartScriptMgr.h:109
uint32 attack
Definition: SmartScriptMgr.h:660
uint32 speedz
Definition: SmartScriptMgr.h:951
Definition: SmartScriptMgr.h:491
Definition: SmartScriptMgr.h:53
uint32 percent
Definition: SmartScriptMgr.h:750
struct SmartEvent::@77::@92 aura
const uint32 SmartAITypeMask[SMART_SCRIPT_TYPE_MAX][2]
Definition: SmartScriptMgr.h:1237
uint32 dec
Definition: SmartScriptMgr.h:676
uint32 min
Definition: SmartScriptMgr.h:196
Definition: SmartScriptMgr.h:445
uint32 event_phase_mask
Definition: SmartScriptMgr.h:189
Definition: SmartScriptMgr.h:174
uint32 entry5
Definition: SmartScriptMgr.h:932
uint32 emote5
Definition: SmartScriptMgr.h:610
Definition: SmartScriptMgr.h:161
Definition: SmartScriptMgr.h:152
Definition: SmartScriptMgr.h:118
Definition: SmartScriptMgr.h:1081
Definition: SmartScriptMgr.h:556
Definition: SmartScriptMgr.h:543
uint32 emote
Definition: SmartScriptMgr.h:283
uint32 state
Definition: SmartScriptMgr.h:382
struct SmartAction::@114::@116 talk
Definition: SmartScriptMgr.h:529
uint32 param4
Definition: SmartScriptMgr.h:424
uint32 fly
Definition: SmartScriptMgr.h:842
uint32 charges
Definition: SmartScriptMgr.h:682
Definition: SmartScriptMgr.h:1228
Definition: SmartScriptMgr.h:495
SmartEventFlags
Definition: SmartScriptMgr.h:1333
Definition: SmartScriptMgr.h:474
uint32 gossipNpcTextId
Definition: SmartScriptMgr.h:973
uint32 dist
Definition: SmartScriptMgr.h:407
Definition: SmartScriptMgr.h:178
struct SmartAction::@114::@165 timeEvent
uint32 goRespawnTime
Definition: SmartScriptMgr.h:961
Definition: SmartScriptMgr.h:451
Definition: SmartScriptMgr.h:179
uint32 entry
Definition: SmartScriptMgr.h:1131
uint32 dist
Definition: SmartScriptMgr.h:687
Definition: SmartScriptMgr.h:492
Definition: SmartScriptMgr.h:166
struct SmartAction::@114::@152 taxi
Definition: SmartScriptMgr.h:496
uint32 textGroupID
Definition: SmartScriptMgr.h:348
Definition: SmartScriptMgr.h:1214
Definition: SmartScriptMgr.h:1217
Definition: SmartScriptMgr.h:531
SmartEvent event
Definition: SmartScriptMgr.h:1372
SMART_EVENT_PHASE_BITS
Definition: SmartScriptMgr.h:74
uint32 state
Definition: SmartScriptMgr.h:601
uint32 action
Definition: SmartScriptMgr.h:360
uint32 spell_id
Definition: SmartScriptMgr.h:939
Definition: SmartScriptMgr.h:503
uint32 reactState
Definition: SmartScriptMgr.h:804
Definition: SmartScriptMgr.h:480
Definition: SmartScriptMgr.h:173
struct SmartAction::@114::@122 react
int64_t int64
Definition: Define.h:145
Definition: SmartScriptMgr.h:461
uint32 entry3
Definition: SmartScriptMgr.h:930
uint32 param6
Definition: SmartScriptMgr.h:1055
Definition: SmartScriptMgr.h:1230
Definition: SmartScriptMgr.h:1062
SMARTAI_TARGETS type
Definition: SmartScriptMgr.h:1117
~ObjectGuidList()
Definition: SmartScriptMgr.h:1437
Definition: SmartScriptMgr.h:1445
Definition: SmartScriptMgr.h:115
SmartAIMgr()
Definition: SmartScriptMgr.h:1480
bool IsCreatureValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1562
Definition: SmartScriptMgr.h:1343
uint32 cooldownMin
Definition: SmartScriptMgr.h:204
Definition: SmartScriptMgr.h:1085
uint32 maxHpPct
Definition: SmartScriptMgr.h:398
uint32 param3
Definition: SmartScriptMgr.h:1203
uint32 id
Definition: SmartScriptMgr.h:307
struct SmartEvent::@77::@102 timedEvent
Definition: SmartScriptMgr.h:151
uint32 playerOnly
Definition: SmartScriptMgr.h:206
uint32 sheath
Definition: SmartScriptMgr.h:739
uint32 flag1
Definition: SmartScriptMgr.h:640
Definition: SmartScriptMgr.h:122
struct SmartTarget::@194::@204 goDistance
bool IsSoundValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1642
uint32 sender
Definition: SmartScriptMgr.h:359
Definition: SmartScriptMgr.h:1098
uint32 max
Definition: SmartScriptMgr.h:197
uint32 effIndex
Definition: SmartScriptMgr.h:366
std::vector< SmartScriptHolder > SmartAIEventList
Definition: SmartScriptMgr.h:1468
struct SmartTarget::@194::@196 unitRange
Definition: SmartScriptMgr.h:550
DBCStorage< AreaTriggerEntry > sAreaTriggerStore(AreaTriggerfmt)
Definition: SmartScriptMgr.h:1212
Definition: SmartScriptMgr.h:112
Definition: SmartScriptMgr.h:548
Definition: SmartScriptMgr.h:460
struct SmartAction::@114::@154 wpPause
uint32 phaseMax
Definition: SmartScriptMgr.h:707
uint32 useTalkTarget
Definition: SmartScriptMgr.h:569
Definition: SmartScriptMgr.h:498
struct SmartAction::@114::@132 incEventPhase
uint32 creatureEntry
Definition: SmartScriptMgr.h:349
struct SmartAction::@114::@172 timedActionList
Definition: SmartScriptMgr.h:143
uint32 link
Definition: SmartScriptMgr.h:1370
WorldObject * m_baseObject
Definition: SmartScriptMgr.h:1397
Definition: SmartScriptMgr.h:54
void LoadFromDB()
Definition: AddonMgr.cpp:40
uint32 timerType
Definition: SmartScriptMgr.h:923
Definition: SmartScriptMgr.h:1065
Definition: SmartScriptMgr.h:181
Definition: SmartScriptMgr.h:526
Definition: SmartScriptMgr.h:1335
struct SmartAction::@114::@125 summonCreature
Definition: SmartScriptMgr.h:559
struct SmartEvent::@77::@104 dummy
float z
Definition: SmartScriptMgr.h:44
Definition: SmartScriptMgr.h:135
uint32 minHP
Definition: SmartScriptMgr.h:749
struct SmartAction::@114::@182 sendTargetToTarget
uint32 flag3
Definition: SmartScriptMgr.h:642
Definition: SmartScriptMgr.h:123
Definition: SmartScriptMgr.h:485
struct SmartEvent::@77::@95 dataSet
uint32 number
Definition: SmartScriptMgr.h:865
uint32 onlySelf
Definition: SmartScriptMgr.h:586
struct SmartAction::@114::@128 removeUnitFlag
Definition: SmartScriptMgr.h:140
Definition: SmartScriptMgr.h:454
uint32 wp3
Definition: SmartScriptMgr.h:1033
uint32 withDelayed
Definition: SmartScriptMgr.h:938
struct SmartAction::@114::@129 autoAttack
Definition: SmartScriptMgr.h:108
Definition: SmartScriptMgr.h:1341
uint32 phase5
Definition: SmartScriptMgr.h:700
uint32 emote2
Definition: SmartScriptMgr.h:607
Definition: SmartScriptMgr.h:137
Definition: SmartScriptMgr.h:439
struct SmartAction::@114::@173 randTimedActionList
struct SmartAction::@114::@190 gameEventStart
struct SmartAction::@114::@158 setRun
uint32 GetEventType() const
Definition: SmartScriptMgr.h:1377
Definition: SmartScriptMgr.h:131
uint32 model
Definition: SmartScriptMgr.h:580
Definition: SmartScriptMgr.h:489
Definition: SmartScriptMgr.h:124
Definition: SmartScriptMgr.h:518
Definition: SmartScriptMgr.h:180
Definition: SmartScriptMgr.h:478
struct SmartAction::@114::@130 combatMove
struct SmartAction::@114::@184 setHealthRegen
uint32 max
Definition: SmartScriptMgr.h:877
struct SmartAction::@114::@162 setCounter
uint32 hpDeficit
Definition: SmartScriptMgr.h:248
Definition: SmartScriptMgr.h:141
Definition: SmartScriptMgr.h:1082
Definition: SmartScriptMgr.h:76
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: SmartScriptMgr.h:1225
struct SmartAction::@114::@170 delunitByte
uint32 speedxy
Definition: SmartScriptMgr.h:950
Definition: SmartScriptMgr.h:145
#define false
Definition: CascPort.h:18
Definition: SmartScriptMgr.h:150
struct SmartAction::@114::@161 teleport
float y
Definition: SmartScriptMgr.h:1118
Definition: SmartScriptMgr.h:525
uint32 inc
Definition: SmartScriptMgr.h:675
uint32 pointId
Definition: SmartScriptMgr.h:966
struct SmartTarget::@194::@209 raw
SmartAIEventList GetScript(int32 entry, SmartScriptType type)
Definition: SmartScriptMgr.h:1488
SMART_ACTION
Definition: SmartScriptMgr.h:437
CacheSpellContainer CreateItemSpellStore
Definition: SmartScriptMgr.h:1666
struct SmartEvent::@77::@88 missingBuff
struct SmartAction::@114::@143 forceDespawn
uint32 phase3
Definition: SmartScriptMgr.h:698
bool active
Definition: SmartScriptMgr.h:1382
struct SmartAction::@114::@127 addUnitFlag
Definition: SmartScriptMgr.h:511
Definition: SmartScriptMgr.h:1393
Definition: SmartScriptMgr.h:515
Definition: SmartScriptMgr.h:509
Definition: SmartScriptMgr.h:1233
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
Definition: SmartScriptMgr.h:176
Definition: SmartScriptMgr.h:1216
SMARTAI_TEMPLATE
Definition: SmartScriptMgr.h:1060
uint32 event_id
Definition: SmartScriptMgr.h:1369
Definition: SmartScriptMgr.h:62
struct SmartAction::@114::@137 killedMonster
struct SmartAction::@114::@157 installTtemplate
Definition: SmartScriptMgr.h:479
Definition: SmartScriptMgr.h:1064
Definition: SmartScriptMgr.h:466
struct SmartAction::@114::@193 raw
uint32 radius
Definition: SmartScriptMgr.h:249
uint32 range
Definition: SmartScriptMgr.h:733
Definition: SmartScriptMgr.h:494
const uint32 SmartAIEventMask[SMART_EVENT_END][2]
Definition: SmartScriptMgr.h:1251
Definition: SmartScriptMgr.h:163
CacheSpellContainer SummonGameObjectSpellStore
Definition: SmartScriptMgr.h:1664
Definition: SmartScriptMgr.h:138
uint32 value
Definition: SmartScriptMgr.h:858
struct SmartAction::@114::@188 power
Definition: SmartScriptMgr.h:160
uint32 regenHealth
Definition: SmartScriptMgr.h:994
uint32 repeatMax
Definition: SmartScriptMgr.h:879
Definition: SmartScriptMgr.h:549
Definition: SmartScriptMgr.h:551
uint32 repeat
Definition: SmartScriptMgr.h:801
struct SmartEvent::@77::@105 behindTarget
Definition: SmartScriptMgr.h:177
Definition: SmartScriptMgr.h:170
Definition: SmartScriptMgr.h:1213
struct SmartAction::@114::@145 ingamePhaseId
Definition: SmartScriptMgr.h:116
Definition: SmartScriptMgr.h:444
CacheSpellContainer SummonCreatureSpellStore
Definition: SmartScriptMgr.h:1663
uint32 flag2
Definition: SmartScriptMgr.h:641
uint32 maxDist
Definition: SmartScriptMgr.h:221
Definition: SmartScriptMgr.h:114
Definition: SmartScriptMgr.h:1084
Definition: SmartScriptMgr.h:130
uint32 threatINC
Definition: SmartScriptMgr.h:634
const uint32 SmartPhaseMask[SMART_EVENT_PHASE_COUNT][2]
Definition: SmartScriptMgr.h:89
uint32 run
Definition: SmartScriptMgr.h:799
uint32 event_flags
Definition: SmartScriptMgr.h:191
Definition: SmartScriptMgr.h:65
Definition: SmartScriptMgr.h:66
uint32 mask
Definition: SmartScriptMgr.h:891
uint32 cooldownMax
Definition: SmartScriptMgr.h:205
#define sObjectMgr
Definition: ObjectMgr.h:1567
SmartScriptHolder()
Definition: SmartScriptMgr.h:1363
Definition: SmartScriptMgr.h:1079
Definition: SmartScriptMgr.h:78
struct SmartAction::@114::@155 wpStop
uint32 flag
Definition: SmartScriptMgr.h:899
Definition: SmartScriptMgr.h:171
ObjectGuidList(ObjectList *objectList, WorldObject *baseObject)
Definition: SmartScriptMgr.h:1400
Definition: SmartScriptMgr.h:111
uint32 param2
Definition: SmartScriptMgr.h:422
Definition: SmartScriptMgr.h:169
uint32 maxDist
Definition: SmartScriptMgr.h:1125
Definition: SmartScriptMgr.h:440
TC_GAME_API WorldObject * GetWorldObject(WorldObject const &, ObjectGuid const &)
Definition: ObjectAccessor.cpp:79
uint32 area
Definition: SmartScriptMgr.h:230
uint32 dead
Definition: SmartScriptMgr.h:1184
struct SmartEvent::@77::@103 gossip
struct SmartEvent::@77::@83 respawn
Definition: SmartScriptMgr.h:1232
Definition: SmartScriptMgr.h:120
uint32 map
Definition: SmartScriptMgr.h:1177
std::list< ObjectGuid > GuidList
Definition: ObjectGuid.h:333
struct SmartEvent::@77::@108 eventInform
struct SmartTarget::@194::@198 unitDistance
struct SmartTarget::@194::@208 closestFriendly
T max(const T &x, const T &y)
Definition: g3dmath.h:320
Definition: SmartScriptMgr.h:1095
struct SmartEvent::@77::@107 goStateChanged
Definition: SmartScriptMgr.h:1345
DBCStorage< EmotesEntry > sEmotesStore(Emotesfmt)
Definition: SmartScriptMgr.h:1104
#define bool
Definition: CascPort.h:16
Definition: SmartScriptMgr.h:60
Definition: SmartScriptMgr.h:31
struct SmartAction::@114::@183 setRangedMovement
Definition: SmartScriptMgr.h:1336
struct SmartEvent::@77::@79 minMaxRepeat
uint32 id
Definition: SmartScriptMgr.h:41
struct SmartAction::@114::@166 movie
uint32 flag5
Definition: SmartScriptMgr.h:644
uint32 param1
Definition: SmartScriptMgr.h:421
uint32 guid
Definition: SmartScriptMgr.h:405
Definition: SmartScriptMgr.h:1078
Definition: SmartScriptMgr.h:127
struct SmartAction::@114::@171 enterVehicle
uint32 flags
Definition: SmartScriptMgr.h:617
Definition: SmartScriptMgr.h:121
Definition: SmartScriptMgr.h:148
uint32 entry4
Definition: SmartScriptMgr.h:931
Definition: SmartScriptMgr.h:1067
Definition: SmartScriptMgr.h:510
Definition: SmartScriptMgr.h:432
Definition: SmartScriptMgr.h:154
uint32 param1
Definition: SmartScriptMgr.h:1201
Definition: SmartScriptMgr.h:158
std::unordered_map< uint32, WPPath * > waypoint_map
Definition: SmartScriptMgr.h:1464
Definition: SmartScriptMgr.h:50
struct SmartAction::@114::@147 setData
Definition: SmartScriptMgr.h:441
SmartTarget target
Definition: SmartScriptMgr.h:1374
Definition: SmartScriptMgr.h:462
Definition: SmartScriptMgr.h:534
Definition: SmartScriptMgr.h:499
uint32 data
Definition: SmartScriptMgr.h:718
Definition: SmartScriptMgr.h:63
struct SmartAction::@114::@181 setGoLootState
Definition: SmartScriptMgr.h:1340
uint32 entry1
Definition: SmartScriptMgr.h:928
struct SmartEvent::@77::@94 movementInform
uint32 delay
Definition: SmartScriptMgr.h:744
std::list< WorldObject * > ObjectList
Definition: SmartScriptMgr.h:1391
Definition: SmartScriptMgr.h:142
struct SmartEvent::@77::@82 los
Definition: SmartScriptMgr.h:453
Definition: SmartScriptMgr.h:536
Definition: SmartScriptMgr.h:1096
T min(const T &x, const T &y)
Definition: g3dmath.h:305
Definition: SmartScriptMgr.h:82
bool IsEmoteValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1622
Definition: SmartScriptMgr.h:1074
Definition: SmartScriptMgr.h:172
Definition: SmartScriptMgr.h:110
Definition: SmartScriptMgr.h:475
Definition: SmartScriptMgr.h:507
Definition: SmartScriptMgr.h:472
Definition: SmartScriptMgr.h:128
uint32 spellId
Definition: SmartScriptMgr.h:243
uint32 spell
Definition: SmartScriptMgr.h:616
uint32 factionID
Definition: SmartScriptMgr.h:574
uint32 id
Definition: SmartScriptMgr.h:1153
struct SmartAction::@114::@164 storeTargets
std::unordered_map< int64, SmartAIEventList > SmartAIEventMap
Definition: SmartScriptMgr.h:1471
Definition: SmartScriptMgr.h:167
Definition: SmartScriptMgr.h:477
Definition: SmartScriptMgr.h:442
Definition: SmartScriptMgr.h:434
Definition: SmartScriptMgr.h:547
struct SmartAction::@114::@177 flee
Definition: SmartScriptMgr.h:450
uint32 slot2
Definition: SmartScriptMgr.h:893
Definition: SmartScriptMgr.h:469
struct SmartTarget::@194::@202 goRange
std::pair< CacheSpellContainer::const_iterator, CacheSpellContainer::const_iterator > CacheSpellContainerBounds
Definition: SmartScriptMgr.h:1475
Definition: SmartScriptMgr.h:522
uint32 entry
Definition: SmartScriptMgr.h:406
Definition: SmartScriptMgr.h:1087
Definition: SmartScriptMgr.h:517
Definition: SmartScriptMgr.h:521
Definition: SmartScriptMgr.h:52
Definition: SmartScriptMgr.h:448
struct SmartAction::@114::@123 randomEmote
Definition: SmartScriptMgr.h:458
uint32 type
Definition: SmartScriptMgr.h:627
Definition: SmartScriptMgr.h:1219
struct SmartAction::@114::@151 active
Definition: SmartScriptMgr.h:490
Definition: SmartScriptMgr.h:64
Definition: SmartScriptMgr.h:533
struct SmartEvent::@77::@81 spellHit
Definition: SmartScriptMgr.h:1210
ObjectList * GetObjectList()
Definition: SmartScriptMgr.h:1413
bool IsAreaTriggerValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1632
uint32 targetParam2
Definition: SmartScriptMgr.h:620
ObjectList * m_objectList
Definition: SmartScriptMgr.h:1395
Definition: SmartScriptMgr.h:471
uint32 repeatMin
Definition: SmartScriptMgr.h:198
Definition: SmartScriptMgr.h:1357
bool IsTextEmoteValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1612
struct SmartAction::@114::@135 randomPhase
uint32 school
Definition: SmartScriptMgr.h:213
Definition: SmartScriptMgr.h:502
Definition: SmartScriptMgr.h:71
Definition: SmartScriptMgr.h:1342
uint32 repeat
Definition: SmartScriptMgr.h:408
struct SmartAction::@114::@149 visibility
GuidList * m_guidList
Definition: SmartScriptMgr.h:1396
struct SmartTarget::@194::@197 unitGUID
Definition: SmartScriptMgr.h:162
uint32 id
Definition: SmartScriptMgr.h:755
Definition: SmartScriptMgr.h:470
Definition: SmartScriptMgr.h:505
uint32 count
Definition: SmartScriptMgr.h:291
struct SmartAction::@114::@142 setSheath
struct SmartEvent::@77::@85 targetCasting
uint32 min
Definition: SmartScriptMgr.h:876
Definition: SmartScriptMgr.h:473
uint32 groupId
Definition: SmartScriptMgr.h:761
uint32 textGroupID
Definition: SmartScriptMgr.h:567
struct SmartEvent::@77::@89 summoned
std::map< uint32, std::pair< uint32, SpellEffIndex > > CacheSpellContainer
Definition: SmartScriptMgr.h:1474
uint32 param2
Definition: SmartScriptMgr.h:829
struct SmartTarget::@194::@206 closest
uint32 param5
Definition: SmartScriptMgr.h:832
uint32 emote4
Definition: SmartScriptMgr.h:609
Definition: SmartScriptMgr.h:1338
Definition: SmartScriptMgr.h:530
DB2Storage< ItemEntry > sItemStore("Item.db2", ItemFormat, HOTFIX_SEL_ITEM)
#define SI64FMTD
Definition: Define.h:140
Definition: SmartScriptMgr.h:149
SpellEffIndex
Definition: SharedDefines.h:26
uint32 anim
Definition: SmartScriptMgr.h:945
struct SmartAction::@114::@176 jump
struct SmartEvent::@77::@96 waypoint
Definition: SmartScriptMgr.h:1231
#define sSpellMgr
Definition: SpellMgr.h:756
uint32 timer
Definition: SmartScriptMgr.h:1381
uint32 map
Definition: SmartScriptMgr.h:229
Definition: SmartScriptMgr.h:468
Definition: SmartScriptMgr.h:107
SmartWaypointMgr()
Definition: SmartScriptMgr.h:1448
uint32 param4
Definition: SmartScriptMgr.h:831
uint32 move
Definition: SmartScriptMgr.h:665
Definition: SmartScriptMgr.h:157
int32_t int32
Definition: Define.h:146
Definition: SmartScriptMgr.h:79
Definition: SmartScriptMgr.h:446
bool IsSpellValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1592
Definition: SmartScriptMgr.h:67
Definition: SmartScriptMgr.h:113
SMART_EVENT
Definition: SmartScriptMgr.h:102
uint32 wp6
Definition: SmartScriptMgr.h:1036
uint32 minDist
Definition: SmartScriptMgr.h:1124
uint32 gameEventId
Definition: SmartScriptMgr.h:377
uint32_t uint32
Definition: Define.h:150
Definition: SmartScriptMgr.h:455
bool NotNULL(SmartScriptHolder const &e, uint32 data)
Definition: SmartScriptMgr.h:1552
struct SmartAction::@114::@131 setEventPhase
uint32 value
Definition: SmartScriptMgr.h:313
Definition: SmartScriptMgr.h:49
struct SmartAction::@114::@133 removeAura
float z
Definition: SmartScriptMgr.h:1118
Definition: SmartScriptMgr.h:153
Definition: SmartScriptMgr.h:527
Definition: SmartScriptMgr.h:139
uint32 phase1
Definition: SmartScriptMgr.h:696
Definition: SmartScriptMgr.h:69
struct SmartAction::@114::@175 sendGoCustomAnim
std::unordered_map< uint32, WayPoint * > WPPath
Definition: SmartScriptMgr.h:1389
struct SmartAction::@114::@138 setInstanceData
uint32 gossipMenuId
Definition: SmartScriptMgr.h:972
uint32 wp1
Definition: SmartScriptMgr.h:1031
Definition: SmartScriptMgr.h:488
Definition: SmartScriptMgr.h:86
struct SmartEvent::@77::@113 raw
Definition: SmartScriptMgr.h:1215
struct SmartAction::@114::@167 equip
uint32 emote3
Definition: SmartScriptMgr.h:608
Definition: SmartScriptMgr.h:80
Definition: SmartScriptMgr.h:457
Definition: SmartScriptMgr.h:164
uint32 param3
Definition: SmartScriptMgr.h:423
std::unordered_map< uint32, ObjectGuidList * > ObjectListMap
Definition: SmartScriptMgr.h:1443
Definition: SmartScriptMgr.h:165
Definition: SmartScriptMgr.h:449
Definition: SmartScriptMgr.h:85
struct SmartAction::@114::@169 setunitByte
Definition: SmartScriptMgr.h:524
SMART_EVENT type
Definition: SmartScriptMgr.h:188
Definition: SmartScriptMgr.h:465
Definition: SmartScriptMgr.h:1080
uint32 transport
Definition: SmartScriptMgr.h:967
uint32 targetParam3
Definition: SmartScriptMgr.h:621
uint32 phase6
Definition: SmartScriptMgr.h:701
float y
Definition: SmartScriptMgr.h:43
Definition: SmartScriptMgr.h:1089
struct SmartAction::@114::@179 MoveToPos
bool enableTimed
Definition: SmartScriptMgr.h:1384
Definition: SmartScriptMgr.h:537
uint32 chance
Definition: SmartScriptMgr.h:880
uint32 creature
Definition: SmartScriptMgr.h:207
struct SmartAction::@114::@140 updateTemplate
Definition: SmartScriptMgr.h:459
float x
Definition: SmartScriptMgr.h:1118
uint32 slot3
Definition: SmartScriptMgr.h:894
struct SmartEvent::@77::@87 friendlyCC
Definition: SmartScriptMgr.h:1088
uint32 creditType
Definition: SmartScriptMgr.h:691
struct SmartAction::@114::@150 summonGO
uint32 pathID
Definition: SmartScriptMgr.h:800
Definition: SmartScriptMgr.h:519
struct SmartEvent::@77::@86 friendlyHealth
float o
Definition: SmartScriptMgr.h:1118
uint32 creature
Definition: SmartScriptMgr.h:1123
uint32 flag4
Definition: SmartScriptMgr.h:643
uint32 repeatMax
Definition: SmartScriptMgr.h:199
uint32 credit
Definition: SmartScriptMgr.h:690
Definition: SmartScriptMgr.h:83
uint32 spell
Definition: SmartScriptMgr.h:212
bool IsItemValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1602
Definition: SmartScriptMgr.h:105
uint32 phase
Definition: SmartScriptMgr.h:670
Definition: SmartScriptMgr.h:1339
Definition: SmartScriptMgr.h:481
Definition: SmartScriptMgr.h:1101
Definition: SmartScriptMgr.h:1356
uint32 repeatMin
Definition: SmartScriptMgr.h:878
Definition: SmartScriptMgr.h:1091
Definition: SmartScriptMgr.h:476
struct SmartEvent::@77::@84 minMax
struct SmartAction::@114::@163 storeVar
struct SmartAction::@114::@191 closestWaypointFromList
Definition: SmartScriptMgr.h:1093
Definition: SmartScriptMgr.h:487
struct SmartAction::@114::@192 randomSound
Definition: SmartScriptMgr.h:168
Definition: SmartScriptMgr.h:516
uint32 quest
Definition: SmartScriptMgr.h:278
SmartTarget(SMARTAI_TARGETS t=SMART_TARGET_NONE, uint32 p1=0, uint32 p2=0, uint32 p3=0)
Definition: SmartScriptMgr.h:1106
struct SmartAction::@114::@153 wpStart
uint32 noHostile
Definition: SmartScriptMgr.h:220
uint32 flag6
Definition: SmartScriptMgr.h:645
struct SmartAction::@114::@126 threatPCT
Definition: SmartScriptMgr.h:1346
CacheSpellContainer KillCreditSpellStore
Definition: SmartScriptMgr.h:1665
uint32 param1
Definition: SmartScriptMgr.h:828
uint32 reset
Definition: SmartScriptMgr.h:859
Definition: SmartScriptMgr.h:84
struct SmartAction::@114::@148 moveRandom
Definition: SmartScriptMgr.h:1220
Definition: SmartScriptMgr.h:1351
int64 entryOrGuid
Definition: SmartScriptMgr.h:1367
uint32 param3
Definition: SmartScriptMgr.h:830
Definition: SmartScriptMgr.h:146
Definition: SmartScriptMgr.h:482
Definition: SmartScriptMgr.h:59
uint32 GetActionType() const
Definition: SmartScriptMgr.h:1378
Definition: SmartScriptMgr.h:77
struct SmartTarget::@194::@199 playerDistance
SmartAction action
Definition: SmartScriptMgr.h:1373
Definition: SmartScriptMgr.h:544
Definition: SmartScriptMgr.h:1097
uint32 emote1
Definition: SmartScriptMgr.h:606
uint32 GetScriptType() const
Definition: SmartScriptMgr.h:1376
uint32 byte1
Definition: SmartScriptMgr.h:905
Definition: SmartScriptMgr.h:456
Definition: SmartScriptMgr.h:523
struct SmartEvent::@77::@101 textOver
uint32 group
Definition: SmartScriptMgr.h:1009
uint32 mapID
Definition: SmartScriptMgr.h:852
#define TC_GAME_API
Definition: Define.h:134
static SmartScriptHolder & FindLinkedSourceEvent(SmartAIEventList &list, uint32 eventId)
Definition: SmartScriptMgr.h:1501
Definition: SmartScriptMgr.h:538
uint32 targetType
Definition: SmartScriptMgr.h:618
Definition: SmartScriptMgr.h:1073
Definition: SmartScriptMgr.h:134
uint32 type
Definition: SmartScriptMgr.h:228
Definition: SmartScriptMgr.h:1094
uint32 entry6
Definition: SmartScriptMgr.h:933
struct SmartAction::@114::@117 faction
Definition: SmartScriptMgr.h:506
Definition: SmartScriptMgr.h:1218
Definition: SmartScriptMgr.h:1063
Definition: SmartScriptMgr.h:545
Definition: SmartScriptMgr.h:136
Definition: SmartScriptMgr.h:119
uint32 threatDEC
Definition: SmartScriptMgr.h:635
uint32 entry
Definition: SmartScriptMgr.h:689
Definition: SmartScriptMgr.h:431
struct SmartEvent::@77::@106 gameEvent
Definition: SmartScriptMgr.h:514
Definition: SmartScriptMgr.h:483
uint32 wp5
Definition: SmartScriptMgr.h:1035
uint32 slot1
Definition: SmartScriptMgr.h:892
struct SmartAction::@114::@187 creatureGroup
Definition: SmartScriptMgr.h:117
Definition: SmartScriptMgr.h:132
Definition: SmartScriptMgr.h:520
#define ASSERT
Definition: Errors.h:55
struct SmartTarget::@194::@205 position
Definition: SmartScriptMgr.h:104
eSmartAI
Definition: SmartScriptMgr.h:47
Definition: SmartScriptMgr.h:513
SmartScriptType source_type
Definition: SmartScriptMgr.h:1368
uint32 sound
Definition: SmartScriptMgr.h:585
Definition: SmartScriptMgr.h:554
uint32 pointID
Definition: SmartScriptMgr.h:320
Definition: SmartScriptMgr.h:1090
uint32 minHpPct
Definition: SmartScriptMgr.h:397
uint32 GetTargetType() const
Definition: SmartScriptMgr.h:1379
uint32 powerType
Definition: SmartScriptMgr.h:1015
uint32 counterId
Definition: SmartScriptMgr.h:857
WPPath * GetPath(uint32 id)
Definition: SmartScriptMgr.h:1456
Definition: SmartScriptMgr.h:501
struct SmartAction::@114::@144 invincHP
uint32 playerOnly
Definition: SmartScriptMgr.h:1190
DBCStorage< EmotesTextEntry > sEmotesTextStore(EmotesTextfmt)
Definition: SmartScriptMgr.h:1092
Definition: SmartScriptMgr.h:147
Definition: SmartScriptMgr.h:133
uint32 param2
Definition: SmartScriptMgr.h:1202
struct SmartAction::@114::@160 setSwim
uint32 distance
Definition: SmartScriptMgr.h:773
#define TC_LOG_ERROR(filterType__,...)
Definition: Log.h:207
struct SmartAction::@114::@180 sendGossipMenu
Definition: SmartScriptMgr.h:443
uint32 event_chance
Definition: SmartScriptMgr.h:190
uint32 dist
Definition: SmartScriptMgr.h:1137
struct SmartAction::@114::@124 cast
Definition: SmartScriptMgr.h:186
bool IsGameObjectValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1582
struct SmartAction::@114::@141 callHelp
uint32 targetParam1
Definition: SmartScriptMgr.h:619
Definition: SmartScriptMgr.h:497
uint32 phase2
Definition: SmartScriptMgr.h:697
struct SmartEvent::@77::@80 kill
Definition: SmartScriptMgr.h:1361
uint32_t uint32
Definition: g3dmath.h:168
uint32 dbGuid
Definition: SmartScriptMgr.h:1130
Definition: SmartScriptMgr.h:493
Definition: SmartScriptMgr.h:1075
uint32 team
Definition: SmartScriptMgr.h:336
Definition: SmartScriptMgr.h:1211
uint32 creature
Definition: SmartScriptMgr.h:579
Definition: SmartScriptMgr.h:508
struct SmartEvent::@77::@112 counter
Definition: SmartScriptMgr.h:542
Definition: SmartScriptMgr.h:1083
Definition: SmartScriptMgr.h:552
uint32 apply
Definition: SmartScriptMgr.h:756
struct SmartTarget::@194::@200 playerRange
Definition: SmartScriptMgr.h:159
SmartAITypeMaskId
Definition: SmartScriptMgr.h:1223
struct SmartEvent::@77::@98 transportRelocate
SmartCastFlags
Definition: SmartScriptMgr.h:1349
uint32 seat
Definition: SmartScriptMgr.h:917
struct SmartEvent::@77::@109 doAction
struct SmartAction::@114::@174 interruptSpellCasting
uint32 eventId
Definition: SmartScriptMgr.h:387
Definition: SmartScriptMgr.h:464
struct SmartAction::@114::@118 morphOrMount
uint32 phaseMin
Definition: SmartScriptMgr.h:706
uint32 fail
Definition: SmartScriptMgr.h:816
Definition: SmartScriptMgr.h:1477
Definition: SmartScriptMgr.h:1076
Definition: SmartScriptMgr.h:1068
uint32 field
Definition: SmartScriptMgr.h:717
uint32 phase4
Definition: SmartScriptMgr.h:699
Definition: SmartScriptMgr.h:61
Definition: SmartScriptMgr.h:1234
struct SmartEvent::@77::@93 targetAura
Definition: SmartScriptMgr.h:447
struct SmartEvent::@77::@111 distance
Definition: SmartScriptMgr.h:512
uint32 emote6
Definition: SmartScriptMgr.h:611
Definition: SmartScriptMgr.h:484
Definition: SmartScriptMgr.h:467
struct SmartAction::@114::@189 gameEventStop
uint32 quest
Definition: SmartScriptMgr.h:596
SMART_SCRIPT_RESPAWN_CONDITION
Definition: SmartScriptMgr.h:429
uint32 angle
Definition: SmartScriptMgr.h:688
Definition: SmartScriptMgr.h:463
Definition: SmartScriptMgr.h:528
uint32 entry2
Definition: SmartScriptMgr.h:929
Definition: SmartScriptMgr.h:500
struct SmartTarget::@194::@207 closestAttackable
struct SmartEvent::@77::@110 friendlyHealthPct
Definition: SmartScriptMgr.h:129
Definition: SmartScriptMgr.h:433
Definition: SmartScriptMgr.h:504
WayPoint(uint32 _id, float _x, float _y, float _z)
Definition: SmartScriptMgr.h:33
uint32 withInstant
Definition: SmartScriptMgr.h:940
uint32 despawnTime
Definition: SmartScriptMgr.h:784
Definition: SmartScriptMgr.h:155
Definition: SmartScriptMgr.h:126
struct SmartTarget::@194::@203 goGUID
uint32 pathID
Definition: SmartScriptMgr.h:321
struct SmartEvent::@77::@100 areatrigger
uint32 attackInvoker
Definition: SmartScriptMgr.h:629
uint32 swim
Definition: SmartScriptMgr.h:847
~SmartAIMgr()
Definition: SmartScriptMgr.h:1481
uint32 newPower
Definition: SmartScriptMgr.h:1016
uint32 wp4
Definition: SmartScriptMgr.h:1034
struct SmartEvent::@77::@97 transportAddCreature
bool runOnce
Definition: SmartScriptMgr.h:1383
uint32 withEmote
Definition: SmartScriptMgr.h:734
Definition: SmartScriptMgr.h:144
Definition: SmartScriptMgr.h:535
SMARTAI_TARGETS
Definition: SmartScriptMgr.h:1071
Definition: SmartScriptMgr.h:1226
SMART_EVENT_PHASE
Definition: SmartScriptMgr.h:57
bool IsQuestValid(SmartScriptHolder const &e, uint32 entry)
Definition: SmartScriptMgr.h:1572
struct SmartTarget::@194::@201 stored
SMART_ACTION type
Definition: SmartScriptMgr.h:561
struct SmartAction::@114::@134 follow
bool IsMinMaxValid(SmartScriptHolder const &e, uint32 min, uint32 max)
Definition: SmartScriptMgr.h:1532
DB2Storage< SoundEntriesEntry > sSoundEntriesStore("SoundEntries.db2", SoundEntriesFormat, HOTFIX_SEL_SOUND_ENTRIES)
Definition: SmartScriptMgr.h:183
Definition: SmartScriptMgr.h:1077
struct SmartAction::@114::@159 setFly
Definition: SmartScriptMgr.h:546
Definition: SmartScriptMgr.h:1227
std::array< uint32, SMART_ACTION_PARAM_COUNT-1 > sounds
Definition: SmartScriptMgr.h:1041
Definition: SmartScriptMgr.h:156
struct SmartAction::@114::@146 ingamePhaseGroup
uint32 emote
Definition: SmartScriptMgr.h:591
uint32 root
Definition: SmartScriptMgr.h:999
struct SmartAction::@114::@185 setRoot
Definition: SmartScriptMgr.h:540
Definition: SmartScriptMgr.h:486
static SmartScriptHolder & FindLinkedEvent(SmartAIEventList &list, uint32 link)
Definition: SmartScriptMgr.h:1513
Definition: SmartScriptMgr.h:539
Definition: SmartScriptMgr.h:553
uint32 duration
Definition: SmartScriptMgr.h:568
Definition: SmartScriptMgr.h:541