TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SmartScriptMgr.h File Reference
#include "Common.h"
#include "Creature.h"
#include "CreatureAI.h"
#include "Unit.h"
#include "Spell.h"
#include "DB2Stores.h"
+ Include dependency graph for SmartScriptMgr.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  WayPoint
 
struct  SmartEvent
 
struct  SmartAction
 
struct  SmartTarget
 
struct  SmartScriptHolder
 
class  ObjectGuidList
 
class  SmartWaypointMgr
 
class  SmartAIMgr
 

Macros

#define sSmartScriptMgr   SmartAIMgr::instance()
 
#define sSmartWaypointMgr   SmartWaypointMgr::instance()
 

Typedefs

typedef std::unordered_map
< uint32, WayPoint * > 
WPPath
 
typedef std::list< WorldObject * > ObjectList
 
typedef std::unordered_map
< uint32, ObjectGuidList * > 
ObjectListMap
 
typedef std::vector
< SmartScriptHolder
SmartAIEventList
 
typedef std::unordered_map
< int64, SmartAIEventList
SmartAIEventMap
 
typedef std::map< uint32,
std::pair< uint32,
SpellEffIndex > > 
CacheSpellContainer
 
typedef std::pair
< CacheSpellContainer::const_iterator,
CacheSpellContainer::const_iterator > 
CacheSpellContainerBounds
 

Enumerations

enum  eSmartAI {
  SMART_EVENT_PARAM_COUNT = 4, SMART_ACTION_PARAM_COUNT = 6, SMART_SUMMON_COUNTER = 0xFFFFFF, SMART_ESCORT_LAST_OOC_POINT = 0xFFFFFF,
  SMART_RANDOM_POINT = 0xFFFFFE, SMART_ESCORT_TARGETS = 0xFFFFFF
}
 
enum  SMART_EVENT_PHASE {
  SMART_EVENT_PHASE_ALWAYS = 0, SMART_EVENT_PHASE_1 = 1, SMART_EVENT_PHASE_2 = 2, SMART_EVENT_PHASE_3 = 3,
  SMART_EVENT_PHASE_4 = 4, SMART_EVENT_PHASE_5 = 5, SMART_EVENT_PHASE_6 = 6, SMART_EVENT_PHASE_7 = 7,
  SMART_EVENT_PHASE_8 = 8, SMART_EVENT_PHASE_9 = 9, SMART_EVENT_PHASE_MAX = 10, SMART_EVENT_PHASE_COUNT = 9
}
 
enum  SMART_EVENT_PHASE_BITS {
  SMART_EVENT_PHASE_ALWAYS_BIT = 0, SMART_EVENT_PHASE_1_BIT = 1, SMART_EVENT_PHASE_2_BIT = 2, SMART_EVENT_PHASE_3_BIT = 4,
  SMART_EVENT_PHASE_4_BIT = 8, SMART_EVENT_PHASE_5_BIT = 16, SMART_EVENT_PHASE_6_BIT = 32, SMART_EVENT_PHASE_7_BIT = 64,
  SMART_EVENT_PHASE_8_BIT = 128, SMART_EVENT_PHASE_9_BIT = 256, SMART_EVENT_PHASE_ALL = SMART_EVENT_PHASE_1_BIT + SMART_EVENT_PHASE_2_BIT + SMART_EVENT_PHASE_3_BIT + SMART_EVENT_PHASE_4_BIT + SMART_EVENT_PHASE_5_BIT + SMART_EVENT_PHASE_6_BIT + SMART_EVENT_PHASE_7_BIT + SMART_EVENT_PHASE_8_BIT + SMART_EVENT_PHASE_9_BIT
}
 
enum  SMART_EVENT {
  SMART_EVENT_UPDATE_IC = 0, SMART_EVENT_UPDATE_OOC = 1, SMART_EVENT_HEALT_PCT = 2, SMART_EVENT_MANA_PCT = 3,
  SMART_EVENT_AGGRO = 4, SMART_EVENT_KILL = 5, SMART_EVENT_DEATH = 6, SMART_EVENT_EVADE = 7,
  SMART_EVENT_SPELLHIT = 8, SMART_EVENT_RANGE = 9, SMART_EVENT_OOC_LOS = 10, SMART_EVENT_RESPAWN = 11,
  SMART_EVENT_TARGET_HEALTH_PCT = 12, SMART_EVENT_VICTIM_CASTING = 13, SMART_EVENT_FRIENDLY_HEALTH = 14, SMART_EVENT_FRIENDLY_IS_CC = 15,
  SMART_EVENT_FRIENDLY_MISSING_BUFF = 16, SMART_EVENT_SUMMONED_UNIT = 17, SMART_EVENT_TARGET_MANA_PCT = 18, SMART_EVENT_ACCEPTED_QUEST = 19,
  SMART_EVENT_REWARD_QUEST = 20, SMART_EVENT_REACHED_HOME = 21, SMART_EVENT_RECEIVE_EMOTE = 22, SMART_EVENT_HAS_AURA = 23,
  SMART_EVENT_TARGET_BUFFED = 24, SMART_EVENT_RESET = 25, SMART_EVENT_IC_LOS = 26, SMART_EVENT_PASSENGER_BOARDED = 27,
  SMART_EVENT_PASSENGER_REMOVED = 28, SMART_EVENT_CHARMED = 29, SMART_EVENT_CHARMED_TARGET = 30, SMART_EVENT_SPELLHIT_TARGET = 31,
  SMART_EVENT_DAMAGED = 32, SMART_EVENT_DAMAGED_TARGET = 33, SMART_EVENT_MOVEMENTINFORM = 34, SMART_EVENT_SUMMON_DESPAWNED = 35,
  SMART_EVENT_CORPSE_REMOVED = 36, SMART_EVENT_AI_INIT = 37, SMART_EVENT_DATA_SET = 38, SMART_EVENT_WAYPOINT_START = 39,
  SMART_EVENT_WAYPOINT_REACHED = 40, SMART_EVENT_TRANSPORT_ADDPLAYER = 41, SMART_EVENT_TRANSPORT_ADDCREATURE = 42, SMART_EVENT_TRANSPORT_REMOVE_PLAYER = 43,
  SMART_EVENT_TRANSPORT_RELOCATE = 44, SMART_EVENT_INSTANCE_PLAYER_ENTER = 45, SMART_EVENT_AREATRIGGER_ONTRIGGER = 46, SMART_EVENT_QUEST_ACCEPTED = 47,
  SMART_EVENT_QUEST_OBJ_COPLETETION = 48, SMART_EVENT_QUEST_COMPLETION = 49, SMART_EVENT_QUEST_REWARDED = 50, SMART_EVENT_QUEST_FAIL = 51,
  SMART_EVENT_TEXT_OVER = 52, SMART_EVENT_RECEIVE_HEAL = 53, SMART_EVENT_JUST_SUMMONED = 54, SMART_EVENT_WAYPOINT_PAUSED = 55,
  SMART_EVENT_WAYPOINT_RESUMED = 56, SMART_EVENT_WAYPOINT_STOPPED = 57, SMART_EVENT_WAYPOINT_ENDED = 58, SMART_EVENT_TIMED_EVENT_TRIGGERED = 59,
  SMART_EVENT_UPDATE = 60, SMART_EVENT_LINK = 61, SMART_EVENT_GOSSIP_SELECT = 62, SMART_EVENT_JUST_CREATED = 63,
  SMART_EVENT_GOSSIP_HELLO = 64, SMART_EVENT_FOLLOW_COMPLETED = 65, SMART_EVENT_DUMMY_EFFECT = 66, SMART_EVENT_IS_BEHIND_TARGET = 67,
  SMART_EVENT_GAME_EVENT_START = 68, SMART_EVENT_GAME_EVENT_END = 69, SMART_EVENT_GO_STATE_CHANGED = 70, SMART_EVENT_GO_EVENT_INFORM = 71,
  SMART_EVENT_ACTION_DONE = 72, SMART_EVENT_ON_SPELLCLICK = 73, SMART_EVENT_FRIENDLY_HEALTH_PCT = 74, SMART_EVENT_DISTANCE_CREATURE = 75,
  SMART_EVENT_DISTANCE_GAMEOBJECT = 76, SMART_EVENT_COUNTER_SET = 77, SMART_EVENT_END = 78
}
 
enum  SMART_SCRIPT_RESPAWN_CONDITION { SMART_SCRIPT_RESPAWN_CONDITION_NONE = 0, SMART_SCRIPT_RESPAWN_CONDITION_MAP = 1, SMART_SCRIPT_RESPAWN_CONDITION_AREA = 2, SMART_SCRIPT_RESPAWN_CONDITION_END = 3 }
 
