186{
188
189
191 {
194 return;
195 }
196
197
199
200 if (unit)
202 else if (gob)
204
206 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction: Invoker: {} ({})", tempInvoker->GetName(), tempInvoker->GetGUID().ToString());
207
209
212 if (unit)
213 invoker = unit;
214 else if (gob)
215 invoker = gob;
216
218
220 {
222 {
225
227 {
228 if (
IsCreature((target)) && !target->ToCreature()->IsPet())
229 {
231 {
234 }
235 else
237 break;
238 }
240 {
243 break;
244 }
245 }
246
247 if (!talkTarget)
249
250 if (!talker)
251 break;
252
254 {
256 break;
257 }
258
263
266 break;
267 }
269 {
271 {
275 {
278 }
279
280 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_SIMPLE_TALK: talker: {} ({}), textGroupId: {}",
282 }
283 break;
284 }
286 {
288 {
290 {
291 target->ToUnit()->HandleEmoteCommand(e.
action.
emote.emote);
292 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_PLAY_EMOTE: target: {} ({}), emote: {}",
293 target->GetName(), target->GetGUID().ToString(), e.
action.
emote.emote);
294 }
295 }
296 break;
297 }
299 {
301 {
303 {
306 else
308 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_SOUND: target: {} ({}), sound: {}, onlyself: {}",
310 }
311 }
312 break;
313 }
315 {
323 for (unsigned int sound : sounds)
324 {
325 if (sound)
326 {
327 temp[count] = sound;
328 ++count;
329 }
330 }
331
332 if (count == 0)
333 {
334 break;
335 }
336
338 {
340 {
343 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_RANDOM_SOUND: target: {} ({}), sound: {}, onlyself: {}",
345 }
346 }
347
348 break;
349 }
351 {
353
355 {
357 {
359
361 {
363 if (
Player* player = i->GetSource())
364 {
366 {
368 {
370 targets.push_back(player);
371 }
372 else
373 targets.push_back(player);
374 }
375 }
376 }
377 }
378 }
379 else
381
382 if (!targets.empty())
383 {
385 {
387 {
389 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_MUSIC: target: {} ({}), sound: {}, onlySelf: {}, type: {}",
391 }
392 }
393 }
394 break;
395 }
397 {
399
401 {
403 {
405
407 {
409 if (
Player* player = i->GetSource())
410 {
412 {
414 {
416 targets.push_back(player);
417 }
418 else
419 targets.push_back(player);
420 }
421 }
422 }
423 }
424 }
425 else
427
428 if (targets.empty())
429 break;
430
438 for (unsigned int sound : sounds)
439 {
440 if (sound)
441 {
442 temp[count] = sound;
443 ++count;
444 }
445 }
446
447 if (count == 0)
448 {
449 break;
450 }
451
453 {
455 {
458 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_RANDOM_MUSIC: target: {} ({}), sound: {}, onlyself: {}, type: {}",
460 }
461 }
462
463 break;
464 }
466 {
468 {
470 {
472 {
474 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_SET_FACTION: Creature entry {}, GuidLow {} set faction to {}",
476 }
477 else
478 {
480 {
481 if (target->ToCreature()->GetFaction() != ci->faction)
482 {
483 target->ToCreature()->SetFaction(ci->faction);
484 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_SET_FACTION: Creature entry {}, GuidLow {} set faction to {}",
485 target->GetEntry(), target->GetGUID().ToString(), ci->faction);
486 }
487 }
488 }
489 }
490 }
491 break;
492 }
494 {
496 {
498 continue;
499
501 {
502
504 {
506 {
509 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL: Creature entry {}, GuidLow {} set displayid to {}",
511 }
512 }
513
514 else
515 {
517 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL: Creature entry {}, GuidLow {} set displayid to {}",
519 }
520 }
521 else
522 {
523 target->ToCreature()->DeMorph();
524 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL: Creature entry {}, GuidLow {} demorphs.",
525 target->GetEntry(), target->GetGUID().ToString());
526 }
527 }
528 break;
529 }
531 {
533 {
535 {
536 target->ToPlayer()->FailQuest(e.
action.
quest.quest);
537 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_FAIL_QUEST: Player guidLow {} fails quest {}",
538 target->GetGUID().ToString(), e.
action.
quest.quest);
539 }
540 }
541 break;
542 }
544 {
546 {
548 {
550 {
552 {
553 if (player->CanTakeQuest(q, true))
554 {
556 {
558 menu.SendQuestGiverQuestDetails(q,
me->
GetGUID(),
true);
559 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_OFFER_QUEST: Player guidLow {} - offering quest {}",
561 }
562 }
563 }
564 else
565 {
566 player->AddQuestAndCheckCompletion(q, nullptr);
567 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_OFFER_QUEST: Player guidLow {} - quest {} added",
569 }
570 }
571 }
572 }
573 break;
574 }
576 {
578 {
580 continue;
581
583 }
584 break;
585 }
587 {
588 std::vector<uint32> emotes;
590 std::back_inserter(emotes), [](
uint32 emote) { return emote != 0; });
591
593 {
595 {
597 target->ToUnit()->HandleEmoteCommand(emote);
598 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_RANDOM_EMOTE: Creature guidLow {} handle random emote {}",
599 target->GetGUID().ToString(), emote);
600 }
601 }
602 break;
603 }
605 {
607 break;
608
610 {
612 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_THREAT_ALL_PCT: Creature {} modify threat for unit {}, value {}",
614 }
615 break;
616 }
618 {
620 break;
621
623 {
625 {
627 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_THREAT_SINGLE_PCT: Creature {} modify threat for unit {}, value {}",
629 }
630 }
631 break;
632 }
634 {
636 {
637
639 if (
Vehicle* vehicle = target->ToUnit()->GetVehicleKit())
640 for (
auto & Seat : vehicle->
Seats)
642 player->AreaExploredOrEventHappens(e.action.quest.quest);
643
645 {
646 target->ToPlayer()->AreaExploredOrEventHappens(e.
action.
quest.quest);
647
648 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS: Player guidLow {} credited quest {}",
649 target->GetGUID().ToString(), e.
action.
quest.quest);
650 }
651 }
652 break;
653 }
655 {
656 if (targets.empty())
657 break;
658
660
663
666
667 bool failedSpellCast = false, successfulSpellCast = false;
668
670 {
671
674
676 continue;
677
678 if (caster && caster !=
me)
679 {
681 }
683 {
684
686 continue;
687
688
691 break;
692
693
695 continue;
696
697
700
706
708 bool isWithinMeleeRange = distanceToTarget <= meleeRange;
711
714
715
716 if (isWithinLOSInMap && isWithinMeleeRange && isRangedAttack && isTargetRooted && canCastSpell && !
me->
IsVehicle())
717 {
718 failedSpellCast = true;
719
721 continue;
722
723 float minDistance = std::max(meleeRange, spellMinRange) - distanceToTarget +
NOMINAL_MELEE_RANGE;
725 continue;
726 }
727
728 if (distanceToTarget > spellMaxRange && isWithinLOSInMap)
729 {
730 failedSpellCast = true;
731
733 continue;
734
737
738 continue;
739 }
740 else if (distanceToTarget < spellMinRange || !(isWithinLOSInMap || isSpellIgnoreLOS))
741 {
742 failedSpellCast = true;
743
745 continue;
746
750 continue;
751 }
752
755 {
758 else
760 }
761
764
766 {
771 }
772
773 if (spellCastFailed)
774 failedSpellCast = true;
775 else
776 successfulSpellCast = true;
777
778 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_CAST: Unit {} casts spell {} on target {} with castflags {}",
780 }
781 }
782
783
784 if (failedSpellCast && !successfulSpellCast)
785 {
787
788 return;
789 }
790
791 break;
792 }
794 {
795 if (targets.empty())
796 break;
797
800
803 {
805 {
807 }
808 else
809 {
811 }
812 }
813
815 {
817 if (!uTarget)
818 continue;
819
821 {
823 {
825 }
826
828 }
829 }
830 break;
831 }
833 {
834
836 if (!tempLastInvoker)
837 break;
838
839 if (targets.empty())
840 break;
841
844
846 {
848 continue;
849
850 if (!
IsUnit(tempLastInvoker))
851 continue;
852
854 {
856 {
858 }
859
862 {
864 {
866 }
867 else
868 {
870 }
871 }
872
874 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_INVOKER_CAST: Invoker {} casts spell {} on target {} with castflags {}",
876 }
877 else
878 {
879 LOG_DEBUG(
"scripts.ai",
"Spell {} not cast because it has flag SMARTCAST_AURA_NOT_PRESENT and the target {} already has the aura",
881 }
882 }
883 break;
884 }
886 {
888 {
890 {
892 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_ADD_AURA: Adding aura {} to unit {}",
894 }
895 }
896 break;
897 }
899 {
901 {
903 {
905
906
908 {
910 }
911
913 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_ACTIVATE_GOBJECT. Gameobject {} activated",
go->
GetGUID().
ToString());
914 }
915 }
916
917 break;
918 }
920 {
922 {
924 {
925 target->ToGameObject()->ResetDoorOrButton();
926 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_RESET_GOBJECT. Gameobject {} (entry: {}) reset",
927 target->GetGUID().ToString(), target->GetEntry());
928 }
929 }
930 break;
931 }
933 {
935 {
937 {
939 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_SET_EMOTE_STATE. Unit {} set emotestate to {}",
940 target->GetGUID().ToString(), e.
action.
emote.emote);
941 }
942 }
943 break;
944 }
946 {
948 {
950 {
952 {
954 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_SET_UNIT_FLAG. Unit {} added flag {} to UNIT_FIELD_FLAGS",
956 }
957 else
958 {
960 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_SET_UNIT_FLAG. Unit {} added flag {} to UNIT_FIELD_FLAGS_2",
962 }
963 }
964 }
965 break;
966 }
968 {
970 {
972 {
974 {
976 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_REMOVE_UNIT_FLAG. Unit {} removed flag {} to UNIT_FIELD_FLAGS",
978 }
979 else
980 {
982 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction:: SMART_ACTION_REMOVE_UNIT_FLAG. Unit {} removed flag {} to UNIT_FIELD_FLAGS_2",
984 }
985 }
986 }
987 break;
988 }
990 {
992 break;
993
995 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_AUTO_ATTACK: Creature: {} bool on = {}",
997 break;
998 }
1000 {
1002 break;
1003
1006 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_ALLOW_COMBAT_MOVEMENT: Creature {} bool on = {}",
1008 break;
1009 }
1011 {
1013 break;
1014
1016 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_SET_EVENT_PHASE: Creature {} set event phase {}",
1018 break;
1019 }
1021 {
1023 break;
1024
1027 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_INC_EVENT_PHASE: Creature {} inc event phase by {}, "
1029 break;
1030 }
1032 {
1034 break;
1035
1038 if (target->ToCreature()->IsAIEnabled)
1039 target->ToCreature()->AI()->EnterEvadeMode();
1040
1041 break;
1042 }
1044 {
1045
1047 break;
1048
1051 {
1054 }
1055 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_FLEE_FOR_ASSIST: Creature {} DoFleeToGetAssistance",
me->
GetGUID().
ToString());
1056 break;
1057 }
1059 {
1061 break;
1062
1063
1064
1066 sai->SetSuppressEvade(true);
1067
1069
1071 sai->SetSuppressEvade(false);
1072
1073 break;
1074 }
1076 {
1078 {
1080 continue;
1081
1083
1086 {
1088 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction: SMART_ACTION_CALL_GROUPEVENTHAPPENS: Player {}, group credit for quest {}",
1090 }
1091
1092
1094 {
1095 for (
auto& Seat : vehicle->
Seats)
1096 {
1098 {
1100 }
1101 }
1102 }
1103 }
1104 break;
1105 }
1107 {
1109 {
1111 continue;
1112
1114 {
1116 {
1119 }
1120 else
1122 }
1123 else
1124 target->ToUnit()->RemoveAllAuras();
1125
1126 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction: SMART_ACTION_REMOVEAURASFROMSPELL: Unit {}, spell {}",
1128 }
1129 break;
1130 }
1132 {
1134 break;
1135
1137 {
1139 break;
1140 }
1141
1143 {
1145 {
1148 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction: SMART_ACTION_FOLLOW: Creature {} following target {}",
1150 break;
1151 }
1152 }
1153 break;
1154 }
1156 {
1158 break;
1159
1160 std::vector<uint32> phases;
1162 std::back_inserter(phases), [](
uint32 phase) { return phase != 0; });
1163
1166 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction: SMART_ACTION_RANDOM_PHASE: Creature {} sets event phase to {}",
1168 break;
1169 }
1171 {
1173 break;
1174
1177 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction: SMART_ACTION_RANDOM_PHASE_RANGE: Creature {} sets event phase to {}",
1179 break;
1180 }
1182 {
1184 {
1186 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction: SMART_ACTION_CALL_KILLEDMONSTER: (trigger == true) Player {}, Killcredit: {}",
1188 }
1190 {
1192 break;
1193
1195 {
1197 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction: SMART_ACTION_CALL_KILLEDMONSTER: Player {}, Killcredit: {}",
1199 }
1200 }
1201 else
1202 {
1204 {
1206 continue;
1207
1209 if (!player)
1210 continue;
1211
1213 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction: SMART_ACTION_CALL_KILLEDMONSTER: Player {}, Killcredit: {}",
1215 }
1216 }
1217 break;
1218 }
1220 {
1222 if (!obj)
1223 obj = unit;
1224
1225 if (!obj)
1226 break;
1227
1229 if (!instance)
1230 {
1231 LOG_ERROR(
"scripts.ai.sai",
"SmartScript: Event {} attempt to set instance data without instance script. EntryOrGuid {}", e.
GetEventType(), e.
entryOrGuid);
1232 break;
1233 }
1234
1236 {
1237 case 0:
1238 {
1241 } break;
1242 case 1:
1243 {
1246 } break;
1247 default:
1248 {
1249 break;
1250 }
1251 }
1252 break;
1253 }
1255 {
1257 if (!obj)
1258 obj = unit;
1259
1260 if (!obj)
1261 break;
1262
1264 if (!instance)
1265 {
1267 break;
1268 }
1269
1270 if (targets.empty())
1271 break;
1272
1274 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction: SMART_ACTION_SET_INST_DATA64: Field: {}, data: {}",
1276 break;
1277 }
1279 {
1282 target->ToCreature()->UpdateEntry(e.action.updateTemplate.creature, target->ToCreature()->GetCreatureData(), e.action.updateTemplate.updateLevel != 0);
1283 break;
1284 }
1286 {
1288 {
1290 {
1292 {
1293
1295 {
1296 me->KillSelf();
1297 LOG_DEBUG("sql.sql", "SmartScript::ProcessAction: SMART_ACTION_DIE: Creature {}", me->GetGUID().ToString());
1298 }
1300 }
1301 }
1303 {
1306 }
1307 break;
1308 }
1310 {
1311 if (targets.empty())
1312 break;
1313
1315 {
1318
1321 if (
IsPlayer(unit) && !unit->ToPlayer()->isDead())
1322 {
1324 }
1325 }
1326 else
1327 {
1329 {
1331 {
1332 target->ToCreature()->SetInCombatWithZone();
1333 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction: SMART_ACTION_SET_IN_COMBAT_WITH_ZONE: Creature {}, target: {}",
1335 }
1336 }
1337 }
1338
1339 break;
1340 }
1342 {
1344 {
1346 {
1349 {
1352 }
1353 LOG_DEBUG(
"scripts.ai",
"SmartScript::ProcessAction: SMART_ACTION_CALL_FOR_HELP: Creature {}, target: {}",
1355 }
1356 }
1357 break;
1358 }
1360 {
1362 {
1364 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction: SMART_ACTION_SET_SHEATH: Creature {}, State: {}",
1366 }
1367 break;
1368 }
1370 {
1372 {
1374 {
1376 LOG_ERROR(
"sql.sql",
"SmartScript: SMART_ACTION_FORCE_DESPAWN has removeObjectFromWorld set. delay and forceRespawnTimer ignored.");
1377
1379 creature->AddObjectToRemoveList();
1382 }
1383 else
1384 {
1386
1387
1388 if (despawnDelay <= 0ms)
1389 despawnDelay = 1ms;
1390
1393 creature->DespawnOrUnsummon(despawnDelay, forceRespawnTimer);
1396 }
1397 }
1398
1399 break;
1400 }
1402 {
1404 {
1409 }
1410 break;
1411 }
1413 {
1415 {
1417 continue;
1418
1420 {
1422 {
1425 }
1426 else
1428 }
1429 else
1430 target->ToUnit()->Dismount();
1431 }
1432 break;
1433 }
1435 {
1437 {
1439 {
1441 if (!ai)
1442 continue;
1443
1446 else
1448 }
1449 }
1450 break;
1451 }
1453 {
1455 {
1457 {
1459
1461 {
1464 else
1466 }
1467 else
1469 }
1471 {
1473
1475 {
1478 else
1480 }
1481 else
1483 }
1484 }
1485 break;
1486 }
1488 {
1490
1492 {
1494 {
1496 {
1499 }
1500 else
1501 LOG_ERROR(
"sql.sql",
"SmartScript: Action target for SMART_ACTION_INC_DATA is not using SmartAI, skipping");
1502 }
1504 {
1506 {
1509 }
1510 else
1511 LOG_ERROR(
"sql.sql",
"SmartScript: Action target for SMART_ACTION_INC_DATA is not using SmartGameObjectAI, skipping");
1512 }
1513 }
1514 break;
1515 }
1517 {
1519 break;
1520
1521 float x, y, z;
1524 break;
1525 }
1527 {
1529 break;
1530
1532 break;
1533 }
1535 {
1538 target->ToUnit()->SetVisible(e.action.visibility.state);
1539
1540 break;
1541 }
1543 {
1545 target->setActive(e.action.setActive.state);
1546 break;
1547 }
1549 {
1551 break;
1552
1553 if (targets.empty())
1554 break;
1555
1556
1559 break;
1560 }
1562 {
1564 if (
Unit* unitTarget = target->ToUnit())
1565 unitTarget->AttackStop();
1566 break;
1567 }
1569 {
1573 if (!summoner)
1574 break;
1575
1577
1579 {
1584 {
1587 else
1590 {
1592 summon->AI()->AttackStart(unit);
1594 summon->AI()->AttackStart(
me);
1595 }
1596 }
1597 break;
1598 }
1599
1600 float x, y, z, o;
1602 {
1603 target->GetPosition(x, y, z, o);
1609 {
1611 summon->AI()->AttackStart(unit);
1613 summon->AI()->AttackStart(target->ToUnit());
1615 summon->AI()->AttackStart(
me);
1616 }
1617 }
1618
1620 break;
1621
1623 {
1625 summon->AI()->AttackStart(unit);
1627 summon->AI()->AttackStart(
me);
1628 }
1629 break;
1630 }
1632 {
1634 break;
1635
1636 if (!targets.empty())
1637 {
1638 float x, y, z, o;
1640 {
1641
1642
1643
1644
1645 target->GetPosition(x, y, z, o);
1652 else
1654 }
1655 }
1656
1658 break;
1659
1661 break;
1662 }
1664 {
1666 {
1668 continue;
1669
1670 Unit::Kill(target->ToUnit(), target->ToUnit());
1671 }
1672
1673 break;
1674 }
1676 {
1678 break;
1679 }
1681 {
1683 {
1685 continue;
1686
1688 }
1689 break;
1690 }
1692 {
1694 {
1696 continue;
1697
1699 }
1700 break;
1701 }
1703 {
1705 break;
1706 }
1708 {
1710 {
1715 }
1716 break;
1717 }
1719 {
1721 break;
1722
1724
1727
1728
1730 break;
1731 }
1733 {
1735 {
1737 {
1739 }
1740 }
1741
1742 break;
1743 }
1745 {
1747 break;
1748
1750 break;
1751 }
1753 {
1754 if (!targets.empty())
1755 {
1757 {
1759 {
1762 else
1763 LOG_ERROR(
"sql.sql",
"SmartScript: Action target for SMART_ACTION_SET_COUNTER is not using SmartAI, skipping");
1764 }
1766 {
1769 else
1770 LOG_ERROR(
"sql.sql",
"SmartScript: Action target for SMART_ACTION_SET_COUNTER is not using SmartGameObjectAI, skipping");
1771 }
1772 }
1773 }
1774 else
1776 break;
1777 }
1779 {
1781 break;
1782
1786
1788 {
1790 {
1792 break;
1793 }
1794 }
1795
1798
1803 break;
1804 }
1806 {
1808 break;
1809
1812 break;
1813 }
1815 {
1817 break;
1818
1823 break;
1824 }
1826 {
1828 break;
1829
1831 break;
1832 }
1834 {
1836 break;
1837
1839 {
1840 float randomOri =
frand(0.0f, 2 * M_PI);
1844 break;
1845 }
1846
1848 {
1853 break;
1854 }
1855
1857 {
1861 }
1863 {
1867 }
1868 else if (!targets.empty())
1869 {
1873 }
1874
1875 break;
1876 }
1878 {
1880 {
1882 continue;
1883
1885 }
1886 break;
1887 }
1889 {
1891 break;
1892
1894
1896
1898 {
1900 {
1904 trans->CalculatePassengerPosition(dest.x, dest.y, dest.z);
1905
1908
1909 break;
1910 }
1912 {
1914 {
1925 );
1926
1927 }
1928
1929 break;
1930 }
1931
1932 default:
1933 {
1934
1935 if (targets.empty())
1936 return;
1937 else
1939
1940 float x, y, z;
1942
1947
1950
1951 break;
1952 }
1953 }
1954
1955 break;
1956 }
1958 {
1960 {
1962 {
1964
1968 }
1969 }
1970
1971 break;
1972 }
1974 {
1976 {
1980 {
1981
1984 else
1986 }
1987 }
1988 break;
1989 }
1991 {
1994 target->ToPlayer()->PlayerTalkClass->SendCloseGossip();
1995 break;
1996 }
1998 {
2000 {
2002 {
2003 std::array<uint32, MAX_EQUIPMENT_ITEMS> slot;
2005 {
2007 if (!eInfo)
2008 {
2009 LOG_ERROR(
"sql.sql",
"SmartScript: SMART_ACTION_EQUIP uses non-existent equipment info id {} for creature {}", equipId,
npc->GetEntry());
2010 break;
2011 }
2012
2013 npc->SetCurrentEquipmentId(equipId);
2014
2015 std::copy(std::begin(eInfo->
ItemEntry), std::end(eInfo->
ItemEntry), std::begin(slot));
2016 }
2017 else
2019
2023 }
2024 }
2025 break;
2026 }
2028 {
2033
2038
2042
2046
2054 break;
2055 }
2058
2059
2062 break;
2065 break;
2067 {
2069 {
2071 {
2078 break;
2079 }
2081 {
2088 break;
2089 }
2090 }
2091
2092 break;
2093 }
2096 break;
2099 break;
2101 {
2103 break;
2104
2107
2109 if (
Creature* creature = target->ToCreature())
2110 if (
IsSmart(creature) && creature->GetVictim())
2112 creature->GetMotionMaster()->MoveChase(creature->GetVictim(), attackDistance, attackAngle);
2113
2114 break;
2115 }
2117 {
2119 {
2121 break;
2122 }
2123
2125 {
2127 {
2130 }
2132 {
2135 }
2136 }
2137 break;
2138 }
2140 {
2143 target->ToUnit()->ReplaceAllNpcFlags(
NPCFlags(e.action.unitFlag.flag));
2144 break;
2145 }
2147 {
2150 target->ToUnit()->SetNpcFlag(
NPCFlags(e.action.unitFlag.flag));
2151 break;
2152 }
2154 {
2157 target->ToUnit()->RemoveNpcFlag(
NPCFlags(e.action.unitFlag.flag));
2158 break;
2159 }
2161 {
2162 if (targets.empty())
2163 break;
2164
2166 GetTargets(casters,
CreateSmartEvent(
SMART_EVENT_UPDATE_IC, 0, 0, 0, 0, 0, 0, 0,
SMART_ACTION_NONE, 0, 0, 0, 0, 0, 0, (
SMARTAI_TARGETS)e.
action.
crossCast.
targetType, e.
action.
crossCast.
targetParam1, e.
action.
crossCast.
targetParam2, e.
action.
crossCast.
targetParam3, 0, 0), unit);
2167
2169 {
2171 continue;
2172
2174
2175 bool interruptedSpell = false;
2176
2178 {
2180 continue;
2181
2183 {
2185 {
2187 interruptedSpell = true;
2188 }
2189
2191 }
2192 else
2194 }
2195 }
2196 break;
2197 }
2199 {
2200 std::vector<uint32> actionLists;
2202 std::back_inserter(actionLists), [](
uint32 actionList) { return actionList != 0; });
2203
2206 {
2208 break;
2209 }
2210
2212 {
2214 {
2217 }
2219 {
2222 }
2223 }
2224 break;
2225 }
2227 {
2230 {
2232 break;
2233 }
2234
2236 {
2238 {
2241 }
2243 {
2246 }
2247 }
2248 break;
2249 }
2251 {
2254 target->ToPlayer()->ActivateTaxiPathTo(e.action.taxi.id);
2255 break;
2256 }
2258 {
2259 bool foundTarget = false;
2260
2262 {
2264 {
2265 foundTarget = true;
2266
2269 else
2271 }
2272 }
2273
2275 {
2278 else
2280 }
2281 break;
2282 }
2284 {
2287 target->ToUnit()->SetByteFlag(
UNIT_FIELD_BYTES_1, e.action.setunitByte.type, e.action.setunitByte.byte1);
2288 break;
2289 }
2291 {
2294 target->ToUnit()->RemoveByteFlag(
UNIT_FIELD_BYTES_1, e.action.delunitByte.type, e.action.delunitByte.byte1);
2295 break;
2296 }
2298 {
2301 target->ToUnit()->InterruptNonMeleeSpells(e.action.interruptSpellCasting.withDelayed != 0, e.action.interruptSpellCasting.spell_id, e.action.interruptSpellCasting.withInstant != 0);
2302 break;
2303 }
2305 {
2308 target->ToGameObject()->SendCustomAnim(e.action.sendGoCustomAnim.anim);
2309 break;
2310 }
2312 {
2316 break;
2317 }
2319 {
2323 break;
2324 }
2326 {
2330 break;
2331 }
2333 {
2335 {
2337 {
2342 }
2343
2344 break;
2345 }
2346
2347 if (targets.empty())
2348 break;
2349
2350
2352 {
2356 }
2357 else
2358 {
2361 {
2364 }
2365 }
2366
2367 break;
2368 }
2370 {
2373 target->ToGameObject()->SetLootState((
LootState)e.action.setGoLootState.state);
2374 break;
2375 }
2377 {
2380 target->ToGameObject()->SetGoState((
GOState)e.action.goState.state);
2381 break;
2382 }
2384 {
2386
2387 if (!ref)
2388 ref = unit;
2389
2390 if (!ref)
2391 break;
2392
2394 if (!storedTargets)
2395 break;
2396
2398 {
2400 {
2403 else
2404 LOG_ERROR(
"sql.sql",
"SmartScript: Action target for SMART_ACTION_SEND_TARGET_TO_TARGET is not using SmartAI, skipping");
2405 }
2407 {
2410 else
2411 LOG_ERROR(
"sql.sql",
"SmartScript: Action target for SMART_ACTION_SEND_TARGET_TO_TARGET is not using SmartGameObjectAI, skipping");
2412 }
2413 }
2414 break;
2415 }
2417 {
2419 break;
2420
2421 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction:: SMART_ACTION_SEND_GOSSIP_MENU: gossipMenuId {}, gossipNpcTextId {}",
2423
2425 if (
Player* player = target->ToPlayer())
2426 {
2429 else
2431
2433 }
2434
2435 break;
2436 }
2438 {
2439 if (!targets.empty())
2440 {
2441 float x, y, z, o;
2444 {
2446 {
2449 }
2450 else
2452 }
2453 }
2455 {
2457 {
2458 float x, y, z, o;
2461 }
2462 else
2464 }
2465 break;
2466 }
2468 {
2471 target->ToCreature()->SetRegeneratingHealth(e.action.setHealthRegen.regenHealth);
2472
2473 break;
2474 }
2476 {
2479 target->ToCreature()->SetControlled(e.action.setRoot.root != 0,
UNIT_STATE_ROOT);
2480 break;
2481 }
2483 {
2486 target->ToGameObject()->SetUInt32Value(
GAMEOBJECT_FLAGS, e.action.goFlag.flag);
2487 break;
2488 }
2490 {
2494 break;
2495 }
2497 {
2500 target->ToGameObject()->RemoveFlag(
GAMEOBJECT_FLAGS, e.action.goFlag.flag);
2501 break;
2502 }
2504 {
2505 std::list<TempSummon*> summonList;
2507
2508 for (std::list<TempSummon*>::const_iterator itr = summonList.begin(); itr != summonList.end(); ++itr)
2509 {
2511 (*itr)->AI()->AttackStart(unit);
2513 (*itr)->AI()->AttackStart(
me);
2514 }
2515
2516 break;
2517 }
2519 {
2522 target->ToUnit()->SetPower(
Powers(e.action.power.powerType), e.action.power.newPower);
2523 break;
2524 }
2526 {
2529 target->ToUnit()->SetPower(
Powers(e.action.power.powerType), target->ToUnit()->GetPower(
Powers(e.action.power.powerType)) + e.action.power.newPower);
2530 break;
2531 }
2533 {
2536 target->ToUnit()->SetPower(
Powers(e.action.power.powerType), target->ToUnit()->GetPower(
Powers(e.action.power.powerType)) - e.action.power.newPower);
2537 break;
2538 }
2540 {
2543 {
2544 LOG_ERROR(
"scripts.ai.sai",
"SmartScript::ProcessAction: At case SMART_ACTION_GAME_EVENT_STOP, inactive event (id: {})", eventId);
2545 break;
2546 }
2548 break;
2549 }
2551 {
2554 {
2555 LOG_ERROR(
"scripts.ai.sai",
"SmartScript::ProcessAction: At case SMART_ACTION_GAME_EVENT_START, already activated event (id: {})", eventId);
2556 break;
2557 }
2559 break;
2560 }
2562 {
2564
2566 {
2567 LOG_ERROR(
"scripts.ai.sai",
"SmartScript::ProcessAction: SMART_ACTION_START_CLOSEST_WAYPOINT: Invalid PathSource {} for entryOrGuid {} source_type {} event_id {} link {}",
2569 break;
2570 }
2571
2572 float distanceToClosest = std::numeric_limits<float>::max();
2574
2576 {
2578 {
2580 {
2582 {
2584
2585 switch (pathSource)
2586 {
2589 break;
2592 break;
2593 }
2594
2595 if (!path || path->
Nodes.empty())
2596 continue;
2597
2598 {
2600 float distToThisPath = creature->GetExactDistSq(wpData.
X, wpData.
Y, wpData.
Z);
2601
2602 if (distToThisPath < distanceToClosest)
2603 {
2604 distanceToClosest = distToThisPath;
2605 closestWpId = pathId;
2606 }
2607 }
2608 }
2609
2610 if (closestWpId)
2611 {
2614
2615 CAST_AI(
SmartAI, creature->AI())->StartPath(forcedMovement, closestWpId, repeat,
nullptr, pathSource);
2616 }
2617 }
2618 }
2619 }
2620 break;
2621 }
2623 {
2626 target->ToUnit()->ExitVehicle();
2627
2628 break;
2629 }
2631 {
2634 {
2637 }
2638
2639 break;
2640 }
2642 {
2645 target->ToCreature()->m_CombatDistance = e.action.combatDistance.dist;
2646
2647 break;
2648 }
2650 {
2653 target->ToCreature()->m_SightDistance = e.action.sightDistance.dist;
2654 break;
2655 }
2657 {
2660 target->ToCreature()->GetMotionMaster()->MoveFleeing(
me, e.action.flee.withEmote);
2661 break;
2662 }
2664 {
2666 break;
2669 me->GetThreatMgr().AddThreat(target->ToUnit(), float(e.action.threat.threatINC) - float(e.action.threat.threatDEC), nullptr, true, true);
2670 break;
2671 }
2673 {
2676 target->ToCreature()->LoadEquipment(e.action.loadEquipment.id, e.action.loadEquipment.force != 0);
2677 break;
2678 }
2680 {
2683 break;
2684 }
2686 {
2689 target->ToUnit()->Dismount();
2690 break;
2691 }
2693 {
2696 target->ToUnit()->SetHover(e.action.setHover.state);
2697 break;
2698 }
2700 {
2703 target->ToUnit()->ApplySpellImmune(e.action.immunity.id, e.action.immunity.type, e.action.immunity.value, true);
2704
2705 break;
2706 }
2708 {
2711 target->ToUnit()->ApplySpellImmune(e.action.immunity.id, e.action.immunity.type, e.action.immunity.value, false);
2712 break;
2713 }
2715 {
2718 target->ToUnit()->GetMotionMaster()->MoveFall();
2719
2720 break;
2721 }
2723 {
2725 break;
2726 }
2728 {
2731 target->ToUnit()->RemoveAllGameObjects();
2732 break;
2733 }
2735 {
2737 {
2739 {
2744 }
2745 }
2746 break;
2747 }
2749 {
2753
2754 break;
2755 }
2757 {
2760 if (
Player* player = target->ToUnit()->GetCharmerOrOwnerPlayerOrPlayerItself())
2761 {
2763 break;
2764 }
2765
2766 break;
2767 }
2769 {
2774 break;
2775 }
2777 {
2779
2780 if (!targets.empty())
2784
2785 break;
2786 }
2788 {
2790 break;
2791
2793 {
2795 {
2797 {
2799 }
2800
2802 {
2812
2815 {
2816
2818
2820 else
2821
2823 }
2824 }
2825 }
2826 }
2827 break;
2828 }
2830 {
2832 break;
2833
2834 if (targets.empty())
2835 break;
2836
2838
2843
2844
2845
2846
2847
2848 float factor = std::exp(k * delta_phi);
2849
2850
2851 float summonRadius = a;
2852
2854 {
2855
2856
2858
2859 do
2860 {
2862 summonPosition.RelocatePolarOffset(phi, summonRadius);
2863
2865
2866 phi += delta_phi;
2867 summonRadius *= factor;
2868 } while (summonRadius <= r_max);
2869 }
2870
2871 break;
2872 }
2874 {
2876 break;
2877
2879
2882
2884 {
2885 float deltaAngle = 0.0f;
2886 if (radius > 0)
2887 deltaAngle = distInARow / radius;
2888
2890 if (deltaAngle > 0)
2891 count += coneAngle / deltaAngle;
2892
2893 float currentAngle = -static_cast<float>(count) * deltaAngle / 2.0f;
2894
2897 else if (!targets.empty())
2898 {
2900 }
2901
2902 for (
uint32 index = 0; index < count; ++index)
2903 {
2905 spawnPosition.RelocatePolarOffset(currentAngle, radius);
2906 currentAngle += deltaAngle;
2907
2909 }
2910 }
2911
2912 break;
2913 }
2915 {
2917 {
2919 {
2920 playerTarget->RemoveArenaSpellCooldowns();
2922 playerTarget->RemoveAurasDueToSpell(57723);
2923 playerTarget->RemoveAurasDueToSpell(2825);
2924 playerTarget->RemoveAurasDueToSpell(32182);
2925 }
2926 }
2927
2928 break;
2929 }
2931 {
2934 {
2935 if (targets.empty())
2936 break;
2937
2939 {
2941 {
2943 {
2944 unitTarget->AI()->DoAction(actionId);
2945 }
2946 }
2948 {
2949 gobjTarget->AI()->DoAction(actionId);
2950 }
2951 }
2952
2953 }
2954 else
2955 {
2958 {
2959 instanceScript = baseObj->GetInstanceScript();
2960 }
2961
2963 {
2965 }
2966
2967 if (instanceScript)
2968 {
2969 instanceScript->
DoAction(actionId);
2970 }
2971 }
2972 break;
2973 }
2975 {
2977 break;
2978
2980 break;
2981 }
2983 {
2985 {
2988 }
2989 break;
2990 }
2992 {
2994 if (
Unit* targetUnit = target->ToUnit())
2995 targetUnit->SetHealth(targetUnit->CountPctFromMaxHealth(e.action.setHealthPct.percent));
2996 break;
2997 }
2999 {
3002 float speed = float(speedInteger) + float(speedFraction) / std::pow(10, std::floor(std::log10(float(speedFraction ? speedFraction : 1)) + 1));
3003
3006 target->ToCreature()->SetSpeed(
UnitMoveType(e.action.movementSpeed.movementType), speed);
3007
3008 break;
3009 }
3011 {
3013 {
3015 continue;
3016
3018 }
3019 break;
3020 }
3022 {
3024 if (!obj)
3025 break;
3026
3030 break;
3031 }
3033 {
3035 if (!obj)
3036 break;
3037
3040 break;
3041 }
3043 {
3045 {
3047
3049 {
3051 {
3052 guidToSend = invoker->
GetGUID();
3053 }
3054 }
3055
3057 {
3059 }
3061 {
3063 }
3064 }
3065 break;
3066 }
3068 {
3069
3071 {
3072 case 0:
3073 {
3075 {
3077 {
3080 c->DespawnOrUnsummon();
3081 }
3082 }
3083 break;
3084 }
3085 case 1:
3086 {
3088 {
3090 {
3092 c->Respawn(true);
3094 }
3095 }
3096 break;
3097 }
3098 case 2:
3099 {
3101 {
3103 {
3105
3106
3109 else
3110 c->Respawn(true);
3111
3112
3115
3116
3119 }
3120 }
3121 break;
3122 }
3123 default:
3124 break;
3125 }
3126 break;
3127 }
3129 {
3131
3133 {
3138 }
3139 break;
3140 }
3142 {
3144 break;
3145
3147
3150
3152 {
3154 {
3158 }
3159 break;
3160 }
3161
3163 {
3164 float currentAngle = startAngle + (itr * stepAngle);
3166 }
3167
3168 break;
3169 }
3171 {
3173 {
3175 {
3178 }
3179 }
3180 break;
3181 }
3183 {
3185 {
3188 target->ToCreature()->GetMotionMaster()->MoveIdle();
3189
3190 break;
3191 }
3192
3193 uint8 membCount = targets.size();
3197 {
3199 {
3200 float angle = (membCount > 4 ? (M_PI * 2)/membCount : (M_PI / 2));
3202 {
3204 {
3206 itr++;
3207 }
3208 }
3209 break;
3210 }
3212 {
3214 {
3216 {
3218 itr++;
3219 }
3220 }
3221 break;
3222 }
3224 {
3226 {
3228 {
3230 itr++;
3231 }
3232 }
3233 break;
3234 }
3236 {
3238 {
3240 {
3242 itr++;
3243 }
3244 }
3245 break;
3246 }
3248 {
3250 {
3252 {
3254 itr++;
3255 }
3256 }
3257 break;
3258 }
3260 {
3262 {
3264 {
3266 itr++;
3267 }
3268 }
3269 break;
3270 }
3271 default:
3272 break;
3273 }
3274
3275 break;
3276 }
3278 {
3280 {
3281 case 0:
3282 {
3284 target->ToCreature()->SetFacingTo((target->ToCreature()->HasUnitMovementFlag(
MOVEMENTFLAG_ONTRANSPORT) && target->ToCreature()->GetTransGUID() ? target->ToCreature()->GetTransportHomePosition() : target->ToCreature()->GetHomePosition()).GetOrientation());
3285
3286 break;
3287 }
3288 case 1:
3289 {
3291 target->ToCreature()->SetFacingTo(e.target.o);
3292
3293 break;
3294 }
3295 case 2:
3296 {
3298 target->ToCreature()->SetFacingToObject(
me);
3299
3300 break;
3301 }
3302 case 3:
3303 {
3305 GetTargets(facingTargets,
CreateSmartEvent(
SMART_EVENT_UPDATE_IC, 0, 0, 0, 0, 0, 0, 0,
SMART_ACTION_NONE, 0, 0, 0, 0, 0, 0, (
SMARTAI_TARGETS)e.
action.
orientationTarget.
targetType, e.
action.
orientationTarget.
targetParam1, e.
action.
orientationTarget.
targetParam2, e.
action.
orientationTarget.
targetParam3, e.
action.
orientationTarget.
targetParam4, 0), unit);
3306
3309 target->ToCreature()->SetFacingToObject(facingTarget);
3310
3311 break;
3312 }
3313 default:
3314 break;
3315 }
3316 break;
3317 }
3319 {
3321 {
3323 {
3325 {
3328 }
3329 }
3330 }
3331
3332 break;
3333 }
3335 {
3337 {
3339 {
3341 {
3345 }
3346 }
3347 }
3348
3349 break;
3350 }
3352 {
3355 target->ToUnit()->StopMoving();
3356
3357 break;
3358 }
3360 {
3363 target->ToUnit()->PauseMovement(e.action.move.timer);
3364
3365 break;
3366 }
3368 {
3371 target->ToUnit()->ResumeMovement(e.action.move.timer);
3372
3373 break;
3374 }
3376 {
3378 break;
3379 }
3381 {
3384 {
3387 }
3388 break;
3389 }
3391 {
3394 target->ToUnit()->SetAnimTier(
AnimTier(e.action.animTier.animTier));
3395 break;
3396 }
3398 {
3400 {
3402 {
3404 LOG_DEBUG(
"sql.sql",
"SmartScript::ProcessAction: SMART_ACTION_SET_GOSSIP_MENU: Creature {} set gossip menu to {}",
3406 }
3407 }
3408 break;
3409 }
3411 {
3413 break;
3414
3416 break;
3417 }
3418 default:
3420 break;
3421 }
3422
3424 {
3426 if (linked.has_value())
3427 {
3428 auto& linkedEvent = linked.value().get();
3430 executionStack.emplace_back(SmartScriptFrame{ linkedEvent, unit, var0, var1, bvar, spell, gob });
3431 else
3432 LOG_ERROR(
"sql.sql",
"SmartScript::ProcessAction: Entry {} SourceType {}, Event {}, Link Event {} found but has wrong type (should be 61, is {}).", e.
entryOrGuid, e.
GetScriptType(), e.
event_id, e.
link, linkedEvent.GetEventType());
3433 }
3434 else
3436 }
3437}
npc
Definition BattlegroundSA.h:47
#define DEFAULT_LOCALE
Definition Common.h:139
#define MAX_EQUIPMENT_ITEMS
Definition CreatureData.h:36
@ TEXT_RANGE_NORMAL
Definition CreatureTextMgr.h:30
std::int8_t int8
Definition Define.h:105
std::chrono::milliseconds Milliseconds
Milliseconds shorthand typedef.
Definition Duration.h:27
std::chrono::seconds Seconds
Seconds shorthand typedef.
Definition Duration.h:30
#define sGameEventMgr
Definition GameEventMgr.h:201
GOState
Definition GameObjectData.h:707
LootState
Definition GameObject.h:109
@ GO_READY
Definition GameObject.h:111
EncounterState
Definition InstanceScript.h:57
@ BROADCAST_TEXT_CALL_FOR_HELP
Definition Language.h:24
@ BROADCAST_TEXT_FLEE_FOR_ASSIST
Definition Language.h:25
@ MOTION_SLOT_CONTROLLED
Definition MotionMaster.h:66
@ MOTION_SLOT_ACTIVE
Definition MotionMaster.h:65
PathSource
Definition MotionMaster.h:94
ForcedMovement
Definition MotionMaster.h:85
@ FORCED_MOVEMENT_NONE
Definition MotionMaster.h:86
AnimTier
Definition MotionMaster.h:100
#define NOMINAL_MELEE_RANGE
Definition ObjectDefines.h:47
#define sObjectMgr
Definition ObjectMgr.h:1730
TempSummonType
Definition Object.h:48
@ TEMPSUMMON_TIMED_DESPAWN
Definition Object.h:51
@ TEMPSUMMON_CORPSE_DESPAWN
Definition Object.h:53
float frand(float min, float max)
Definition Random.cpp:57
uint32 urand(uint32 min, uint32 max)
Definition Random.cpp:44
void SendGossipMenuFor(Player *player, uint32 npcTextID, ObjectGuid const &guid)
Definition ScriptedGossip.cpp:45
void ClearGossipMenuFor(Player *player)
Definition ScriptedGossip.cpp:22
@ GAMEOBJECT_TYPE_DOOR
Definition SharedDefines.h:1564
@ POWER_MANA
Definition SharedDefines.h:257
@ CHAT_MSG_MONSTER_EMOTE
Definition SharedDefines.h:3401
@ CHAT_MSG_ADDON
Definition SharedDefines.h:3384
@ LANG_UNIVERSAL
Definition SharedDefines.h:723
@ LANG_ADDON
Definition SharedDefines.h:741
@ SPELL_ATTR2_IGNORE_LINE_OF_SIGHT
Definition SharedDefines.h:446
@ TEAM_NEUTRAL
Definition SharedDefines.h:750
SpellCastResult
Definition SharedDefines.h:936
@ SPELL_FAILED_OUT_OF_RANGE
Definition SharedDefines.h:1034
@ SPELL_CAST_OK
Definition SharedDefines.h:1126
@ SPELL_FAILED_SPELL_IN_PROGRESS
Definition SharedDefines.h:1042
@ SMART_EVENT_FLAG_TEMP_IGNORE_CHANCE_ROLL
Definition SmartScriptMgr.h:1976
SMARTAI_TARGETS
Definition SmartScriptMgr.h:1549
@ SMART_TARGET_RANDOM_POINT
Definition SmartScriptMgr.h:1588
#define sSmartWaypointMgr
Definition SmartScriptMgr.h:2280
SMART_ACTION
Definition SmartScriptMgr.h:541
@ SMART_ACTION_REMOVE_TIMED_EVENT
Definition SmartScriptMgr.h:616
@ SMART_ACTION_NONE
Definition SmartScriptMgr.h:542
@ SMART_ACTION_SET_GO_FLAG
Definition SmartScriptMgr.h:646
@ SMART_ACTION_UPDATE_TEMPLATE
Definition SmartScriptMgr.h:578
@ SMART_ACTION_SET_HEALTH_REGEN
Definition SmartScriptMgr.h:644
@ SMART_ACTION_SET_GOSSIP_MENU
Definition SmartScriptMgr.h:727
@ SMART_ACTION_ACTIVATE_GOBJECT
Definition SmartScriptMgr.h:551
@ SMART_ACTION_GAME_EVENT_START
Definition SmartScriptMgr.h:654
@ SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST
Definition SmartScriptMgr.h:630
@ SMART_ACTION_REMOVE_UNIT_FIELD_BYTES_1
Definition SmartScriptMgr.h:633
@ SMART_ACTION_SET_INST_DATA64
Definition SmartScriptMgr.h:577
@ SMART_ACTION_SET_FACTION
Definition SmartScriptMgr.h:544
@ SMART_ACTION_THREAT_SINGLE_PCT
Definition SmartScriptMgr.h:555
@ SMART_ACTION_OFFER_QUEST
Definition SmartScriptMgr.h:549
@ SMART_ACTION_REMOVE_ALL_GAMEOBJECTS
Definition SmartScriptMgr.h:668
@ SMART_ACTION_RISE_UP
Definition SmartScriptMgr.h:656
@ SMART_ACTION_SET_INGAME_PHASE_MASK
Definition SmartScriptMgr.h:586
@ SMART_ACTION_SET_UNIT_FIELD_BYTES_1
Definition SmartScriptMgr.h:632
@ SMART_ACTION_CLOSE_GOSSIP
Definition SmartScriptMgr.h:614
@ SMART_ACTION_DISABLE_EVADE
Definition SmartScriptMgr.h:659
@ SMART_ACTION_INC_DATA
Definition SmartScriptMgr.h:729
@ SMART_ACTION_CONE_SUMMON
Definition SmartScriptMgr.h:706
@ SMART_ACTION_ADD_GO_FLAG
Definition SmartScriptMgr.h:647
@ SMART_ACTION_ESCORT_START
Definition SmartScriptMgr.h:595
@ SMART_ACTION_ADD_DYNAMIC_FLAG
Definition SmartScriptMgr.h:637
@ SMART_ACTION_KILL_UNIT
Definition SmartScriptMgr.h:593
@ SMART_ACTION_LOAD_EQUIPMENT
Definition SmartScriptMgr.h:666
@ SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS
Definition SmartScriptMgr.h:557
@ SMART_ACTION_ATTACK_START
Definition SmartScriptMgr.h:591
@ SMART_ACTION_MOVEMENT_RESUME
Definition SmartScriptMgr.h:723
@ SMART_ACTION_SET_UNIT_FLAG
Definition SmartScriptMgr.h:560
@ SMART_ACTION_NO_ENVIRONMENT_UPDATE
Definition SmartScriptMgr.h:699
@ SMART_ACTION_CALL_GROUPEVENTHAPPENS
Definition SmartScriptMgr.h:568
@ SMART_ACTION_MOUNT_TO_ENTRY_OR_MODEL
Definition SmartScriptMgr.h:585
@ SMART_ACTION_INVOKER_CAST
Definition SmartScriptMgr.h:676
@ SMART_ACTION_MOVEMENT_STOP
Definition SmartScriptMgr.h:721
@ SMART_ACTION_SET_SCALE
Definition SmartScriptMgr.h:714
@ SMART_ACTION_JUMP_TO_POS
Definition SmartScriptMgr.h:639
@ SMART_ACTION_CALL_RANDOM_TIMED_ACTIONLIST
Definition SmartScriptMgr.h:629
@ SMART_ACTION_SEND_GOSSIP_MENU
Definition SmartScriptMgr.h:640
@ SMART_ACTION_SET_COUNTER
Definition SmartScriptMgr.h:605
@ SMART_ACTION_FLEE_FOR_ASSIST
Definition SmartScriptMgr.h:567
@ SMART_ACTION_EQUIP
Definition SmartScriptMgr.h:613
@ SMART_ACTION_SET_ROOT
Definition SmartScriptMgr.h:645
@ SMART_ACTION_ATTACK_STOP
Definition SmartScriptMgr.h:711
@ SMART_ACTION_SUMMON_GO
Definition SmartScriptMgr.h:592
@ SMART_ACTION_SET_HOVER
Definition SmartScriptMgr.h:693
@ SMART_ACTION_SIMPLE_TALK
Definition SmartScriptMgr.h:626
@ SMART_ACTION_STOP_MOTION
Definition SmartScriptMgr.h:698
@ SMART_ACTION_VORTEX_SUMMON
Definition SmartScriptMgr.h:708
@ SMART_ACTION_WORLD_SCRIPT
Definition SmartScriptMgr.h:724
@ SMART_ACTION_MUSIC
Definition SmartScriptMgr.h:702
@ SMART_ACTION_SET_ORIENTATION_TARGET
Definition SmartScriptMgr.h:718
@ SMART_ACTION_SPAWN_SPAWNGROUP
Definition SmartScriptMgr.h:673
@ SMART_ACTION_SET_UNIT_MOVEMENT_FLAGS
Definition SmartScriptMgr.h:690
@ SMART_ACTION_ADD_AURA
Definition SmartScriptMgr.h:617
@ SMART_ACTION_THREAT_ALL_PCT
Definition SmartScriptMgr.h:556
@ SMART_ACTION_WAYPOINT_START
Definition SmartScriptMgr.h:719
@ SMART_ACTION_ESCORT_STOP
Definition SmartScriptMgr.h:597
@ SMART_ACTION_RESPAWN_TARGET
Definition SmartScriptMgr.h:612
@ SMART_ACTION_FOLLOW_GROUP
Definition SmartScriptMgr.h:717
@ SMART_ACTION_SOUND
Definition SmartScriptMgr.h:546
@ SMART_ACTION_ESCORT_PAUSE
Definition SmartScriptMgr.h:596
@ SMART_ACTION_MOVE_TO_POS_TARGET
Definition SmartScriptMgr.h:687
@ SMART_ACTION_SET_MOVEMENT_SPEED
Definition SmartScriptMgr.h:678
@ SMART_ACTION_PLAY_CINEMATIC
Definition SmartScriptMgr.h:677
@ SMART_ACTION_ADD_NPC_FLAG
Definition SmartScriptMgr.h:624
@ SMART_ACTION_EVADE
Definition SmartScriptMgr.h:566
@ SMART_ACTION_FAIL_QUEST
Definition SmartScriptMgr.h:548
@ SMART_ACTION_INTERRUPT_SPELL
Definition SmartScriptMgr.h:634
@ SMART_ACTION_ADD_POWER
Definition SmartScriptMgr.h:651
@ SMART_ACTION_SET_ANIM_TIER
Definition SmartScriptMgr.h:726
@ SMART_ACTION_REMOVE_DYNAMIC_FLAG
Definition SmartScriptMgr.h:638
@ SMART_ACTION_RANDOM_SOUND
Definition SmartScriptMgr.h:657
@ SMART_ACTION_RANDOM_MUSIC
Definition SmartScriptMgr.h:703
@ SMART_ACTION_SET_COMBAT_DISTANCE
Definition SmartScriptMgr.h:691
@ SMART_ACTION_SET_POWER
Definition SmartScriptMgr.h:650
@ SMART_ACTION_SEND_TARGET_TO_TARGET
Definition SmartScriptMgr.h:642
@ SMART_ACTION_REMOVE_POWER
Definition SmartScriptMgr.h:652
@ SMART_ACTION_ADD_IMMUNITY
Definition SmartScriptMgr.h:694
@ SMART_ACTION_SET_DYNAMIC_FLAG
Definition SmartScriptMgr.h:636
@ SMART_ACTION_FALL
Definition SmartScriptMgr.h:696
@ SMART_ACTION_GO_SET_GO_STATE
Definition SmartScriptMgr.h:660
@ SMART_ACTION_CUSTOM_CAST
Definition SmartScriptMgr.h:705
@ SMART_ACTION_REMOVE_ITEM
Definition SmartScriptMgr.h:599
@ SMART_ACTION_SEND_GO_CUSTOM_ANIM
Definition SmartScriptMgr.h:635
@ SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL
Definition SmartScriptMgr.h:545
@ SMART_ACTION_REMOVE_UNIT_FLAG
Definition SmartScriptMgr.h:561
@ SMART_ACTION_RANDOM_PHASE
Definition SmartScriptMgr.h:572
@ SMART_ACTION_SET_EMOTE_STATE
Definition SmartScriptMgr.h:559
@ SMART_ACTION_CROSS_CAST
Definition SmartScriptMgr.h:628
@ SMART_ACTION_GAME_EVENT_STOP
Definition SmartScriptMgr.h:653
@ SMART_ACTION_SCRIPTED_SPAWN
Definition SmartScriptMgr.h:713
@ SMART_ACTION_ESCORT_RESUME
Definition SmartScriptMgr.h:607
@ SMART_ACTION_CALL_SCRIPT_RESET
Definition SmartScriptMgr.h:620
@ SMART_ACTION_CU_ENCOUNTER_START
Definition SmartScriptMgr.h:709
@ SMART_ACTION_COMBAT_STOP
Definition SmartScriptMgr.h:569
@ SMART_ACTION_EXIT_VEHICLE
Definition SmartScriptMgr.h:689
@ SMART_ACTION_SET_HEALTH_PCT
Definition SmartScriptMgr.h:680
@ SMART_ACTION_AUTO_ATTACK
Definition SmartScriptMgr.h:562
@ SMART_ACTION_SET_INVINCIBILITY_HP_LEVEL
Definition SmartScriptMgr.h:584
@ SMART_ACTION_SET_VISIBILITY
Definition SmartScriptMgr.h:589
@ SMART_ACTION_RANDOM_PHASE_RANGE
Definition SmartScriptMgr.h:573
@ SMART_ACTION_MOVEMENT_PAUSE
Definition SmartScriptMgr.h:722
@ SMART_ACTION_GO_SET_LOOT_STATE
Definition SmartScriptMgr.h:641
@ SMART_ACTION_PLAYER_TALK
Definition SmartScriptMgr.h:707
@ SMART_ACTION_SELF_CAST
Definition SmartScriptMgr.h:627
@ SMART_ACTION_SET_SWIM
Definition SmartScriptMgr.h:603
@ SMART_ACTION_SET_SIGHT_DIST
Definition SmartScriptMgr.h:663
@ SMART_ACTION_SET_INST_DATA
Definition SmartScriptMgr.h:576
@ SMART_ACTION_REMOVE_GO_FLAG
Definition SmartScriptMgr.h:648
@ SMART_ACTION_LOAD_GRID
Definition SmartScriptMgr.h:701
@ SMART_ACTION_CALL_FOR_HELP
Definition SmartScriptMgr.h:581
@ SMART_ACTION_SUMMON_RADIAL
Definition SmartScriptMgr.h:715
@ SMART_ACTION_ADD_THREAT
Definition SmartScriptMgr.h:665
@ SMART_ACTION_DISMOUNT
Definition SmartScriptMgr.h:692
@ SMART_ACTION_TELEPORT
Definition SmartScriptMgr.h:604
@ SMART_ACTION_PLAYMOVIE
Definition SmartScriptMgr.h:610
@ SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT
Definition SmartScriptMgr.h:667
@ SMART_ACTION_FOLLOW
Definition SmartScriptMgr.h:571
@ SMART_ACTION_PLAY_EMOTE
Definition SmartScriptMgr.h:547
@ SMART_ACTION_DESPAWN_SPAWNGROUP
Definition SmartScriptMgr.h:674
@ SMART_ACTION_SET_CORPSE_DELAY
Definition SmartScriptMgr.h:658
@ SMART_ACTION_WAYPOINT_DATA_RANDOM
Definition SmartScriptMgr.h:720
@ SMART_ACTION_SET_GUID
Definition SmartScriptMgr.h:712
@ SMART_ACTION_SET_SHEATH
Definition SmartScriptMgr.h:582
@ SMART_ACTION_SET_ORIENTATION
Definition SmartScriptMgr.h:608
@ SMART_ACTION_SET_NPC_FLAG
Definition SmartScriptMgr.h:623
@ SMART_ACTION_MOVE_TO_POS
Definition SmartScriptMgr.h:611
@ SMART_ACTION_RANDOM_EMOTE
Definition SmartScriptMgr.h:552
@ SMART_ACTION_INC_EVENT_PHASE
Definition SmartScriptMgr.h:565
@ SMART_ACTION_CREATE_TIMED_EVENT
Definition SmartScriptMgr.h:609
@ SMART_ACTION_SET_EVENT_FLAG_RESET
Definition SmartScriptMgr.h:697
@ SMART_ACTION_SUMMON_GAMEOBJECT_GROUP
Definition SmartScriptMgr.h:728
@ SMART_ACTION_DIE
Definition SmartScriptMgr.h:579
@ SMART_ACTION_RESET_SCRIPT_BASE_OBJECT
Definition SmartScriptMgr.h:619
@ SMART_ACTION_REMOVE_NPC_FLAG
Definition SmartScriptMgr.h:625
@ SMART_ACTION_SET_FLY
Definition SmartScriptMgr.h:602
@ SMART_ACTION_INSTALL_AI_TEMPLATE
Definition SmartScriptMgr.h:600
@ SMART_ACTION_SUMMON_CREATURE
Definition SmartScriptMgr.h:554
@ SMART_ACTION_CALL_TIMED_ACTIONLIST
Definition SmartScriptMgr.h:622
@ SMART_ACTION_SET_IN_COMBAT_WITH_ZONE
Definition SmartScriptMgr.h:580
@ SMART_ACTION_DO_ACTION
Definition SmartScriptMgr.h:710
@ SMART_ACTION_SET_HOME_POS
Definition SmartScriptMgr.h:643
@ SMART_ACTION_ADD_ITEM
Definition SmartScriptMgr.h:598
@ SMART_ACTION_SET_ACTIVE
Definition SmartScriptMgr.h:590
@ SMART_ACTION_SET_RANGED_MOVEMENT
Definition SmartScriptMgr.h:621
@ SMART_ACTION_ACTIVATE_TAXI
Definition SmartScriptMgr.h:594
@ SMART_ACTION_START_CLOSEST_WAYPOINT
Definition SmartScriptMgr.h:655
@ SMART_ACTION_SUMMON_CREATURE_GROUP
Definition SmartScriptMgr.h:649
@ SMART_ACTION_REMOVE_IMMUNITY
Definition SmartScriptMgr.h:695
@ SMART_ACTION_PLAY_SPELL_VISUAL
Definition SmartScriptMgr.h:716
@ SMART_ACTION_SET_REACT_STATE
Definition SmartScriptMgr.h:550
@ SMART_ACTION_DISABLE_REWARD
Definition SmartScriptMgr.h:725
@ SMART_ACTION_RANDOM_MOVE
Definition SmartScriptMgr.h:631
@ SMART_ACTION_OVERRIDE_SCRIPT_BASE_OBJECT
Definition SmartScriptMgr.h:618
@ SMART_ACTION_TRIGGER_TIMED_EVENT
Definition SmartScriptMgr.h:615
@ SMART_ACTION_REMOVEAURASFROMSPELL
Definition SmartScriptMgr.h:570
@ SMART_ACTION_FLEE
Definition SmartScriptMgr.h:664
@ SMART_ACTION_ZONE_UNDER_ATTACK
Definition SmartScriptMgr.h:700
@ FOLLOW_TYPE_CIRCLE
Definition SmartScriptMgr.h:1996
@ FOLLOW_TYPE_SEMI_CIRCLE_BEHIND
Definition SmartScriptMgr.h:1997
@ FOLLOW_TYPE_SEMI_CIRCLE_FRONT
Definition SmartScriptMgr.h:1998
@ FOLLOW_TYPE_COLUMN
Definition SmartScriptMgr.h:2000
@ FOLLOW_TYPE_ANGULAR
Definition SmartScriptMgr.h:2001
@ FOLLOW_TYPE_LINE
Definition SmartScriptMgr.h:1999
SMART_EVENT
Definition SmartScriptMgr.h:98
@ SMART_EVENT_TIMED_EVENT_TRIGGERED
Definition SmartScriptMgr.h:158
@ SMART_EVENT_ESCORT_REACHED
Definition SmartScriptMgr.h:139
@ SMART_EVENT_LINK
Definition SmartScriptMgr.h:160
uint32 SAIBool
Definition SmartScriptMgr.h:31
SmartActionSummonCreatureFlags
Definition SmartScriptMgr.h:735
@ SMART_ESCORT_TARGETS
Definition SmartScriptMgr.h:40
@ SMARTCAST_TRIGGERED
Definition SmartScriptMgr.h:1982
@ SMARTCAST_ENABLE_COMBAT_MOVE_ON_LOS
Definition SmartScriptMgr.h:1990
@ SMARTCAST_COMBAT_MOVE
Definition SmartScriptMgr.h:1987
@ SMARTCAST_INTERRUPT_PREVIOUS
Definition SmartScriptMgr.h:1981
@ SMARTCAST_AURA_NOT_PRESENT
Definition SmartScriptMgr.h:1986
@ SMARTCAST_THREATLIST_NOT_SINGLE
Definition SmartScriptMgr.h:1988
@ SMARTCAST_TARGET_POWER_MANA
Definition SmartScriptMgr.h:1989
@ AURA_REMOVE_BY_EXPIRE
Definition SpellAuraDefines.h:395
@ SPELLVALUE_BASE_POINT1
Definition SpellDefines.h:114
@ SPELLVALUE_BASE_POINT2
Definition SpellDefines.h:115
@ SPELLVALUE_BASE_POINT0
Definition SpellDefines.h:113
TriggerCastFlags
Definition SpellDefines.h:132
@ TRIGGERED_FULL_MASK
Will return SPELL_FAILED_DONT_REPORT in CheckCast functions.
Definition SpellDefines.h:150
@ TRIGGERED_NONE
Definition SpellDefines.h:133
#define sSpellMgr
Definition SpellMgr.h:847
#define CAST_AI(a, b)
Definition UnitAI.h:26
#define ENSURE_AI(a, b)
Definition UnitAI.h:27
@ MOVEMENTFLAG_ONTRANSPORT
Definition UnitDefines.h:381
NPCFlags
Non Player Character flags.
Definition UnitDefines.h:320
SheathState
Definition UnitDefines.h:128
@ UNIT_STATE_LOST_CONTROL
Definition UnitDefines.h:219
@ UNIT_STATE_ROOT
Definition UnitDefines.h:183
@ UNIT_STATE_NO_ENVIRONMENT_UPD
Definition UnitDefines.h:201
@ UNIT_STATE_NO_COMBAT_MOVEMENT
Definition UnitDefines.h:204
UnitMoveType
Definition UnitDefines.h:355
@ MOVE_RUN
Definition UnitDefines.h:357
@ UNIT_FLAG_SILENCED
Definition UnitDefines.h:270
ReactStates
Definition Unit.h:566
@ UNIT_FIELD_FLAGS_2
Definition UpdateFields.h:118
@ UNIT_VIRTUAL_ITEM_SLOT_ID
Definition UpdateFields.h:116
@ UNIT_FIELD_FLAGS
Definition UpdateFields.h:117
@ UNIT_NPC_EMOTESTATE
Definition UpdateFields.h:140
@ UNIT_FIELD_BYTES_1
Definition UpdateFields.h:131
@ UNIT_DYNAMIC_FLAGS
Definition UpdateFields.h:136
@ GAMEOBJECT_FLAGS
Definition UpdateFields.h:399
#define sWaypointMgr
Definition WaypointMgr.h:54
#define sWorldState
Definition WorldState.h:377
WorldStateEvent
Definition WorldState.h:42
Say
Definition boss_broodlord_lashlayer.cpp:29
Seats
Definition boss_flame_leviathan.cpp:165
Definition ChatTextBuilder.h:31
Definition SpellAuras.h:87
void StartCinematic(uint32 const cinematicSequenceId)
Definition CinematicMgr.cpp:31
Definition CreatureAI.h:69
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 SetReputationRewardDisabled(bool disable)
Definition Creature.h:378
void SetHomePosition(float x, float y, float z, float o)
Definition Creature.h:347
void Respawn(bool force=false)
Definition Creature.cpp:2027
void GetRespawnPosition(float &x, float &y, float &z, float *ori=nullptr, float *dist=nullptr) const
Definition Creature.cpp:3069
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition Creature.h:349
void SendZoneUnderAttackMessage(Player *attacker)
Send a message to LocalDefense channel for players opposition team in the zone.
Definition Creature.cpp:2853
void GetTransportHomePosition(float &x, float &y, float &z, float &ori) const
Definition Creature.h:354
void DoFleeToGetAssistance()
Definition Creature.cpp:1073
bool IsRooted() const
Definition Creature.h:89
void SetCorpseDelay(uint32 delay)
Definition Creature.h:74
void SetLootRewardDisabled(bool disable)
Definition Creature.h:380
void SetReactState(ReactStates state)
A creature can have 3 ReactStates : Agressive, Passive, Neutral.
Definition Creature.h:100
void LoadPath(uint32 pathid)
Definition Creature.h:358
Definition SpellDefines.h:165
void AddSpellMod(SpellValueMod mod, int32 value)
Definition SpellDefines.h:167
void AddEventAtOffset(BasicEvent *event, Milliseconds offset, uint8 eventGroup=0)
Definition EventProcessor.h:108
Definition GameObjectAI.h:33
virtual void SetData(uint32, uint32)
Definition GameObjectAI.h:62
void UseDoorOrButton(uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
Definition GameObject.cpp:1413
bool isSpawnedByDefault() const
Definition GameObject.h:196
void SetLootState(LootState s, Unit *unit=nullptr)
Definition GameObject.cpp:2468
void SetRespawnTime(int32 respawn)
Definition GameObject.cpp:1287
GameobjectTypes GetGoType() const
Definition GameObject.h:203
void Respawn()
Definition GameObject.cpp:1302
void DespawnOrUnsummon(Milliseconds delay=0ms, Seconds forcedRespawnTime=0s)
Definition GameObject.cpp:927
void CastSpell(Unit *target, uint32 spell)
Definition GameObject.cpp:2083
virtual bool SetBossState(uint32 id, EncounterState state)
Definition InstanceScript.cpp:400
virtual void DoAction(int32)
Definition InstanceScript.h:286
static std::string GetBossStateName(uint8 state)
Definition InstanceScript.cpp:844
Definition LinkedList.h:139
bool IsEmpty() const
Definition LinkedList.h:97
Definition MapRefMgr.h:26
iterator begin()
Definition MapRefMgr.h:36
iterator end()
Definition MapRefMgr.h:37
bool SpawnGroupSpawn(uint32 groupId, bool ignoreRespawn=false, bool force=false)
Definition Map.cpp:2614
void LoadGrid(float x, float y)
Definition Map.cpp:216
PlayerList const & GetPlayers() const
Definition Map.h:335
bool SpawnGroupDespawn(uint32 groupId, bool deleteRespawnTimes=false)
Definition Map.cpp:2698
void MovePoint(uint32 id, Position const &pos, ForcedMovement forcedMovement=FORCED_MOVEMENT_NONE, float speed=0.f, bool generatePath=true, bool forceDestination=true, std::optional< AnimTier > animTier=std::nullopt)
Definition MotionMaster.h:240
void MoveWaypoint(uint32 path_id, bool repeatable, PathSource pathSource=PathSource::WAYPOINT_MGR)
Move the unit following a specific path. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition MotionMaster.cpp:933
void MovementExpired(bool reset=true)
Definition MotionMaster.h:206
void MoveJump(Position const &pos, float speedXY, float speedZ, uint32 id=0)
Definition MotionMaster.h:256
void MoveIdle()
Definition MotionMaster.cpp:235
void MoveFollow(Unit *target, float dist, float angle, MovementSlot slot=MOTION_SLOT_ACTIVE, bool inheritWalkState=true, bool inheritSpeed=true)
The unit will follow this target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition MotionMaster.cpp:448
void MoveRandom(float wanderDistance=0.0f)
Enable a random movement in desired range around the unit. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition MotionMaster.cpp:245
static ObjectGuid const Empty
Definition ObjectGuid.h:123
std::string ToString() const
Definition ObjectGuid.cpp:48
static CreatureModel const * ChooseDisplayId(CreatureTemplate const *cinfo, CreatureData const *data=nullptr)
Definition ObjectMgr.cpp:1644
bool HasFlag(uint16 index, uint32 flag) const
Definition Object.cpp:875
virtual void SetObjectScale(float scale)
Definition Object.h:121
CinematicMgr & GetCinematicMgr()
Definition Player.h:1403
void GroupEventHappens(uint32 questId, WorldObject const *pEventObject)
Definition PlayerQuest.cpp:1877
void PrepareGossipMenu(WorldObject *source, uint32 menuId=0, bool showQuests=false)
Definition PlayerGossip.cpp:32
void RewardPlayerAndGroupAtEvent(uint32 creature_id, WorldObject *pRewardSource)
Definition Player.cpp:13015
Definition QuestDef.h:210
void SetInvincibilityHpLevel(uint32 level)
Definition SmartAI.h:189
void SetData(uint32 id, uint32 value) override
Definition SmartAI.h:167
void IncPhase(uint32 p)
Definition SmartScript.cpp:5600
void StoreTargetList(ObjectVector const &targets, uint32 id)
Definition SmartScript.h:93
void RetryLater(SmartScriptHolder &e, bool ignoreChanceRoll=false)
Definition SmartScript.cpp:5288
void StoreCounter(uint32 id, uint32 value, uint32 reset, uint32 subtract)
Definition SmartScript.h:108
std::optional< std::reference_wrapper< SmartScriptHolder > > FindLinkedEvent(uint32 link)
Definition SmartScript.h:269
std::deque< SmartScriptFrame > executionStack
Definition SmartScript.h:286
void SetPhaseReset(bool allow)
Definition SmartScript.h:205
void GetTargets(ObjectVector &targets, SmartScriptHolder const &e, WorldObject *invoker=nullptr) const
Definition SmartScript.cpp:3566
void OnReset()
Definition SmartScript.cpp:131
void InstallTemplate(SmartScriptHolder const &e)
Definition SmartScript.cpp:3454
ObjectGuid goOrigGUID
Definition SmartScript.h:229
void DecPhase(uint32 p)
Definition SmartScript.cpp:5606
ObjectGuid meOrigGUID
Definition SmartScript.h:227
Definition SpellInfo.h:340
SpellSchoolMask GetSchoolMask() const
Definition SpellInfo.cpp:1894
bool HasAttribute(SpellAttr0 attribute) const
Definition SpellInfo.h:441
int32 CalcPowerCost(Unit const *caster, SpellSchoolMask schoolMask, Spell *spell=nullptr) const
Definition SpellInfo.cpp:2803
void ModifyThreatByPercent(Unit *target, int32 percent)
Definition ThreatManager.h:150
size_t GetThreatListSize() const
Definition ThreatManager.cpp:298
Definition VehicleDefines.h:130
virtual void SetData(uint32, uint32)
Definition UnitAI.h:219
virtual void AttackStart(Unit *)
Definition UnitAI.cpp:29
uint8 getGender() const
Definition Unit.h:849
void SetFacingToObject(WorldObject *object, Milliseconds timed=0ms)
Definition Unit.cpp:16465
void SetFacingTo(float ori)
Definition Unit.cpp:16455
float GetSpeed(UnitMoveType mtype) const
Definition Unit.cpp:11299
void InterruptNonMeleeSpells(bool withDelayed, uint32 spellid=0, bool withInstant=true, bool bySelf=false)
Definition Unit.cpp:4312
float GetSpellMinRangeForTarget(Unit const *target, SpellInfo const *spellInfo) const
Definition Unit.cpp:11911
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition Unit.cpp:7762
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 SetUnitMovementFlags(uint32 f)
Definition Unit.h:777
SpellCastResult CastCustomSpell(Unit *victim, uint32 spellId, int32 const *bp0, int32 const *bp1, int32 const *bp2, bool triggered, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1418
bool IsAlive() const
Definition Unit.h:1793
void StopMoving()
Definition Unit.cpp:13034
void SendPlaySpellVisual(uint32 id)
Definition Unit.cpp:15185
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition Unit.cpp:6017
virtual void SetSheath(SheathState sheathed)
Definition Unit.h:1777
float GetSpellMaxRangeForTarget(Unit const *target, SpellInfo const *spellInfo) const
Definition Unit.cpp:11891
bool HasUnitMovementFlag(uint32 f) const
Definition Unit.h:775
TransportBase * GetDirectTransport() const
Definition Unit.cpp:15041
void SendMovementFlagUpdate(bool self=false)
Definition Unit.cpp:13088
void EngageWithTarget(Unit *who)
Definition Unit.cpp:7565
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition Unit.cpp:1361
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint8 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
Definition Unit.cpp:5189
void SetSpeed(UnitMoveType mtype, float rate, bool forced=false)
Definition Unit.cpp:11304
ThreatManager & GetThreatMgr()
Definition Unit.h:952
ObjectGuid GetTransGUID() const override
Definition Unit.cpp:15030
bool IsAIEnabled
Definition Unit.h:2097
bool HasUnitState(const uint32 f) const
Definition Unit.h:737
float GetPowerPct(Powers power) const
Definition Unit.h:1138
void SetDisableGravity(bool disable)
Definition Unit.cpp:16506
float GetMeleeRange(Unit const *target) const
Definition Unit.cpp:799
uint32 GetPower(Powers power) const
Definition Unit.h:1136
void CombatStop(bool includingCast=false, bool mutualPvP=true)
Definition Unit.cpp:7532
void KillSelf(bool durabilityLoss=true, WeaponAttackType attackType=BASE_ATTACK, SpellInfo const *spellProto=nullptr, Spell const *spell=nullptr)
Definition Unit.h:1235
bool CanHaveThreatList(bool skipAliveCheck=false) const
Definition Unit.cpp:11431
void SetInFront(WorldObject const *target)
Definition Unit.cpp:16449
bool isDead() const
Definition Unit.h:1795
Map * FindMap() const
Definition Object.h:632
bool IsWithinLOSInMap(WorldObject const *obj, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, Optional< float > collisionHeight={ }, Optional< float > combatReach={ }) const
Definition Object.cpp:1407
void GetNearPoint(WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle, float controlZ=0, Position const *startPos=nullptr) const
Definition Object.cpp:2747
void SummonGameObjectGroup(uint8 group, std::list< GameObject * > *list=nullptr)
Definition Object.cpp:2539
bool GetClosePoint(float &x, float &y, float &z, float size, float distance2d=0, float angle=0, WorldObject const *forWho=nullptr, bool force=false) const
Definition Object.cpp:2820
std::string const & GetName() const
Definition Object.h:529
void AddObjectToRemoveList()
Definition Object.cpp:2227
EventProcessor m_Events
Definition Object.h:742
TempSummon * SummonCreature(uint32 id, Position const &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition Object.cpp:2448
float GetDistance(WorldObject const *obj) const
Definition Object.cpp:1299
uint32 GetAreaId() const
Definition Object.cpp:3174
uint32 GetZoneId() const
Definition Object.cpp:3166
float GetObjectSize() const
Definition Object.cpp:2892
GameObject * SummonGameObject(uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime, bool checkTransport=true, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
Definition Object.cpp:2462
void SummonCreatureGroup(uint8 group, std::list< TempSummon * > *list=nullptr)
Definition Object.cpp:2525
virtual float GetCombatReach() const
Definition Object.h:507
void GetRandomPoint(Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
Definition Object.cpp:1562
Creature * SummonTrigger(float x, float y, float z, float ang, uint32 dur, bool setLevel=false, CreatureAI *(*GetAI)(Creature *)=nullptr)
Definition Object.cpp:2497
Player session in the World.
Definition WorldSession.h:409
virtual void SetData(uint32, uint32)
Definition ZoneScript.h:52
virtual void SetGuidData(uint32, ObjectGuid)
Definition ZoneScript.h:45
auto SelectRandomContainerElement(C const &container) -> typename std::add_const< decltype(*std::begin(container))>::type &
Definition Containers.h:133
std::string ToString(Type &&val, Params &&... params)
Definition StringConvert.h:250
Definition ObjectAccessor.h:61
Player * GetPlayer(Map const *, ObjectGuid const &guid)
Definition ObjectAccessor.cpp:244
Definition CreatureData.h:170
uint32 CreatureDisplayID
Definition CreatureData.h:180
float DisplayScale
Definition CreatureData.h:181
Definition CreatureData.h:360
uint32 ItemEntry[MAX_EQUIPMENT_ITEMS]
Definition CreatureData.h:361
float GetAngle(Position const *pos) const
Definition Position.cpp:85
float m_positionZ
Definition Position.h:57
float m_positionX
Definition Position.h:55
float GetPositionZ() const
Definition Position.h:123
float m_positionY
Definition Position.h:56
float GetOrientation() const
Definition Position.h:124
void SetOrientation(float orientation)
Definition Position.h:116
float GetPositionX() const
Definition Position.h:121
void GetPosition(float &x, float &y) const
Definition Position.h:126
float GetPositionY() const
Definition Position.h:122
void RelocatePolarOffset(float angle, float dist, float z=0.0f)
Definition Position.cpp:34
Definition SmartScriptMgr.h:746
struct SmartAction::@75::@98 combatMove
uint32 followState
Definition SmartScriptMgr.h:1455
uint32 visualId
Definition SmartScriptMgr.h:1450
uint32 targetParam2
Definition SmartScriptMgr.h:850
struct SmartAction::@75::@100 incEventPhase
struct SmartAction::@75::@106 killedMonster
SAIBool disableForceDestination
Definition SmartScriptMgr.h:1207
std::array< uint32, SMART_ACTION_PARAM_COUNT > emotes
Definition SmartScriptMgr.h:833
uint32 forcedMovement
Definition SmartScriptMgr.h:1032
uint32 repeatMax
Definition SmartScriptMgr.h:1109
uint32 phaseMin
Definition SmartScriptMgr.h:935
uint32 targetsLimit
Definition SmartScriptMgr.h:841
struct SmartAction::@75::@181 movementSpeed
struct SmartAction::@75::@186 setScale
SAIBool transport
Definition SmartScriptMgr.h:1203
struct SmartAction::@75::@192 wpDataRandom
struct SmartAction::@75::@82 randomSound
struct SmartAction::@75::@120 summonGO
uint32 startAngle
Definition SmartScriptMgr.h:1443
SAIBool reset
Definition SmartScriptMgr.h:1094
std::array< uint32, SMART_ACTION_PARAM_COUNT > actionLists
Definition SmartScriptMgr.h:1157
struct SmartAction::@75::@185 scriptSpawn
uint32 delay
Definition SmartScriptMgr.h:756
struct SmartAction::@75::@163 startClosestWaypoint
uint32 random
Definition SmartScriptMgr.h:1338
uint32 quickChange
Definition SmartScriptMgr.h:1337
uint32 targetParam4
Definition SmartScriptMgr.h:1467
uint32 dist
Definition SmartScriptMgr.h:920
uint32 group
Definition SmartScriptMgr.h:1260
SAIBool disable
Definition SmartScriptMgr.h:1392
struct SmartAction::@75::@180 corpseDelay
struct SmartAction::@75::@194 worldStateScript
struct SmartAction::@75::@111 callHelp
uint32 spell
Definition SmartScriptMgr.h:838
uint32 minHP
Definition SmartScriptMgr.h:987
SAIBool force
Definition SmartScriptMgr.h:1314
struct SmartAction::@75::@177 summonVortex
uint32 flags
Definition SmartScriptMgr.h:847
struct SmartAction::@75::@97 autoAttack
SAIBool loot
Definition SmartScriptMgr.h:1510
uint32 distanceBetweenSummons
Definition SmartScriptMgr.h:1353
uint32 data
Definition SmartScriptMgr.h:947
struct SmartAction::@75::@105 randomPhaseRange
uint32 entry
Definition SmartScriptMgr.h:922
struct SmartAction::@75::@91 crossCast
struct SmartAction::@75::@129 setSwim
uint32 quest
Definition SmartScriptMgr.h:817
struct SmartAction::@75::@150 moveToPosTarget
struct SmartAction::@75::@172 orientation
struct SmartAction::@75::@78 simpleTalk
uint32 triggerFlags
Definition SmartScriptMgr.h:840
struct SmartAction::@75::@87 questOffer
uint32 bp1
Definition SmartScriptMgr.h:1368
uint32 distance
Definition SmartScriptMgr.h:780
SAIBool removeObjectFromWorld
Definition SmartScriptMgr.h:982
uint32 min
Definition SmartScriptMgr.h:1106
uint32 spawnTimerMax
Definition SmartScriptMgr.h:1427
uint32 subtract
Definition SmartScriptMgr.h:1095
struct SmartAction::@75::@110 die
uint32 a
Definition SmartScriptMgr.h:1377
struct SmartAction::@75::@151 sendGossipMenu
struct SmartAction::@75::@104 randomPhase
struct SmartAction::@75::@198 setGossipMenu
struct SmartAction::@75::@133 timeEvent
SAIBool invokerGUID
Definition SmartScriptMgr.h:1419
struct SmartAction::@75::@191 wpData
uint32 percent
Definition SmartScriptMgr.h:988
uint32 dec
Definition SmartScriptMgr.h:904
uint32 milliseconds
Definition SmartScriptMgr.h:964
struct SmartAction::@75::@125 item
uint32 summonEntry
Definition SmartScriptMgr.h:1350
struct SmartAction::@75::@84 randomMusic
uint32 followType
Definition SmartScriptMgr.h:1456
uint32 instanceTarget
Definition SmartScriptMgr.h:1387
struct SmartAction::@75::@196 reward
uint32 credit
Definition SmartScriptMgr.h:923
uint32 controlled
Definition SmartScriptMgr.h:1204
uint32 alternative
Definition SmartScriptMgr.h:856
uint32 targetParam1
Definition SmartScriptMgr.h:849
uint32 mapID
Definition SmartScriptMgr.h:1087
uint32 stopMovement
Definition SmartScriptMgr.h:1344
struct SmartAction::@75::@134 movie
struct SmartAction::@75::@94 summonCreature
uint32 charges
Definition SmartScriptMgr.h:915
struct SmartAction::@75::@113 forceDespawn
struct SmartAction::@75::@103 follow
uint32 model
Definition SmartScriptMgr.h:773
uint32 duration
Definition SmartScriptMgr.h:754
SAIBool attackInvoker
Definition SmartScriptMgr.h:869
SAIBool useTalkTarget
Definition SmartScriptMgr.h:755
SAIBool run
Definition SmartScriptMgr.h:1070
struct SmartAction::@75::@200 groupSpawn
struct SmartAction::@75::@176 castCustom
uint32 value
Definition SmartScriptMgr.h:1093
struct SmartAction::@75::@140 timedActionList
uint32 movementExpired
Definition SmartScriptMgr.h:1345
struct SmartAction::@75::@117 moveRandom
uint32 targetParam3
Definition SmartScriptMgr.h:851
uint32 respawnDelay
Definition SmartScriptMgr.h:1428
SAIBool swim
Definition SmartScriptMgr.h:1082
uint32 combatReach
Definition SmartScriptMgr.h:1206
uint32 sound2
Definition SmartScriptMgr.h:786
struct SmartAction::@75::@188 spellVisual
uint32 spawnPos
Definition SmartScriptMgr.h:1308
struct SmartAction::@75::@92 activateObject
struct SmartAction::@75::@167 setHomePos
struct SmartAction::@75::@161 gameEventStop
uint32 pathId2
Definition SmartScriptMgr.h:1284
uint32 creature
Definition SmartScriptMgr.h:772
struct SmartAction::@75::@190 orientationTarget
uint32 spawnTimerMin
Definition SmartScriptMgr.h:1426
struct SmartAction::@75::@132 storeTargets
struct SmartAction::@75::@114 invincHP
uint32 angle
Definition SmartScriptMgr.h:921
uint32 field
Definition SmartScriptMgr.h:946
struct SmartAction::@75::@199 gameobjectGroup
uint32 range
Definition SmartScriptMgr.h:861
struct SmartAction::@75::@95 threatPCT
struct SmartAction::@75::@89 randomEmote
struct SmartAction::@75::@162 gameEventStart
uint32 flag
Definition SmartScriptMgr.h:1127
uint32 sound3
Definition SmartScriptMgr.h:787
uint32 targetsummon
Definition SmartScriptMgr.h:1021
struct SmartAction::@75::@145 jump
uint32 chance
Definition SmartScriptMgr.h:1110
struct SmartAction::@75::@131 setCounter
uint32 state
Definition SmartScriptMgr.h:828
struct SmartAction::@75::@90 cast
struct SmartAction::@75::@108 setInstanceData64
uint32 sound1
Definition SmartScriptMgr.h:785
struct SmartAction::@75::@80 morphOrMount
struct SmartAction::@75::@116 setData
uint32 forceRespawnTimer
Definition SmartScriptMgr.h:981
uint32 speed
Definition SmartScriptMgr.h:1076
uint32 sound4
Definition SmartScriptMgr.h:788
struct SmartAction::@75::@147 flee
uint32 targetType
Definition SmartScriptMgr.h:848
uint32 repetitions
Definition SmartScriptMgr.h:1442
struct SmartAction::@75::@174 coneSummon
uint32 aliveState
Definition SmartScriptMgr.h:925
SAIBool onlySelf
Definition SmartScriptMgr.h:779
uint32 attackScriptOwner
Definition SmartScriptMgr.h:870
uint32 speedxy
Definition SmartScriptMgr.h:1180
uint32 pointId
Definition SmartScriptMgr.h:1202
SAIBool attack
Definition SmartScriptMgr.h:888
uint32 repeatMin
Definition SmartScriptMgr.h:1108
struct SmartAction::@75::@122 wpStart
uint32 scale
Definition SmartScriptMgr.h:1435
SAIBool fly
Definition SmartScriptMgr.h:1075
uint32 textGroupID
Definition SmartScriptMgr.h:753
uint32 castFlags
Definition SmartScriptMgr.h:839
struct SmartAction::@75::@179 disableEvade
std::array< uint32, SMART_ACTION_PARAM_COUNT > phases
Definition SmartScriptMgr.h:930
SAIBool dontDespawn
Definition SmartScriptMgr.h:1430
uint32 turnAngle
Definition SmartScriptMgr.h:1339
uint32 textId
Definition SmartScriptMgr.h:1360
uint32 gossipMenuId
Definition SmartScriptMgr.h:1218
uint32 speedz
Definition SmartScriptMgr.h:1181
SAIBool repeat
Definition SmartScriptMgr.h:1034
struct SmartAction::@75::@173 stopMotion
uint32 gossipNpcTextId
Definition SmartScriptMgr.h:1219
uint32 mask
Definition SmartScriptMgr.h:993
uint32 pathId1
Definition SmartScriptMgr.h:1283
uint32 phi_delta
Definition SmartScriptMgr.h:1380
uint32 count
Definition SmartScriptMgr.h:1055
struct SmartAction::@75::@112 setSheath
uint32 inc
Definition SmartScriptMgr.h:903
uint32 phaseMax
Definition SmartScriptMgr.h:936
struct SmartAction::@75::@130 teleport
uint32 timer
Definition SmartScriptMgr.h:1397
uint32 ContactDistance
Definition SmartScriptMgr.h:1205
struct SmartAction::@75::@79 faction
PathSource pathSource
Definition SmartScriptMgr.h:1287
struct SmartAction::@75::@135 equip
uint32 k
Definition SmartScriptMgr.h:1378
uint32 distanceBetweenRings
Definition SmartScriptMgr.h:1352
uint32 coneLength
Definition SmartScriptMgr.h:1354
uint32 counterId
Definition SmartScriptMgr.h:1092
SAIBool withEmote
Definition SmartScriptMgr.h:970
struct SmartAction::@75::@146 movementFlag
uint32 param
Definition SmartScriptMgr.h:1492
uint32 max
Definition SmartScriptMgr.h:1107
uint32 selfJump
Definition SmartScriptMgr.h:1182
struct SmartAction::@75::@183 cinematic
uint32 maxId
Definition SmartScriptMgr.h:1320
uint32 r_max
Definition SmartScriptMgr.h:1379
struct SmartAction::@75::@136 unitFlag
uint32 speedFraction
Definition SmartScriptMgr.h:1404
struct SmartAction::@75::@88 react
struct SmartAction::@75::@119 setActive
struct SmartAction::@75::@159 creatureGroup
SAIBool fail
Definition SmartScriptMgr.h:1049
struct SmartAction::@75::@124 wpStop
SAIBool directAdd
Definition SmartScriptMgr.h:823
uint32 bp2
Definition SmartScriptMgr.h:1369
uint32 disableGravity
Definition SmartScriptMgr.h:1077
uint32 sound
Definition SmartScriptMgr.h:778
uint32 threatINC
Definition SmartScriptMgr.h:876
uint32 coneAngle
Definition SmartScriptMgr.h:1355
uint32 summonDuration
Definition SmartScriptMgr.h:1351
struct SmartAction::@75::@148 RespawnTarget
struct SmartAction::@75::@175 playerTalk
uint32 threatDEC
Definition SmartScriptMgr.h:877
SAIBool reputation
Definition SmartScriptMgr.h:1509
uint32 ignoreRespawn
Definition SmartScriptMgr.h:1531
uint32 stepAngle
Definition SmartScriptMgr.h:1444
struct SmartAction::@75::@153 sendTargetToTarget
uint32 reactState
Definition SmartScriptMgr.h:1037
uint32 speedInteger
Definition SmartScriptMgr.h:1403
struct SmartAction::@75::@77 talk
uint32 index
Definition SmartScriptMgr.h:1420
struct SmartAction::@75::@123 wpPause
struct SmartAction::@75::@83 music
uint32 actionId
Definition SmartScriptMgr.h:1385
struct SmartAction::@75::@169 randomTimedEvent
uint32 despawnTime
Definition SmartScriptMgr.h:1020
struct SmartAction::@75::@128 setFly
uint32 goRespawnTime
Definition SmartScriptMgr.h:1197
struct SmartAction::@75::@115 ingamePhaseMask
uint32 factionID
Definition SmartScriptMgr.h:767
uint32 eventId
Definition SmartScriptMgr.h:1491
uint32 groupId
Definition SmartScriptMgr.h:1530
struct SmartAction::@75::@189 followGroup
uint32 pathId
Definition SmartScriptMgr.h:1472
SAIBool move
Definition SmartScriptMgr.h:893
struct SmartAction::@75::@178 doAction
struct SmartAction::@75::@149 moveToPos
std::array< uint32, MAX_EQUIPMENT_ITEMS > slots
Definition SmartScriptMgr.h:1122
struct SmartAction::@75::@127 setRun
struct SmartAction::@75::@187 radialSummon
struct SmartAction::@75::@99 setEventPhase
struct SmartAction::@75::@107 setInstanceData
uint32 questID
Definition SmartScriptMgr.h:822
uint32 bp3
Definition SmartScriptMgr.h:1370
uint32 pathID
Definition SmartScriptMgr.h:1033
uint32 emote
Definition SmartScriptMgr.h:812
struct SmartAction::@75::@102 removeAura
uint32 id
Definition SmartScriptMgr.h:1027
uint32 minId
Definition SmartScriptMgr.h:1319
uint32 phase
Definition SmartScriptMgr.h:898
uint32 sheath
Definition SmartScriptMgr.h:975
uint32 isNegative
Definition SmartScriptMgr.h:1386
uint32 creditType
Definition SmartScriptMgr.h:924
struct SmartAction::@75::@141 randTimedActionList
struct SmartAction::@75::@154 setRangedMovement
struct SmartAction::@75::@184 setGuid
Definition SmartScriptMgr.h:205
uint32 repeatMin
Definition SmartScriptMgr.h:216
uint32 repeatMax
Definition SmartScriptMgr.h:217
bool runOnce
Definition SmartScriptMgr.h:2031
uint32 link
Definition SmartScriptMgr.h:2014
bool IsAreatriggerScript() const
Definition SmartScriptMgr.h:2026
uint32 event_id
Definition SmartScriptMgr.h:2013
int32 entryOrGuid
Definition SmartScriptMgr.h:2011
uint32 GetScriptType() const
Definition SmartScriptMgr.h:2021
uint32 GetTargetType() const
Definition SmartScriptMgr.h:2024
uint32 GetActionType() const
Definition SmartScriptMgr.h:2023
struct SmartTarget::@201::@205 unitRange
float o
Definition SmartScriptMgr.h:1613
uint32 maxDist
Definition SmartScriptMgr.h:1619
uint32 range
Definition SmartScriptMgr.h:1740
float x
Definition SmartScriptMgr.h:1613
uint32 self
Definition SmartScriptMgr.h:1742
uint32 amount
Definition SmartScriptMgr.h:1741
struct SmartTarget::@201::@222 randomPoint
float y
Definition SmartScriptMgr.h:1613
float z
Definition SmartScriptMgr.h:1613
Definition WaypointDefines.h:37
float X
Definition WaypointDefines.h:48
float Z
Definition WaypointDefines.h:48
float Y
Definition WaypointDefines.h:48
Definition WaypointDefines.h:60
std::vector< WaypointNode > Nodes
Definition WaypointDefines.h:68