enum  SMART_ACTION {
  SMART_ACTION_NONE = 0, SMART_ACTION_TALK = 1, SMART_ACTION_SET_FACTION = 2, SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL = 3,
  SMART_ACTION_SOUND = 4, SMART_ACTION_PLAY_EMOTE = 5, SMART_ACTION_FAIL_QUEST = 6, SMART_ACTION_ADD_QUEST = 7,
  SMART_ACTION_SET_REACT_STATE = 8, SMART_ACTION_ACTIVATE_GOBJECT = 9, SMART_ACTION_RANDOM_EMOTE = 10, SMART_ACTION_CAST = 11,
  SMART_ACTION_SUMMON_CREATURE = 12, SMART_ACTION_THREAT_SINGLE_PCT = 13, SMART_ACTION_THREAT_ALL_PCT = 14, SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS = 15,
  SMART_ACTION_SET_INGAME_PHASE_GROUP = 16, SMART_ACTION_SET_EMOTE_STATE = 17, SMART_ACTION_SET_UNIT_FLAG = 18, SMART_ACTION_REMOVE_UNIT_FLAG = 19,
  SMART_ACTION_AUTO_ATTACK = 20, SMART_ACTION_ALLOW_COMBAT_MOVEMENT = 21, SMART_ACTION_SET_EVENT_PHASE = 22, SMART_ACTION_INC_EVENT_PHASE = 23,
  SMART_ACTION_EVADE = 24, SMART_ACTION_FLEE_FOR_ASSIST = 25, SMART_ACTION_CALL_GROUPEVENTHAPPENS = 26, SMART_ACTION_COMBAT_STOP = 27,
  SMART_ACTION_REMOVEAURASFROMSPELL = 28, SMART_ACTION_FOLLOW = 29, SMART_ACTION_RANDOM_PHASE = 30, SMART_ACTION_RANDOM_PHASE_RANGE = 31,
  SMART_ACTION_RESET_GOBJECT = 32, SMART_ACTION_CALL_KILLEDMONSTER = 33, SMART_ACTION_SET_INST_DATA = 34, SMART_ACTION_SET_INST_DATA64 = 35,
  SMART_ACTION_UPDATE_TEMPLATE = 36, SMART_ACTION_DIE = 37, SMART_ACTION_SET_IN_COMBAT_WITH_ZONE = 38, SMART_ACTION_CALL_FOR_HELP = 39,
  SMART_ACTION_SET_SHEATH = 40, SMART_ACTION_FORCE_DESPAWN = 41, SMART_ACTION_SET_INVINCIBILITY_HP_LEVEL = 42, SMART_ACTION_MOUNT_TO_ENTRY_OR_MODEL = 43,
  SMART_ACTION_SET_INGAME_PHASE_ID = 44, SMART_ACTION_SET_DATA = 45, SMART_ACTION_MOVE_FORWARD = 46, SMART_ACTION_SET_VISIBILITY = 47,
  SMART_ACTION_SET_ACTIVE = 48, SMART_ACTION_ATTACK_START = 49, SMART_ACTION_SUMMON_GO = 50, SMART_ACTION_KILL_UNIT = 51,
  SMART_ACTION_ACTIVATE_TAXI = 52, SMART_ACTION_WP_START = 53, SMART_ACTION_WP_PAUSE = 54, SMART_ACTION_WP_STOP = 55,
  SMART_ACTION_ADD_ITEM = 56, SMART_ACTION_REMOVE_ITEM = 57, SMART_ACTION_INSTALL_AI_TEMPLATE = 58, SMART_ACTION_SET_RUN = 59,
  SMART_ACTION_SET_FLY = 60, SMART_ACTION_SET_SWIM = 61, SMART_ACTION_TELEPORT = 62, SMART_ACTION_SET_COUNTER = 63,
  SMART_ACTION_STORE_TARGET_LIST = 64, SMART_ACTION_WP_RESUME = 65, SMART_ACTION_SET_ORIENTATION = 66, SMART_ACTION_CREATE_TIMED_EVENT = 67,
  SMART_ACTION_PLAYMOVIE = 68, SMART_ACTION_MOVE_TO_POS = 69, SMART_ACTION_RESPAWN_TARGET = 70, SMART_ACTION_EQUIP = 71,
  SMART_ACTION_CLOSE_GOSSIP = 72, SMART_ACTION_TRIGGER_TIMED_EVENT = 73, SMART_ACTION_REMOVE_TIMED_EVENT = 74, SMART_ACTION_ADD_AURA = 75,
  SMART_ACTION_OVERRIDE_SCRIPT_BASE_OBJECT = 76, SMART_ACTION_RESET_SCRIPT_BASE_OBJECT = 77, SMART_ACTION_CALL_SCRIPT_RESET = 78, SMART_ACTION_SET_RANGED_MOVEMENT = 79,
  SMART_ACTION_CALL_TIMED_ACTIONLIST = 80, SMART_ACTION_SET_NPC_FLAG = 81, SMART_ACTION_ADD_NPC_FLAG = 82, SMART_ACTION_REMOVE_NPC_FLAG = 83,
  SMART_ACTION_SIMPLE_TALK = 84, SMART_ACTION_INVOKER_CAST = 85, SMART_ACTION_CROSS_CAST = 86, SMART_ACTION_CALL_RANDOM_TIMED_ACTIONLIST = 87,
  SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST = 88, SMART_ACTION_RANDOM_MOVE = 89, SMART_ACTION_SET_UNIT_FIELD_BYTES_1 = 90, SMART_ACTION_REMOVE_UNIT_FIELD_BYTES_1 = 91,
  SMART_ACTION_INTERRUPT_SPELL = 92, SMART_ACTION_SEND_GO_CUSTOM_ANIM = 93, SMART_ACTION_SET_DYNAMIC_FLAG = 94, SMART_ACTION_ADD_DYNAMIC_FLAG = 95,
  SMART_ACTION_REMOVE_DYNAMIC_FLAG = 96, SMART_ACTION_JUMP_TO_POS = 97, SMART_ACTION_SEND_GOSSIP_MENU = 98, SMART_ACTION_GO_SET_LOOT_STATE = 99,
  SMART_ACTION_SEND_TARGET_TO_TARGET = 100, SMART_ACTION_SET_HOME_POS = 101, SMART_ACTION_SET_HEALTH_REGEN = 102, SMART_ACTION_SET_ROOT = 103,
  SMART_ACTION_SET_GO_FLAG = 104, SMART_ACTION_ADD_GO_FLAG = 105, SMART_ACTION_REMOVE_GO_FLAG = 106, SMART_ACTION_SUMMON_CREATURE_GROUP = 107,
  SMART_ACTION_SET_POWER = 108, SMART_ACTION_ADD_POWER = 109, SMART_ACTION_REMOVE_POWER = 110, SMART_ACTION_GAME_EVENT_STOP = 111,
  SMART_ACTION_GAME_EVENT_START = 112, SMART_ACTION_START_CLOSEST_WAYPOINT = 113, SMART_ACTION_RISE_UP = 114, SMART_ACTION_RANDOM_SOUND = 115,
  SMART_ACTION_END = 116
}
 
enum  SMARTAI_TEMPLATE {
  SMARTAI_TEMPLATE_BASIC = 0, SMARTAI_TEMPLATE_CASTER = 1, SMARTAI_TEMPLATE_TURRET = 2, SMARTAI_TEMPLATE_PASSIVE = 3,
  SMARTAI_TEMPLATE_CAGED_GO_PART = 4, SMARTAI_TEMPLATE_CAGED_NPC_PART = 5, SMARTAI_TEMPLATE_END = 6
}
 
enum  SMARTAI_TARGETS {
  SMART_TARGET_NONE = 0, SMART_TARGET_SELF = 1, SMART_TARGET_VICTIM = 2, SMART_TARGET_HOSTILE_SECOND_AGGRO = 3,
  SMART_TARGET_HOSTILE_LAST_AGGRO = 4, SMART_TARGET_HOSTILE_RANDOM = 5, SMART_TARGET_HOSTILE_RANDOM_NOT_TOP = 6, SMART_TARGET_ACTION_INVOKER = 7,
  SMART_TARGET_POSITION = 8, SMART_TARGET_CREATURE_RANGE = 9, SMART_TARGET_CREATURE_GUID = 10, SMART_TARGET_CREATURE_DISTANCE = 11,
  SMART_TARGET_STORED = 12, SMART_TARGET_GAMEOBJECT_RANGE = 13, SMART_TARGET_GAMEOBJECT_GUID = 14, SMART_TARGET_GAMEOBJECT_DISTANCE = 15,
  SMART_TARGET_INVOKER_PARTY = 16, SMART_TARGET_PLAYER_RANGE = 17, SMART_TARGET_PLAYER_DISTANCE = 18, SMART_TARGET_CLOSEST_CREATURE = 19,
  SMART_TARGET_CLOSEST_GAMEOBJECT = 20, SMART_TARGET_CLOSEST_PLAYER = 21, SMART_TARGET_ACTION_INVOKER_VEHICLE = 22, SMART_TARGET_OWNER_OR_SUMMONER = 23,
  SMART_TARGET_THREAT_LIST = 24, SMART_TARGET_CLOSEST_ENEMY = 25, SMART_TARGET_CLOSEST_FRIENDLY = 26, SMART_TARGET_END = 27
}
 
enum  SmartScriptType {
  SMART_SCRIPT_TYPE_CREATURE = 0, SMART_SCRIPT_TYPE_GAMEOBJECT = 1, SMART_SCRIPT_TYPE_AREATRIGGER = 2, SMART_SCRIPT_TYPE_EVENT = 3,
  SMART_SCRIPT_TYPE_GOSSIP = 4, SMART_SCRIPT_TYPE_QUEST = 5, SMART_SCRIPT_TYPE_SPELL = 6, SMART_SCRIPT_TYPE_TRANSPORT = 7,
  SMART_SCRIPT_TYPE_INSTANCE = 8, SMART_SCRIPT_TYPE_TIMED_ACTIONLIST = 9, SMART_SCRIPT_TYPE_MAX = 10
}
 
enum  SmartAITypeMaskId {
  SMART_SCRIPT_TYPE_MASK_CREATURE = 1, SMART_SCRIPT_TYPE_MASK_GAMEOBJECT = 2, SMART_SCRIPT_TYPE_MASK_AREATRIGGER = 4, SMART_SCRIPT_TYPE_MASK_EVENT = 8,
  SMART_SCRIPT_TYPE_MASK_GOSSIP = 16, SMART_SCRIPT_TYPE_MASK_QUEST = 32, SMART_SCRIPT_TYPE_MASK_SPELL = 64, SMART_SCRIPT_TYPE_MASK_TRANSPORT = 128,
  SMART_SCRIPT_TYPE_MASK_INSTANCE = 256, SMART_SCRIPT_TYPE_MASK_TIMED_ACTIONLIST = 512
}
 
enum  SmartEventFlags {
  SMART_EVENT_FLAG_NOT_REPEATABLE = 0x001, SMART_EVENT_FLAG_DIFFICULTY_0 = 0x002, SMART_EVENT_FLAG_DIFFICULTY_1 = 0x004, SMART_EVENT_FLAG_DIFFICULTY_2 = 0x008,
  SMART_EVENT_FLAG_DIFFICULTY_3 = 0x010, SMART_EVENT_FLAG_RESERVED_5 = 0x020, SMART_EVENT_FLAG_RESERVED_6 = 0x040, SMART_EVENT_FLAG_DEBUG_ONLY = 0x080,
  SMART_EVENT_FLAG_DONT_RESET = 0x100, SMART_EVENT_FLAG_DIFFICULTY_ALL = (SMART_EVENT_FLAG_DIFFICULTY_0|SMART_EVENT_FLAG_DIFFICULTY_1|SMART_EVENT_FLAG_DIFFICULTY_2|SMART_EVENT_FLAG_DIFFICULTY_3), SMART_EVENT_FLAGS_ALL = (SMART_EVENT_FLAG_NOT_REPEATABLE|SMART_EVENT_FLAG_DIFFICULTY_ALL|SMART_EVENT_FLAG_RESERVED_5|SMART_EVENT_FLAG_RESERVED_6|SMART_EVENT_FLAG_DEBUG_ONLY|SMART_EVENT_FLAG_DONT_RESET)
}
 
enum  SmartCastFlags { SMARTCAST_INTERRUPT_PREVIOUS = 0x01, SMARTCAST_TRIGGERED = 0x02, SMARTCAST_AURA_NOT_PRESENT = 0x20, SMARTCAST_COMBAT_MOVE = 0x40 }
 

Variables

const uint32 SmartPhaseMask [SMART_EVENT_PHASE_COUNT][2]
 
const uint32 SmartAITypeMask [SMART_SCRIPT_TYPE_MAX][2]
 
const uint32 SmartAIEventMask [SMART_EVENT_END][2]
 

Macro Definition Documentation

#define sSmartScriptMgr   SmartAIMgr::instance()
#define sSmartWaypointMgr   SmartWaypointMgr::instance()

Typedef Documentation

typedef std::map<uint32 , std::pair<uint32 , SpellEffIndex > > CacheSpellContainer
typedef std::pair<CacheSpellContainer::const_iterator, CacheSpellContainer::const_iterator> CacheSpellContainerBounds
typedef std::list<WorldObject*> ObjectList
typedef std::unordered_map<uint32, ObjectGuidList*> ObjectListMap
typedef std::vector<SmartScriptHolder> SmartAIEventList
typedef std::unordered_map<int64, SmartAIEventList> SmartAIEventMap
typedef std::unordered_map<uint32, WayPoint*> WPPath

Enumeration Type Documentation

enum eSmartAI
Enumerator
SMART_EVENT_PARAM_COUNT 
SMART_ACTION_PARAM_COUNT 
SMART_SUMMON_COUNTER 
SMART_ESCORT_LAST_OOC_POINT 
SMART_RANDOM_POINT 
SMART_ESCORT_TARGETS 
48 {
51  SMART_SUMMON_COUNTER = 0xFFFFFF,
52  SMART_ESCORT_LAST_OOC_POINT = 0xFFFFFF,
53  SMART_RANDOM_POINT = 0xFFFFFE,
54  SMART_ESCORT_TARGETS = 0xFFFFFF
55 };
Definition: SmartScriptMgr.h:51
Definition: SmartScriptMgr.h:53
Definition: SmartScriptMgr.h:54
Definition: SmartScriptMgr.h:50
Definition: SmartScriptMgr.h:52
Definition: SmartScriptMgr.h:49
Enumerator
SMART_ACTION_NONE 
SMART_ACTION_TALK 
SMART_ACTION_SET_FACTION 
SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL 
SMART_ACTION_SOUND 
SMART_ACTION_PLAY_EMOTE 
SMART_ACTION_FAIL_QUEST 
SMART_ACTION_ADD_QUEST 
SMART_ACTION_SET_REACT_STATE 
SMART_ACTION_ACTIVATE_GOBJECT 
SMART_ACTION_RANDOM_EMOTE 
SMART_ACTION_CAST 
SMART_ACTION_SUMMON_CREATURE 
SMART_ACTION_THREAT_SINGLE_PCT 
SMART_ACTION_THREAT_ALL_PCT 
SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS 
SMART_ACTION_SET_INGAME_PHASE_GROUP 
SMART_ACTION_SET_EMOTE_STATE 
SMART_ACTION_SET_UNIT_FLAG 
SMART_ACTION_REMOVE_UNIT_FLAG 
SMART_ACTION_AUTO_ATTACK 
SMART_ACTION_ALLOW_COMBAT_MOVEMENT 
SMART_ACTION_SET_EVENT_PHASE 
SMART_ACTION_INC_EVENT_PHASE 
SMART_ACTION_EVADE 
SMART_ACTION_FLEE_FOR_ASSIST 
SMART_ACTION_CALL_GROUPEVENTHAPPENS 
SMART_ACTION_COMBAT_STOP 
SMART_ACTION_REMOVEAURASFROMSPELL 
SMART_ACTION_FOLLOW 
SMART_ACTION_RANDOM_PHASE 
SMART_ACTION_RANDOM_PHASE_RANGE 
SMART_ACTION_RESET_GOBJECT 
SMART_ACTION_CALL_KILLEDMONSTER 
SMART_ACTION_SET_INST_DATA 
SMART_ACTION_SET_INST_DATA64 
SMART_ACTION_UPDATE_TEMPLATE 
SMART_ACTION_DIE 
SMART_ACTION_SET_IN_COMBAT_WITH_ZONE 
SMART_ACTION_CALL_FOR_HELP 
SMART_ACTION_SET_SHEATH 
SMART_ACTION_FORCE_DESPAWN 
SMART_ACTION_SET_INVINCIBILITY_HP_LEVEL 
SMART_ACTION_MOUNT_TO_ENTRY_OR_MODEL 
SMART_ACTION_SET_INGAME_PHASE_ID 
SMART_ACTION_SET_DATA 
SMART_ACTION_MOVE_FORWARD 
SMART_ACTION_SET_VISIBILITY 
SMART_ACTION_SET_ACTIVE 
SMART_ACTION_ATTACK_START 
SMART_ACTION_SUMMON_GO 
SMART_ACTION_KILL_UNIT 
SMART_ACTION_ACTIVATE_TAXI 
SMART_ACTION_WP_START 
SMART_ACTION_WP_PAUSE 
SMART_ACTION_WP_STOP 
SMART_ACTION_ADD_ITEM 
SMART_ACTION_REMOVE_ITEM 
SMART_ACTION_INSTALL_AI_TEMPLATE 
SMART_ACTION_SET_RUN 
SMART_ACTION_SET_FLY 
SMART_ACTION_SET_SWIM 
SMART_ACTION_TELEPORT 
SMART_ACTION_SET_COUNTER 
SMART_ACTION_STORE_TARGET_LIST 
SMART_ACTION_WP_RESUME 
SMART_ACTION_SET_ORIENTATION 
SMART_ACTION_CREATE_TIMED_EVENT 
SMART_ACTION_PLAYMOVIE 
SMART_ACTION_MOVE_TO_POS 
SMART_ACTION_RESPAWN_TARGET 
SMART_ACTION_EQUIP 
SMART_ACTION_CLOSE_GOSSIP 
SMART_ACTION_TRIGGER_TIMED_EVENT 
SMART_ACTION_REMOVE_TIMED_EVENT 
SMART_ACTION_ADD_AURA 
SMART_ACTION_OVERRIDE_SCRIPT_BASE_OBJECT 
SMART_ACTION_RESET_SCRIPT_BASE_OBJECT 
SMART_ACTION_CALL_SCRIPT_RESET 
SMART_ACTION_SET_RANGED_MOVEMENT 
SMART_ACTION_CALL_TIMED_ACTIONLIST 
SMART_ACTION_SET_NPC_FLAG 
SMART_ACTION_ADD_NPC_FLAG 
SMART_ACTION_REMOVE_NPC_FLAG 
SMART_ACTION_SIMPLE_TALK 
SMART_ACTION_INVOKER_CAST 
SMART_ACTION_CROSS_CAST 
SMART_ACTION_CALL_RANDOM_TIMED_ACTIONLIST 
SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST 
SMART_ACTION_RANDOM_MOVE 
SMART_ACTION_SET_UNIT_FIELD_BYTES_1 
SMART_ACTION_REMOVE_UNIT_FIELD_BYTES_1 
SMART_ACTION_INTERRUPT_SPELL 
SMART_ACTION_SEND_GO_CUSTOM_ANIM 
SMART_ACTION_SET_DYNAMIC_FLAG 
SMART_ACTION_ADD_DYNAMIC_FLAG 
SMART_ACTION_REMOVE_DYNAMIC_FLAG 
SMART_ACTION_JUMP_TO_POS 
SMART_ACTION_SEND_GOSSIP_MENU 
SMART_ACTION_GO_SET_LOOT_STATE 
SMART_ACTION_SEND_TARGET_TO_TARGET 
SMART_ACTION_SET_HOME_POS 
SMART_ACTION_SET_HEALTH_REGEN 
SMART_ACTION_SET_ROOT 
SMART_ACTION_SET_GO_FLAG 
SMART_ACTION_ADD_GO_FLAG 
SMART_ACTION_REMOVE_GO_FLAG 
SMART_ACTION_SUMMON_CREATURE_GROUP 
SMART_ACTION_SET_POWER 
SMART_ACTION_ADD_POWER 
SMART_ACTION_REMOVE_POWER 
SMART_ACTION_GAME_EVENT_STOP 
SMART_ACTION_GAME_EVENT_START 
SMART_ACTION_START_CLOSEST_WAYPOINT 
SMART_ACTION_RISE_UP 
SMART_ACTION_RANDOM_SOUND 
SMART_ACTION_END 
438 {
439  SMART_ACTION_NONE = 0, // No action
440  SMART_ACTION_TALK = 1, // groupID from creature_text, duration to wait before TEXT_OVER event is triggered, useTalkTarget (0/1) - use target as talk target
441  SMART_ACTION_SET_FACTION = 2, // FactionId (or 0 for default)
442  SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL = 3, // Creature_template entry(param1) OR ModelId (param2) (or 0 for both to demorph)
443  SMART_ACTION_SOUND = 4, // SoundId, onlySelf
444  SMART_ACTION_PLAY_EMOTE = 5, // EmoteId
445  SMART_ACTION_FAIL_QUEST = 6, // QuestID
446  SMART_ACTION_ADD_QUEST = 7, // QuestID
447  SMART_ACTION_SET_REACT_STATE = 8, // state
449  SMART_ACTION_RANDOM_EMOTE = 10, // EmoteId1, EmoteId2, EmoteId3...
450  SMART_ACTION_CAST = 11, // SpellId, CastFlags
451  SMART_ACTION_SUMMON_CREATURE = 12, // CreatureID, summonType, duration in ms, attackInvoker
452  SMART_ACTION_THREAT_SINGLE_PCT = 13, // Threat%
453  SMART_ACTION_THREAT_ALL_PCT = 14, // Threat%
455  SMART_ACTION_SET_INGAME_PHASE_GROUP = 16, // phaseGroupId, apply
456  SMART_ACTION_SET_EMOTE_STATE = 17, // emoteID
457  SMART_ACTION_SET_UNIT_FLAG = 18, // Flags (may be more than one field OR'd together), Target
458  SMART_ACTION_REMOVE_UNIT_FLAG = 19, // Flags (may be more than one field OR'd together), Target
459  SMART_ACTION_AUTO_ATTACK = 20, // AllowAttackState (0 = stop attack, anything else means continue attacking)
460  SMART_ACTION_ALLOW_COMBAT_MOVEMENT = 21, // AllowCombatMovement (0 = stop combat based movement, anything else continue attacking)
461  SMART_ACTION_SET_EVENT_PHASE = 22, // Phase
462  SMART_ACTION_INC_EVENT_PHASE = 23, // Value (may be negative to decrement phase, should not be 0)
463  SMART_ACTION_EVADE = 24, // No Params
464  SMART_ACTION_FLEE_FOR_ASSIST = 25, // With Emote
465  SMART_ACTION_CALL_GROUPEVENTHAPPENS = 26, // QuestID
466  SMART_ACTION_COMBAT_STOP = 27, //
467  SMART_ACTION_REMOVEAURASFROMSPELL = 28, // Spellid (0 removes all auras), charges (0 removes aura)
468  SMART_ACTION_FOLLOW = 29, // Distance (0 = default), Angle (0 = default), EndCreatureEntry, credit, creditType (0monsterkill, 1event)
469  SMART_ACTION_RANDOM_PHASE = 30, // PhaseId1, PhaseId2, PhaseId3...
470  SMART_ACTION_RANDOM_PHASE_RANGE = 31, // PhaseMin, PhaseMax
472  SMART_ACTION_CALL_KILLEDMONSTER = 33, // CreatureId,
473  SMART_ACTION_SET_INST_DATA = 34, // Field, Data
474  SMART_ACTION_SET_INST_DATA64 = 35, // Field,
475  SMART_ACTION_UPDATE_TEMPLATE = 36, // Entry
476  SMART_ACTION_DIE = 37, // No Params
477  SMART_ACTION_SET_IN_COMBAT_WITH_ZONE = 38, // No Params
478  SMART_ACTION_CALL_FOR_HELP = 39, // Radius, With Emote
479  SMART_ACTION_SET_SHEATH = 40, // Sheath (0-unarmed, 1-melee, 2-ranged)
480  SMART_ACTION_FORCE_DESPAWN = 41, // timer
481  SMART_ACTION_SET_INVINCIBILITY_HP_LEVEL = 42, // MinHpValue(+pct, -flat)
482  SMART_ACTION_MOUNT_TO_ENTRY_OR_MODEL = 43, // Creature_template entry(param1) OR ModelId (param2) (or 0 for both to dismount)
483  SMART_ACTION_SET_INGAME_PHASE_ID = 44, // PhaseId, apply
484  SMART_ACTION_SET_DATA = 45, // Field, Data (only creature @todo)
485  SMART_ACTION_MOVE_FORWARD = 46, // distance
486  SMART_ACTION_SET_VISIBILITY = 47, // on/off
487  SMART_ACTION_SET_ACTIVE = 48, // on/off
489  SMART_ACTION_SUMMON_GO = 50, // GameObjectID, DespawnTime in s
490  SMART_ACTION_KILL_UNIT = 51, //
491  SMART_ACTION_ACTIVATE_TAXI = 52, // TaxiID
492  SMART_ACTION_WP_START = 53, // run/walk, pathID, canRepeat, quest, despawntime, reactState
493  SMART_ACTION_WP_PAUSE = 54, // time
494  SMART_ACTION_WP_STOP = 55, // despawnTime, quest, fail?
495  SMART_ACTION_ADD_ITEM = 56, // itemID, count
496  SMART_ACTION_REMOVE_ITEM = 57, // itemID, count
497  SMART_ACTION_INSTALL_AI_TEMPLATE = 58, // AITemplateID
498  SMART_ACTION_SET_RUN = 59, // 0/1
499  SMART_ACTION_SET_FLY = 60, // 0/1
500  SMART_ACTION_SET_SWIM = 61, // 0/1
501  SMART_ACTION_TELEPORT = 62, // mapID,
502  SMART_ACTION_SET_COUNTER = 63, // id, value, reset (0/1)
503  SMART_ACTION_STORE_TARGET_LIST = 64, // varID,
504  SMART_ACTION_WP_RESUME = 65, // none
506  SMART_ACTION_CREATE_TIMED_EVENT = 67, // id, InitialMin, InitialMax, RepeatMin(only if it repeats), RepeatMax(only if it repeats), chance
507  SMART_ACTION_PLAYMOVIE = 68, // entry
508  SMART_ACTION_MOVE_TO_POS = 69, // PointId, xyz
510  SMART_ACTION_EQUIP = 71, // entry, slotmask slot1, slot2, slot3 , only slots with mask set will be sent to client, bits are 1, 2, 4, leaving mask 0 is defaulted to mask 7 (send all), slots1-3 are only used if no entry is set
511  SMART_ACTION_CLOSE_GOSSIP = 72, // none
512  SMART_ACTION_TRIGGER_TIMED_EVENT = 73, // id(>1)
513  SMART_ACTION_REMOVE_TIMED_EVENT = 74, // id(>1)
514  SMART_ACTION_ADD_AURA = 75, // spellid, targets
515  SMART_ACTION_OVERRIDE_SCRIPT_BASE_OBJECT = 76, // WARNING: CAN CRASH CORE, do not use if you dont know what you are doing
517  SMART_ACTION_CALL_SCRIPT_RESET = 78, // none
518  SMART_ACTION_SET_RANGED_MOVEMENT = 79, // Distance, angle
519  SMART_ACTION_CALL_TIMED_ACTIONLIST = 80, // ID (overwrites already running actionlist), stop after combat?(0/1), timer update type(0-OOC, 1-IC, 2-ALWAYS)
520  SMART_ACTION_SET_NPC_FLAG = 81, // Flags
521  SMART_ACTION_ADD_NPC_FLAG = 82, // Flags
522  SMART_ACTION_REMOVE_NPC_FLAG = 83, // Flags
523  SMART_ACTION_SIMPLE_TALK = 84, // groupID, can be used to make players say groupID, Text_over event is not triggered, whisper can not be used (Target units will say the text)
524  SMART_ACTION_INVOKER_CAST = 85, // spellID, castFlags, if avaliable, last used invoker will cast spellId with castFlags on targets
525  SMART_ACTION_CROSS_CAST = 86, // spellID, castFlags, CasterTargetType, CasterTarget param1, CasterTarget param2, CasterTarget param3, ( + the origonal target fields as Destination target), CasterTargets will cast spellID on all Targets (use with caution if targeting multiple * multiple units)
526  SMART_ACTION_CALL_RANDOM_TIMED_ACTIONLIST = 87, // script9 ids 1-9
527  SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST = 88, // script9 id min, max
528  SMART_ACTION_RANDOM_MOVE = 89, // maxDist
529  SMART_ACTION_SET_UNIT_FIELD_BYTES_1 = 90, // bytes, target
530  SMART_ACTION_REMOVE_UNIT_FIELD_BYTES_1 = 91, // bytes, target
532  SMART_ACTION_SEND_GO_CUSTOM_ANIM = 93, // anim id
533  SMART_ACTION_SET_DYNAMIC_FLAG = 94, // Flags
534  SMART_ACTION_ADD_DYNAMIC_FLAG = 95, // Flags
535  SMART_ACTION_REMOVE_DYNAMIC_FLAG = 96, // Flags
536  SMART_ACTION_JUMP_TO_POS = 97, // speedXY, speedZ, targetX, targetY, targetZ
537  SMART_ACTION_SEND_GOSSIP_MENU = 98, // menuId, optionId
538  SMART_ACTION_GO_SET_LOOT_STATE = 99, // state
540  SMART_ACTION_SET_HOME_POS = 101, // none
541  SMART_ACTION_SET_HEALTH_REGEN = 102, // 0/1
542  SMART_ACTION_SET_ROOT = 103, // off/on
543  SMART_ACTION_SET_GO_FLAG = 104, // Flags
544  SMART_ACTION_ADD_GO_FLAG = 105, // Flags
545  SMART_ACTION_REMOVE_GO_FLAG = 106, // Flags
546  SMART_ACTION_SUMMON_CREATURE_GROUP = 107, // Group, attackInvoker
547  SMART_ACTION_SET_POWER = 108, // PowerType, newPower
548  SMART_ACTION_ADD_POWER = 109, // PowerType, newPower
549  SMART_ACTION_REMOVE_POWER = 110, // PowerType, newPower
550  SMART_ACTION_GAME_EVENT_STOP = 111, // GameEventId
551  SMART_ACTION_GAME_EVENT_START = 112, // GameEventId
552  SMART_ACTION_START_CLOSEST_WAYPOINT = 113, // wp1, wp2, wp3, wp4, wp5, wp6, wp7
553  SMART_ACTION_RISE_UP = 114, // distance
554  SMART_ACTION_RANDOM_SOUND = 115, // soundId1, soundId2, soundId3, soundId4, soundId5, onlySelf
555 
556  SMART_ACTION_END = 116
557 };
Definition: SmartScriptMgr.h:452
Definition: SmartScriptMgr.h:532
Definition: SmartScriptMgr.h:491
Definition: SmartScriptMgr.h:445
Definition: SmartScriptMgr.h:556
Definition: SmartScriptMgr.h:543
Definition: SmartScriptMgr.h:529
Definition: SmartScriptMgr.h:495
Definition: SmartScriptMgr.h:474
Definition: SmartScriptMgr.h:451
Definition: SmartScriptMgr.h:492
Definition: SmartScriptMgr.h:496
Definition: SmartScriptMgr.h:531
Definition: SmartScriptMgr.h:503
Definition: SmartScriptMgr.h:480
Definition: SmartScriptMgr.h:461
Definition: SmartScriptMgr.h:550
Definition: SmartScriptMgr.h:548
Definition: SmartScriptMgr.h:460
Definition: SmartScriptMgr.h:498
Definition: SmartScriptMgr.h:526
Definition: SmartScriptMgr.h:485
Definition: SmartScriptMgr.h:454
Definition: SmartScriptMgr.h:439
Definition: SmartScriptMgr.h:489
Definition: SmartScriptMgr.h:518
Definition: SmartScriptMgr.h:478
Definition: SmartScriptMgr.h:525
Definition: SmartScriptMgr.h:511
Definition: SmartScriptMgr.h:515
Definition: SmartScriptMgr.h:509
Definition: SmartScriptMgr.h:479
Definition: SmartScriptMgr.h:466
Definition: SmartScriptMgr.h:494
Definition: SmartScriptMgr.h:549
Definition: SmartScriptMgr.h:551
Definition: SmartScriptMgr.h:444
Definition: SmartScriptMgr.h:440
Definition: SmartScriptMgr.h:510
Definition: SmartScriptMgr.h:441
Definition: SmartScriptMgr.h:462
Definition: SmartScriptMgr.h:534
Definition: SmartScriptMgr.h:499
Definition: SmartScriptMgr.h:453
Definition: SmartScriptMgr.h:536
Definition: SmartScriptMgr.h:475
Definition: SmartScriptMgr.h:507
Definition: SmartScriptMgr.h:472
Definition: SmartScriptMgr.h:477
Definition: SmartScriptMgr.h:442
Definition: SmartScriptMgr.h:547
Definition: SmartScriptMgr.h:450
Definition: SmartScriptMgr.h:469
Definition: SmartScriptMgr.h:522
Definition: SmartScriptMgr.h:517
Definition: SmartScriptMgr.h:521
Definition: SmartScriptMgr.h:448
Definition: SmartScriptMgr.h:458
Definition: SmartScriptMgr.h:490
Definition: SmartScriptMgr.h:533
Definition: SmartScriptMgr.h:471
Definition: SmartScriptMgr.h:502
Definition: SmartScriptMgr.h:470
Definition: SmartScriptMgr.h:505
Definition: SmartScriptMgr.h:473
Definition: SmartScriptMgr.h:530
Definition: SmartScriptMgr.h:468
Definition: SmartScriptMgr.h:446
Definition: SmartScriptMgr.h:455
Definition: SmartScriptMgr.h:527
Definition: SmartScriptMgr.h:488
Definition: SmartScriptMgr.h:457
Definition: SmartScriptMgr.h:449
Definition: SmartScriptMgr.h:524
Definition: SmartScriptMgr.h:465
Definition: SmartScriptMgr.h:537
Definition: SmartScriptMgr.h:459
Definition: SmartScriptMgr.h:519
Definition: SmartScriptMgr.h:481
Definition: SmartScriptMgr.h:476
Definition: SmartScriptMgr.h:487
Definition: SmartScriptMgr.h:516
Definition: SmartScriptMgr.h:482
Definition: SmartScriptMgr.h:544
Definition: SmartScriptMgr.h:456
Definition: SmartScriptMgr.h:523
Definition: SmartScriptMgr.h:538
Definition: SmartScriptMgr.h:506
Definition: SmartScriptMgr.h:545
Definition: SmartScriptMgr.h:514
Definition: SmartScriptMgr.h:483
Definition: SmartScriptMgr.h:520
Definition: SmartScriptMgr.h:513
Definition: SmartScriptMgr.h:554
Definition: SmartScriptMgr.h:501
Definition: SmartScriptMgr.h:443
Definition: SmartScriptMgr.h:497
Definition: SmartScriptMgr.h:493
Definition: SmartScriptMgr.h:508
Definition: SmartScriptMgr.h:542
Definition: SmartScriptMgr.h:552
Definition: SmartScriptMgr.h:464
Definition: SmartScriptMgr.h:447
Definition: SmartScriptMgr.h:512
Definition: SmartScriptMgr.h:484
Definition: SmartScriptMgr.h:467
Definition: SmartScriptMgr.h:463
Definition: SmartScriptMgr.h:528
Definition: SmartScriptMgr.h:500
Definition: SmartScriptMgr.h:504
Definition: SmartScriptMgr.h:535
Definition: SmartScriptMgr.h:546
Definition: SmartScriptMgr.h:540
Definition: SmartScriptMgr.h:486
Definition: SmartScriptMgr.h:539
Definition: SmartScriptMgr.h:553
Definition: SmartScriptMgr.h:541
Enumerator
SMART_EVENT_UPDATE_IC 
SMART_EVENT_UPDATE_OOC 
SMART_EVENT_HEALT_PCT 
SMART_EVENT_MANA_PCT 
SMART_EVENT_AGGRO 
SMART_EVENT_KILL 
SMART_EVENT_DEATH 
SMART_EVENT_EVADE 
SMART_EVENT_SPELLHIT 
SMART_EVENT_RANGE 
SMART_EVENT_OOC_LOS 
SMART_EVENT_RESPAWN 
SMART_EVENT_TARGET_HEALTH_PCT 
SMART_EVENT_VICTIM_CASTING 
SMART_EVENT_FRIENDLY_HEALTH 
SMART_EVENT_FRIENDLY_IS_CC 
SMART_EVENT_FRIENDLY_MISSING_BUFF 
SMART_EVENT_SUMMONED_UNIT 
SMART_EVENT_TARGET_MANA_PCT 
SMART_EVENT_ACCEPTED_QUEST 
SMART_EVENT_REWARD_QUEST 
SMART_EVENT_REACHED_HOME 
SMART_EVENT_RECEIVE_EMOTE 
SMART_EVENT_HAS_AURA 
SMART_EVENT_TARGET_BUFFED 
SMART_EVENT_RESET 
SMART_EVENT_IC_LOS 
SMART_EVENT_PASSENGER_BOARDED 
SMART_EVENT_PASSENGER_REMOVED 
SMART_EVENT_CHARMED 
SMART_EVENT_CHARMED_TARGET 
SMART_EVENT_SPELLHIT_TARGET 
SMART_EVENT_DAMAGED 
SMART_EVENT_DAMAGED_TARGET 
SMART_EVENT_MOVEMENTINFORM 
SMART_EVENT_SUMMON_DESPAWNED 
SMART_EVENT_CORPSE_REMOVED 
SMART_EVENT_AI_INIT 
SMART_EVENT_DATA_SET 
SMART_EVENT_WAYPOINT_START 
SMART_EVENT_WAYPOINT_REACHED 
SMART_EVENT_TRANSPORT_ADDPLAYER 
SMART_EVENT_TRANSPORT_ADDCREATURE 
SMART_EVENT_TRANSPORT_REMOVE_PLAYER 
SMART_EVENT_TRANSPORT_RELOCATE 
SMART_EVENT_INSTANCE_PLAYER_ENTER 
SMART_EVENT_AREATRIGGER_ONTRIGGER 
SMART_EVENT_QUEST_ACCEPTED 
SMART_EVENT_QUEST_OBJ_COPLETETION 
SMART_EVENT_QUEST_COMPLETION 
SMART_EVENT_QUEST_REWARDED 
SMART_EVENT_QUEST_FAIL 
SMART_EVENT_TEXT_OVER 
SMART_EVENT_RECEIVE_HEAL 
SMART_EVENT_JUST_SUMMONED 
SMART_EVENT_WAYPOINT_PAUSED 
SMART_EVENT_WAYPOINT_RESUMED 
SMART_EVENT_WAYPOINT_STOPPED 
SMART_EVENT_WAYPOINT_ENDED 
SMART_EVENT_TIMED_EVENT_TRIGGERED 
SMART_EVENT_UPDATE 
SMART_EVENT_LINK 
SMART_EVENT_GOSSIP_SELECT 
SMART_EVENT_JUST_CREATED 
SMART_EVENT_GOSSIP_HELLO 
SMART_EVENT_FOLLOW_COMPLETED 
SMART_EVENT_DUMMY_EFFECT 
SMART_EVENT_IS_BEHIND_TARGET 
SMART_EVENT_GAME_EVENT_START 
SMART_EVENT_GAME_EVENT_END 
SMART_EVENT_GO_STATE_CHANGED 
SMART_EVENT_GO_EVENT_INFORM 
SMART_EVENT_ACTION_DONE 
SMART_EVENT_ON_SPELLCLICK 
SMART_EVENT_FRIENDLY_HEALTH_PCT 
SMART_EVENT_DISTANCE_CREATURE 
SMART_EVENT_DISTANCE_GAMEOBJECT 
SMART_EVENT_COUNTER_SET 
SMART_EVENT_END 
103 {
104  SMART_EVENT_UPDATE_IC = 0, // InitialMin, InitialMax, RepeatMin, RepeatMax
105  SMART_EVENT_UPDATE_OOC = 1, // InitialMin, InitialMax, RepeatMin, RepeatMax
106  SMART_EVENT_HEALT_PCT = 2, // HPMin%, HPMax%, RepeatMin, RepeatMax
107  SMART_EVENT_MANA_PCT = 3, // ManaMin%, ManaMax%, RepeatMin, RepeatMax
108  SMART_EVENT_AGGRO = 4, // NONE
109  SMART_EVENT_KILL = 5, // CooldownMin0, CooldownMax1, playerOnly2, else creature entry3
110  SMART_EVENT_DEATH = 6, // NONE
111  SMART_EVENT_EVADE = 7, // NONE
112  SMART_EVENT_SPELLHIT = 8, // SpellID, School, CooldownMin, CooldownMax
113  SMART_EVENT_RANGE = 9, // MinDist, MaxDist, RepeatMin, RepeatMax
114  SMART_EVENT_OOC_LOS = 10, // NoHostile, MaxRnage, CooldownMin, CooldownMax
115  SMART_EVENT_RESPAWN = 11, // type, MapId, ZoneId
116  SMART_EVENT_TARGET_HEALTH_PCT = 12, // HPMin%, HPMax%, RepeatMin, RepeatMax
117  SMART_EVENT_VICTIM_CASTING = 13, // RepeatMin, RepeatMax, spellid
118  SMART_EVENT_FRIENDLY_HEALTH = 14, // HPDeficit, Radius, RepeatMin, RepeatMax
119  SMART_EVENT_FRIENDLY_IS_CC = 15, // Radius, RepeatMin, RepeatMax
120  SMART_EVENT_FRIENDLY_MISSING_BUFF = 16, // SpellId, Radius, RepeatMin, RepeatMax
121  SMART_EVENT_SUMMONED_UNIT = 17, // CreatureId(0 all), CooldownMin, CooldownMax
122  SMART_EVENT_TARGET_MANA_PCT = 18, // ManaMin%, ManaMax%, RepeatMin, RepeatMax
123  SMART_EVENT_ACCEPTED_QUEST = 19, // QuestID(0any)
124  SMART_EVENT_REWARD_QUEST = 20, // QuestID(0any)
125  SMART_EVENT_REACHED_HOME = 21, // NONE
126  SMART_EVENT_RECEIVE_EMOTE = 22, // EmoteId, CooldownMin, CooldownMax, condition, val1, val2, val3
127  SMART_EVENT_HAS_AURA = 23, // Param1 = SpellID, Param2 = Stack amount, Param3/4 RepeatMin, RepeatMax
128  SMART_EVENT_TARGET_BUFFED = 24, // Param1 = SpellID, Param2 = Stack amount, Param3/4 RepeatMin, RepeatMax
129  SMART_EVENT_RESET = 25, // Called after combat, when the creature respawn and spawn.
130  SMART_EVENT_IC_LOS = 26, // NoHostile, MaxRnage, CooldownMin, CooldownMax
131  SMART_EVENT_PASSENGER_BOARDED = 27, // CooldownMin, CooldownMax
132  SMART_EVENT_PASSENGER_REMOVED = 28, // CooldownMin, CooldownMax
133  SMART_EVENT_CHARMED = 29, // NONE
134  SMART_EVENT_CHARMED_TARGET = 30, // NONE
135  SMART_EVENT_SPELLHIT_TARGET = 31, // SpellID, School, CooldownMin, CooldownMax
136  SMART_EVENT_DAMAGED = 32, // MinDmg, MaxDmg, CooldownMin, CooldownMax
137  SMART_EVENT_DAMAGED_TARGET = 33, // MinDmg, MaxDmg, CooldownMin, CooldownMax
138  SMART_EVENT_MOVEMENTINFORM = 34, // MovementType(any), PointID
139  SMART_EVENT_SUMMON_DESPAWNED = 35, // Entry, CooldownMin, CooldownMax
140  SMART_EVENT_CORPSE_REMOVED = 36, // NONE
141  SMART_EVENT_AI_INIT = 37, // NONE
142  SMART_EVENT_DATA_SET = 38, // Id, Value, CooldownMin, CooldownMax
143  SMART_EVENT_WAYPOINT_START = 39, // PointId(0any), pathID(0any)
144  SMART_EVENT_WAYPOINT_REACHED = 40, // PointId(0any), pathID(0any)
145  SMART_EVENT_TRANSPORT_ADDPLAYER = 41, // NONE
146  SMART_EVENT_TRANSPORT_ADDCREATURE = 42, // Entry (0 any)
148  SMART_EVENT_TRANSPORT_RELOCATE = 44, // PointId
149  SMART_EVENT_INSTANCE_PLAYER_ENTER = 45, // Team (0 any), CooldownMin, CooldownMax
150  SMART_EVENT_AREATRIGGER_ONTRIGGER = 46, // TriggerId(0 any)
151  SMART_EVENT_QUEST_ACCEPTED = 47, // none
153  SMART_EVENT_QUEST_COMPLETION = 49, // none
154  SMART_EVENT_QUEST_REWARDED = 50, // none
155  SMART_EVENT_QUEST_FAIL = 51, // none
156  SMART_EVENT_TEXT_OVER = 52, // GroupId from creature_text, creature entry who talks (0 any)
157  SMART_EVENT_RECEIVE_HEAL = 53, // MinHeal, MaxHeal, CooldownMin, CooldownMax
158  SMART_EVENT_JUST_SUMMONED = 54, // none
159  SMART_EVENT_WAYPOINT_PAUSED = 55, // PointId(0any), pathID(0any)
160  SMART_EVENT_WAYPOINT_RESUMED = 56, // PointId(0any), pathID(0any)
161  SMART_EVENT_WAYPOINT_STOPPED = 57, // PointId(0any), pathID(0any)
162  SMART_EVENT_WAYPOINT_ENDED = 58, // PointId(0any), pathID(0any)
164  SMART_EVENT_UPDATE = 60, // InitialMin, InitialMax, RepeatMin, RepeatMax
165  SMART_EVENT_LINK = 61, // INTERNAL USAGE, no params, used to link together multiple events, does not use any extra resources to iterate event lists needlessly
166  SMART_EVENT_GOSSIP_SELECT = 62, // menuID, actionID
167  SMART_EVENT_JUST_CREATED = 63, // none
168  SMART_EVENT_GOSSIP_HELLO = 64, // none
169  SMART_EVENT_FOLLOW_COMPLETED = 65, // none
170  SMART_EVENT_DUMMY_EFFECT = 66, // spellId, effectIndex
171  SMART_EVENT_IS_BEHIND_TARGET = 67, // cooldownMin, CooldownMax
172  SMART_EVENT_GAME_EVENT_START = 68, // game_event.Entry
173  SMART_EVENT_GAME_EVENT_END = 69, // game_event.Entry
174  SMART_EVENT_GO_STATE_CHANGED = 70, // go state
175  SMART_EVENT_GO_EVENT_INFORM = 71, // eventId
176  SMART_EVENT_ACTION_DONE = 72, // eventId (SharedDefines.EventId)
177  SMART_EVENT_ON_SPELLCLICK = 73, // clicker (unit)
178  SMART_EVENT_FRIENDLY_HEALTH_PCT = 74, // minHpPct, maxHpPct, repeatMin, repeatMax
179  SMART_EVENT_DISTANCE_CREATURE = 75, // guid, entry, distance, repeat
180  SMART_EVENT_DISTANCE_GAMEOBJECT = 76, // guid, entry, distance, repeat
181  SMART_EVENT_COUNTER_SET = 77, // id, value, cooldownMin, cooldownMax
182 
183  SMART_EVENT_END = 78
184 };
Definition: SmartScriptMgr.h:106
Definition: SmartScriptMgr.h:175
Definition: SmartScriptMgr.h:125
Definition: SmartScriptMgr.h:109
Definition: SmartScriptMgr.h:174
Definition: SmartScriptMgr.h:161
Definition: SmartScriptMgr.h:152
Definition: SmartScriptMgr.h:118
Definition: SmartScriptMgr.h:178
Definition: SmartScriptMgr.h:179
Definition: SmartScriptMgr.h:166
Definition: SmartScriptMgr.h:173
Definition: SmartScriptMgr.h:115
Definition: SmartScriptMgr.h:151
Definition: SmartScriptMgr.h:122
Definition: SmartScriptMgr.h:112
Definition: SmartScriptMgr.h:143
Definition: SmartScriptMgr.h:181
Definition: SmartScriptMgr.h:135
Definition: SmartScriptMgr.h:123
Definition: SmartScriptMgr.h:140
Definition: SmartScriptMgr.h:108
Definition: SmartScriptMgr.h:137
Definition: SmartScriptMgr.h:131
Definition: SmartScriptMgr.h:124
Definition: SmartScriptMgr.h:180
Definition: SmartScriptMgr.h:141
Definition: SmartScriptMgr.h:145
Definition: SmartScriptMgr.h:150
Definition: SmartScriptMgr.h:176
Definition: SmartScriptMgr.h:163
Definition: SmartScriptMgr.h:138
Definition: SmartScriptMgr.h:160
Definition: SmartScriptMgr.h:177
Definition: SmartScriptMgr.h:170
Definition: SmartScriptMgr.h:116
Definition: SmartScriptMgr.h:114
Definition: SmartScriptMgr.h:130
Definition: SmartScriptMgr.h:171
Definition: SmartScriptMgr.h:111
Definition: SmartScriptMgr.h:169
Definition: SmartScriptMgr.h:120
Definition: SmartScriptMgr.h:127
Definition: SmartScriptMgr.h:121
Definition: SmartScriptMgr.h:148
Definition: SmartScriptMgr.h:154
Definition: SmartScriptMgr.h:158
Definition: SmartScriptMgr.h:142
Definition: SmartScriptMgr.h:172
Definition: SmartScriptMgr.h:110
Definition: SmartScriptMgr.h:128
Definition: SmartScriptMgr.h:167
Definition: SmartScriptMgr.h:162
Definition: SmartScriptMgr.h:149
Definition: SmartScriptMgr.h:107
Definition: SmartScriptMgr.h:157
Definition: SmartScriptMgr.h:113
Definition: SmartScriptMgr.h:153
Definition: SmartScriptMgr.h:139
Definition: SmartScriptMgr.h:164
Definition: SmartScriptMgr.h:165
Definition: SmartScriptMgr.h:105
Definition: SmartScriptMgr.h:168
Definition: SmartScriptMgr.h:146
Definition: SmartScriptMgr.h:134
Definition: SmartScriptMgr.h:136
Definition: SmartScriptMgr.h:119
Definition: SmartScriptMgr.h:117
Definition: SmartScriptMgr.h:132
Definition: SmartScriptMgr.h:104
Definition: SmartScriptMgr.h:147
Definition: SmartScriptMgr.h:133
Definition: SmartScriptMgr.h:159
Definition: SmartScriptMgr.h:129
Definition: SmartScriptMgr.h:155
Definition: SmartScriptMgr.h:126
Definition: SmartScriptMgr.h:144
Definition: SmartScriptMgr.h:183
Definition: SmartScriptMgr.h:156
Enumerator
SMART_EVENT_PHASE_ALWAYS 
SMART_EVENT_PHASE_1 
SMART_EVENT_PHASE_2 
SMART_EVENT_PHASE_3 
SMART_EVENT_PHASE_4 
SMART_EVENT_PHASE_5 
SMART_EVENT_PHASE_6 
SMART_EVENT_PHASE_7 
SMART_EVENT_PHASE_8 
SMART_EVENT_PHASE_9 
SMART_EVENT_PHASE_MAX 
SMART_EVENT_PHASE_COUNT 
58 {
70 
72 };
Definition: SmartScriptMgr.h:68
Definition: SmartScriptMgr.h:62
Definition: SmartScriptMgr.h:65
Definition: SmartScriptMgr.h:66
Definition: SmartScriptMgr.h:60
Definition: SmartScriptMgr.h:63
Definition: SmartScriptMgr.h:64
Definition: SmartScriptMgr.h:71
Definition: SmartScriptMgr.h:67
Definition: SmartScriptMgr.h:69
Definition: SmartScriptMgr.h:59
Definition: SmartScriptMgr.h:61
Enumerator
SMART_EVENT_PHASE_ALWAYS_BIT 
SMART_EVENT_PHASE_1_BIT 
SMART_EVENT_PHASE_2_BIT 
SMART_EVENT_PHASE_3_BIT 
SMART_EVENT_PHASE_4_BIT 
SMART_EVENT_PHASE_5_BIT 
SMART_EVENT_PHASE_6_BIT 
SMART_EVENT_PHASE_7_BIT 
SMART_EVENT_PHASE_8_BIT 
SMART_EVENT_PHASE_9_BIT 
SMART_EVENT_PHASE_ALL 
75 {
87 };
Definition: SmartScriptMgr.h:81
Definition: SmartScriptMgr.h:76
Definition: SmartScriptMgr.h:78
Definition: SmartScriptMgr.h:82
Definition: SmartScriptMgr.h:79
Definition: SmartScriptMgr.h:86
Definition: SmartScriptMgr.h:80
Definition: SmartScriptMgr.h:85
Definition: SmartScriptMgr.h:83
Definition: SmartScriptMgr.h:84
Definition: SmartScriptMgr.h:77
Enumerator
SMART_SCRIPT_RESPAWN_CONDITION_NONE 
SMART_SCRIPT_RESPAWN_CONDITION_MAP 
SMART_SCRIPT_RESPAWN_CONDITION_AREA 
SMART_SCRIPT_RESPAWN_CONDITION_END 
430 {
435 };
Definition: SmartScriptMgr.h:432
Definition: SmartScriptMgr.h:434
Definition: SmartScriptMgr.h:431
Definition: SmartScriptMgr.h:433
Enumerator
SMART_TARGET_NONE 
SMART_TARGET_SELF 
SMART_TARGET_VICTIM 
SMART_TARGET_HOSTILE_SECOND_AGGRO 
SMART_TARGET_HOSTILE_LAST_AGGRO 
SMART_TARGET_HOSTILE_RANDOM 
SMART_TARGET_HOSTILE_RANDOM_NOT_TOP 
SMART_TARGET_ACTION_INVOKER 
SMART_TARGET_POSITION 
SMART_TARGET_CREATURE_RANGE 
SMART_TARGET_CREATURE_GUID 
SMART_TARGET_CREATURE_DISTANCE 
SMART_TARGET_STORED 
SMART_TARGET_GAMEOBJECT_RANGE 
SMART_TARGET_GAMEOBJECT_GUID 
SMART_TARGET_GAMEOBJECT_DISTANCE 
SMART_TARGET_INVOKER_PARTY 
SMART_TARGET_PLAYER_RANGE 
SMART_TARGET_PLAYER_DISTANCE 
SMART_TARGET_CLOSEST_CREATURE 
SMART_TARGET_CLOSEST_GAMEOBJECT 
SMART_TARGET_CLOSEST_PLAYER 
SMART_TARGET_ACTION_INVOKER_VEHICLE 
SMART_TARGET_OWNER_OR_SUMMONER 
SMART_TARGET_THREAT_LIST 
SMART_TARGET_CLOSEST_ENEMY 
SMART_TARGET_CLOSEST_FRIENDLY 
SMART_TARGET_END 
1072 {
1073  SMART_TARGET_NONE = 0, // NONE, defaulting to invoket
1074  SMART_TARGET_SELF = 1, // Self cast
1075  SMART_TARGET_VICTIM = 2, // Our current target (ie: highest aggro)
1076  SMART_TARGET_HOSTILE_SECOND_AGGRO = 3, // Second highest aggro
1077  SMART_TARGET_HOSTILE_LAST_AGGRO = 4, // Dead last on aggro
1078  SMART_TARGET_HOSTILE_RANDOM = 5, // Just any random target on our threat list
1079  SMART_TARGET_HOSTILE_RANDOM_NOT_TOP = 6, // Any random target except top threat
1080  SMART_TARGET_ACTION_INVOKER = 7, // Unit who caused this Event to occur
1081  SMART_TARGET_POSITION = 8, // use xyz from event params
1082  SMART_TARGET_CREATURE_RANGE = 9, // CreatureEntry(0any), minDist, maxDist
1083  SMART_TARGET_CREATURE_GUID = 10, // guid, entry
1084  SMART_TARGET_CREATURE_DISTANCE = 11, // CreatureEntry(0any), maxDist
1085  SMART_TARGET_STORED = 12, // id, uses pre-stored target(list)
1086  SMART_TARGET_GAMEOBJECT_RANGE = 13, // entry(0any), min, max
1087  SMART_TARGET_GAMEOBJECT_GUID = 14, // guid, entry
1088  SMART_TARGET_GAMEOBJECT_DISTANCE = 15, // entry(0any), maxDist
1089  SMART_TARGET_INVOKER_PARTY = 16, // invoker's party members
1090  SMART_TARGET_PLAYER_RANGE = 17, // min, max
1091  SMART_TARGET_PLAYER_DISTANCE = 18, // maxDist
1092  SMART_TARGET_CLOSEST_CREATURE = 19, // CreatureEntry(0any), maxDist, dead?
1093  SMART_TARGET_CLOSEST_GAMEOBJECT = 20, // entry(0any), maxDist
1094  SMART_TARGET_CLOSEST_PLAYER = 21, // maxDist
1095  SMART_TARGET_ACTION_INVOKER_VEHICLE = 22, // Unit's vehicle who caused this Event to occur
1096  SMART_TARGET_OWNER_OR_SUMMONER = 23, // Unit's owner or summoner
1097  SMART_TARGET_THREAT_LIST = 24, // All units on creature's threat list
1098  SMART_TARGET_CLOSEST_ENEMY = 25, // maxDist, playerOnly
1099  SMART_TARGET_CLOSEST_FRIENDLY = 26, // maxDist, playerOnly
1100 
1101  SMART_TARGET_END = 27
1102 };
Definition: SmartScriptMgr.h:1086
Definition: SmartScriptMgr.h:1099
Definition: SmartScriptMgr.h:1081
Definition: SmartScriptMgr.h:1085
Definition: SmartScriptMgr.h:1098
Definition: SmartScriptMgr.h:1082
Definition: SmartScriptMgr.h:1084
Definition: SmartScriptMgr.h:1079
Definition: SmartScriptMgr.h:1095
Definition: SmartScriptMgr.h:1078
Definition: SmartScriptMgr.h:1096
Definition: SmartScriptMgr.h:1074
Definition: SmartScriptMgr.h:1087
Definition: SmartScriptMgr.h:1080
Definition: SmartScriptMgr.h:1089
Definition: SmartScriptMgr.h:1088
Definition: SmartScriptMgr.h:1101
Definition: SmartScriptMgr.h:1091
Definition: SmartScriptMgr.h:1093
Definition: SmartScriptMgr.h:1097
Definition: SmartScriptMgr.h:1073
Definition: SmartScriptMgr.h:1094
Definition: SmartScriptMgr.h:1090
Definition: SmartScriptMgr.h:1092
Definition: SmartScriptMgr.h:1075
Definition: SmartScriptMgr.h:1083
Definition: SmartScriptMgr.h:1076
Definition: SmartScriptMgr.h:1077
Enumerator
SMARTAI_TEMPLATE_BASIC 
SMARTAI_TEMPLATE_CASTER 
SMARTAI_TEMPLATE_TURRET 
SMARTAI_TEMPLATE_PASSIVE 
SMARTAI_TEMPLATE_CAGED_GO_PART 
SMARTAI_TEMPLATE_CAGED_NPC_PART 
SMARTAI_TEMPLATE_END 
1061 {
1062  SMARTAI_TEMPLATE_BASIC = 0, //nothing is preset
1063  SMARTAI_TEMPLATE_CASTER = 1, //spellid, repeatMin, repeatMax, range, manaPCT +JOIN: target_param1 as castFlag
1064  SMARTAI_TEMPLATE_TURRET = 2, //spellid, repeatMin, repeatMax +JOIN: target_param1 as castFlag
1066  SMARTAI_TEMPLATE_CAGED_GO_PART = 4, //creatureID, give credit at point end?,
1067  SMARTAI_TEMPLATE_CAGED_NPC_PART = 5, //gameObjectID, despawntime, run?, dist, TextGroupID
1069 };
Definition: SmartScriptMgr.h:1066
Definition: SmartScriptMgr.h:1062
Definition: SmartScriptMgr.h:1065
Definition: SmartScriptMgr.h:1064
Definition: SmartScriptMgr.h:1067
Definition: SmartScriptMgr.h:1063
Definition: SmartScriptMgr.h:1068
Enumerator
SMART_SCRIPT_TYPE_MASK_CREATURE 
SMART_SCRIPT_TYPE_MASK_GAMEOBJECT 
SMART_SCRIPT_TYPE_MASK_AREATRIGGER 
SMART_SCRIPT_TYPE_MASK_EVENT 
SMART_SCRIPT_TYPE_MASK_GOSSIP 
SMART_SCRIPT_TYPE_MASK_QUEST 
SMART_SCRIPT_TYPE_MASK_SPELL 
SMART_SCRIPT_TYPE_MASK_TRANSPORT 
SMART_SCRIPT_TYPE_MASK_INSTANCE 
SMART_SCRIPT_TYPE_MASK_TIMED_ACTIONLIST 
1224 {
1235 };
Definition: SmartScriptMgr.h:1229
Definition: SmartScriptMgr.h:1228
Definition: SmartScriptMgr.h:1230
Definition: SmartScriptMgr.h:1225
Definition: SmartScriptMgr.h:1233
Definition: SmartScriptMgr.h:1232
Definition: SmartScriptMgr.h:1231
Definition: SmartScriptMgr.h:1234
Definition: SmartScriptMgr.h:1226
Definition: SmartScriptMgr.h:1227
Enumerator
SMARTCAST_INTERRUPT_PREVIOUS 
SMARTCAST_TRIGGERED 
SMARTCAST_AURA_NOT_PRESENT 
SMARTCAST_COMBAT_MOVE 
1350 {
1351  SMARTCAST_INTERRUPT_PREVIOUS = 0x01, //Interrupt any spell casting
1352  SMARTCAST_TRIGGERED = 0x02, //Triggered (this makes spell cost zero mana and have no cast time)
1353  //SMARTCAST_FORCE_CAST = 0x04, //Forces cast even if creature is out of mana or out of range
1354  //SMARTCAST_NO_MELEE_IF_OOM = 0x08, //Prevents creature from entering melee if out of mana or out of range
1355  //SMARTCAST_FORCE_TARGET_SELF = 0x10, //Forces the target to cast this spell on itself
1356  SMARTCAST_AURA_NOT_PRESENT = 0x20, //Only casts the spell if the target does not have an aura from the spell
1357  SMARTCAST_COMBAT_MOVE = 0x40 //Prevents combat movement if cast successful. Allows movement on range, OOM, LOS
1358 };
Definition: SmartScriptMgr.h:1352
Definition: SmartScriptMgr.h:1357
Definition: SmartScriptMgr.h:1356
Definition: SmartScriptMgr.h:1351
Enumerator
SMART_EVENT_FLAG_NOT_REPEATABLE 
SMART_EVENT_FLAG_DIFFICULTY_0 
SMART_EVENT_FLAG_DIFFICULTY_1 
SMART_EVENT_FLAG_DIFFICULTY_2 
SMART_EVENT_FLAG_DIFFICULTY_3 
SMART_EVENT_FLAG_RESERVED_5 
SMART_EVENT_FLAG_RESERVED_6 
SMART_EVENT_FLAG_DEBUG_ONLY 
SMART_EVENT_FLAG_DONT_RESET 
SMART_EVENT_FLAG_DIFFICULTY_ALL 
SMART_EVENT_FLAGS_ALL 
1334 {
1335  SMART_EVENT_FLAG_NOT_REPEATABLE = 0x001, //Event can not repeat
1336  SMART_EVENT_FLAG_DIFFICULTY_0 = 0x002, //Event only occurs in instance difficulty 0
1337  SMART_EVENT_FLAG_DIFFICULTY_1 = 0x004, //Event only occurs in instance difficulty 1
1338  SMART_EVENT_FLAG_DIFFICULTY_2 = 0x008, //Event only occurs in instance difficulty 2
1339  SMART_EVENT_FLAG_DIFFICULTY_3 = 0x010, //Event only occurs in instance difficulty 3
1342  SMART_EVENT_FLAG_DEBUG_ONLY = 0x080, //Event only occurs in debug build
1343  SMART_EVENT_FLAG_DONT_RESET = 0x100, //Event will not reset in SmartScript::OnReset()
1344 
1347 };
Definition: SmartScriptMgr.h:1337
Definition: SmartScriptMgr.h:1343
Definition: SmartScriptMgr.h:1335
Definition: SmartScriptMgr.h:1341
Definition: SmartScriptMgr.h:1345
Definition: SmartScriptMgr.h:1336
Definition: SmartScriptMgr.h:1340
Definition: SmartScriptMgr.h:1342
Definition: SmartScriptMgr.h:1338
Definition: SmartScriptMgr.h:1339
Definition: SmartScriptMgr.h:1346
Enumerator
SMART_SCRIPT_TYPE_CREATURE 
SMART_SCRIPT_TYPE_GAMEOBJECT 
SMART_SCRIPT_TYPE_AREATRIGGER 
SMART_SCRIPT_TYPE_EVENT 
SMART_SCRIPT_TYPE_GOSSIP 
SMART_SCRIPT_TYPE_QUEST 
SMART_SCRIPT_TYPE_SPELL 
SMART_SCRIPT_TYPE_TRANSPORT 
SMART_SCRIPT_TYPE_INSTANCE 
SMART_SCRIPT_TYPE_TIMED_ACTIONLIST 
SMART_SCRIPT_TYPE_MAX 
1209 {
1210  SMART_SCRIPT_TYPE_CREATURE = 0, //done
1211  SMART_SCRIPT_TYPE_GAMEOBJECT = 1, //done
1212  SMART_SCRIPT_TYPE_AREATRIGGER = 2, //done
1213  SMART_SCRIPT_TYPE_EVENT = 3, //
1214  SMART_SCRIPT_TYPE_GOSSIP = 4, //
1215  SMART_SCRIPT_TYPE_QUEST = 5, //
1216  SMART_SCRIPT_TYPE_SPELL = 6, //
1221 };
Definition: SmartScriptMgr.h:1214
Definition: SmartScriptMgr.h:1217
Definition: SmartScriptMgr.h:1212
Definition: SmartScriptMgr.h:1216
Definition: SmartScriptMgr.h:1213
Definition: SmartScriptMgr.h:1219
Definition: SmartScriptMgr.h:1210
Definition: SmartScriptMgr.h:1215
Definition: SmartScriptMgr.h:1220
Definition: SmartScriptMgr.h:1218
Definition: SmartScriptMgr.h:1211

Variable Documentation

const uint32 SmartAIEventMask[SMART_EVENT_END][2]
const uint32 SmartAITypeMask[SMART_SCRIPT_TYPE_MAX][2]
Initial value:
=
{
}
Definition: SmartScriptMgr.h:1229
Definition: SmartScriptMgr.h:1228
Definition: SmartScriptMgr.h:1214
Definition: SmartScriptMgr.h:1217
Definition: SmartScriptMgr.h:1230
Definition: SmartScriptMgr.h:1212
Definition: SmartScriptMgr.h:1225
Definition: SmartScriptMgr.h:1233
Definition: SmartScriptMgr.h:1216
Definition: SmartScriptMgr.h:1213
Definition: SmartScriptMgr.h:1232
Definition: SmartScriptMgr.h:1219
Definition: SmartScriptMgr.h:1210
Definition: SmartScriptMgr.h:1231
Definition: SmartScriptMgr.h:1215
Definition: SmartScriptMgr.h:1218
Definition: SmartScriptMgr.h:1211
Definition: SmartScriptMgr.h:1234
Definition: SmartScriptMgr.h:1226
Definition: SmartScriptMgr.h:1227
const uint32 SmartPhaseMask[SMART_EVENT_PHASE_COUNT][2]
Initial value:
=
{
}
Definition: SmartScriptMgr.h:81
Definition: SmartScriptMgr.h:68
Definition: SmartScriptMgr.h:62
Definition: SmartScriptMgr.h:65
Definition: SmartScriptMgr.h:66
Definition: SmartScriptMgr.h:78
Definition: SmartScriptMgr.h:60
Definition: SmartScriptMgr.h:63
Definition: SmartScriptMgr.h:82
Definition: SmartScriptMgr.h:64
Definition: SmartScriptMgr.h:79
Definition: SmartScriptMgr.h:67
Definition: SmartScriptMgr.h:80
Definition: SmartScriptMgr.h:85
Definition: SmartScriptMgr.h:83
Definition: SmartScriptMgr.h:84
Definition: SmartScriptMgr.h:77
Definition: SmartScriptMgr.h:61