Advertisement
k0s02

Untitled

Oct 30th, 2019
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.76 KB | None | 0 0
  1. SMART_ACTION_NONE = 0, // No action
  2. 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
  3. SMART_ACTION_SET_FACTION = 2, // FactionId (or 0 for default)
  4. SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL = 3, // Creature_template entry(param1) OR ModelId (param2) (or 0 for both to demorph)
  5. SMART_ACTION_SOUND = 4, // oundId, onlySelf
  6. SMART_ACTION_PLAY_EMOTE = 5, // EmoteId
  7. SMART_ACTION_FAIL_QUEST = 6, // QuestID
  8. SMART_ACTION_ADD_QUEST = 7, // QuestID
  9. SMART_ACTION_SET_REACT_STATE = 8, // state
  10. SMART_ACTION_ACTIVATE_GOBJECT = 9, //
  11. SMART_ACTION_RANDOM_EMOTE = 10, // EmoteId1, EmoteId2, EmoteId3...
  12. SMART_ACTION_CAST = 11, // SpellId, CastFlags, targetType (This param need for cone spells, put delay in milliseconds, basically, it should be equal cast time + 500-1000ms))
  13. SMART_ACTION_SUMMON_CREATURE = 12, // CreatureID, summonType, duration in ms, storageID, attackInvoker, personalVisible
  14. SMART_ACTION_THREAT_SINGLE_PCT = 13, // Threat%
  15. SMART_ACTION_THREAT_ALL_PCT = 14, // Threat%
  16. SMART_ACTION_CALL_AREAEXPLOREDOREVENTHAPPENS = 15, // QuestID
  17. SMART_ACTION_SEND_CASTCREATUREORGO = 16, // QuestID, SpellId
  18. SMART_ACTION_SET_EMOTE_STATE = 17, // emoteID
  19. SMART_ACTION_SET_UNIT_FLAG = 18, // Flags (may be more than one field OR'd together), Target
  20. SMART_ACTION_REMOVE_UNIT_FLAG = 19, // Flags (may be more than one field OR'd together), Target
  21. SMART_ACTION_AUTO_ATTACK = 20, // AllowAttackState (0 = stop attack, anything else means continue attacking)
  22. SMART_ACTION_ALLOW_COMBAT_MOVEMENT = 21, // AllowCombatMovement (0 = stop combat based movement, anything else continue attacking)
  23. SMART_ACTION_SET_EVENT_PHASE = 22, // Phase
  24. SMART_ACTION_INC_EVENT_PHASE = 23, // Value (may be negative to decrement phase, should not be 0)
  25. SMART_ACTION_EVADE = 24, // No Params
  26. SMART_ACTION_FLEE_FOR_ASSIST = 25, // With Emote
  27. SMART_ACTION_CALL_GROUPEVENTHAPPENS = 26, // QuestID
  28. SMART_ACTION_CALL_CASTEDCREATUREORGO = 27, // CreatureId, SpellId
  29. SMART_ACTION_REMOVEAURASFROMSPELL = 28, // Spellid, 0 removes all auras
  30. SMART_ACTION_FOLLOW = 29, // Distance (0 = default), Angle (0 = default), EndCreatureEntry, credit, creditType (0monsterkill, 1event)
  31. SMART_ACTION_RANDOM_PHASE = 30, // PhaseId1, PhaseId2, PhaseId3...
  32. SMART_ACTION_RANDOM_PHASE_RANGE = 31, // PhaseMin, PhaseMax
  33. SMART_ACTION_RESET_GOBJECT = 32, //
  34. SMART_ACTION_CALL_KILLEDMONSTER = 33, // CreatureId,
  35. SMART_ACTION_SET_INST_DATA = 34, // Field, Data
  36. SMART_ACTION_SET_INST_DATA64 = 35, // Field,
  37. SMART_ACTION_UPDATE_TEMPLATE = 36, // Entry, Team
  38. SMART_ACTION_DIE = 37, // No Params
  39. SMART_ACTION_SET_IN_COMBAT_WITH_ZONE = 38, // No Params
  40. SMART_ACTION_CALL_FOR_HELP = 39, // Radius
  41. SMART_ACTION_SET_SHEATH = 40, // Sheath (0-unarmed, 1-melee, 2-ranged)
  42. SMART_ACTION_FORCE_DESPAWN = 41, // timer
  43. SMART_ACTION_SET_INVINCIBILITY_HP_LEVEL = 42, // MinHpValue(+pct, -flat)
  44. SMART_ACTION_MOUNT_TO_ENTRY_OR_MODEL = 43, // Creature_template entry(param1) OR ModelId (param2) (or 0 for both to dismount)
  45. SMART_ACTION_SET_INGAME_PHASE_MASK = 44, // mask
  46. SMART_ACTION_SET_DATA = 45, // Field, Data (only creature TODO)
  47. SMART_ACTION_SET_VISIBILITY = 47, // on/off
  48. SMART_ACTION_SET_ACTIVE = 48, // on/off
  49. SMART_ACTION_ATTACK_START = 49, //
  50. SMART_ACTION_SUMMON_GO = 50, // GameObjectID, DespawnTime in ms, personalVisible
  51. SMART_ACTION_KILL_UNIT = 51, //
  52. SMART_ACTION_ACTIVATE_TAXI = 52, // TaxiID
  53. SMART_ACTION_WP_START = 53, // run/walk, pathID, canRepeat, quest, despawntime, reactState
  54. SMART_ACTION_WP_PAUSE = 54, // time
  55. SMART_ACTION_WP_STOP = 55, // despawnTime, quest, fail?
  56. SMART_ACTION_ADD_ITEM = 56, // itemID, count
  57. SMART_ACTION_REMOVE_ITEM = 57, // itemID, count
  58. SMART_ACTION_INSTALL_AI_TEMPLATE = 58, // AITemplateID
  59. SMART_ACTION_SET_RUN = 59, // 0/1
  60. SMART_ACTION_SET_FLY = 60, // 0/1
  61. SMART_ACTION_SET_SWIM = 61, // 0/1
  62. SMART_ACTION_TELEPORT = 62, // mapID,
  63. SMART_ACTION_STORE_VARIABLE_DECIMAL = 63, // varID, number
  64. SMART_ACTION_STORE_TARGET_LIST = 64, // varID,
  65. SMART_ACTION_WP_RESUME = 65, // none
  66. SMART_ACTION_SET_ORIENTATION = 66, //
  67. SMART_ACTION_CREATE_TIMED_EVENT = 67, // id, InitialMin, InitialMax, RepeatMin(only if it repeats), RepeatMax(only if it repeats), chance
  68. SMART_ACTION_PLAYMOVIE = 68, // entry
  69. SMART_ACTION_MOVE_TO_POS = 69, // PointId, transport, disablePathfinding
  70. SMART_ACTION_RESPAWN_TARGET = 70, //
  71. 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
  72. SMART_ACTION_CLOSE_GOSSIP = 72, // none
  73. SMART_ACTION_TRIGGER_TIMED_EVENT = 73, // id(>1)
  74. SMART_ACTION_REMOVE_TIMED_EVENT = 74, // id(>1)
  75. SMART_ACTION_ADD_AURA = 75, // spellid, stackamount
  76. SMART_ACTION_OVERRIDE_SCRIPT_BASE_OBJECT = 76, // WARNING: CAN CRASH CORE, do not use if you dont know what you are doing
  77. SMART_ACTION_RESET_SCRIPT_BASE_OBJECT = 77, // none
  78. SMART_ACTION_CALL_SCRIPT_RESET = 78, // none
  79. SMART_ACTION_SET_RANGED_MOVEMENT = 79, // Distance, angle
  80. 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)
  81. SMART_ACTION_SET_NPC_FLAG = 81, // Flags
  82. SMART_ACTION_ADD_NPC_FLAG = 82, // Flags
  83. SMART_ACTION_REMOVE_NPC_FLAG = 83, // Flags
  84. 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)
  85. SMART_ACTION_INVOKER_CAST = 85, // spellID, castFlags, if avaliable, last used invoker will cast spellId with castFlags on targets
  86. 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)
  87. SMART_ACTION_CALL_RANDOM_TIMED_ACTIONLIST = 87, // script9 ids 1-9
  88. SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST = 88, // script9 id min, max
  89. SMART_ACTION_RANDOM_MOVE = 89, // maxDist
  90. SMART_ACTION_SET_UNIT_FIELD_BYTES_1 = 90, // bytes, target
  91. SMART_ACTION_REMOVE_UNIT_FIELD_BYTES_1 = 91, // bytes, target
  92. SMART_ACTION_INTERRUPT_SPELL = 92,
  93. SMART_ACTION_SEND_GO_CUSTOM_ANIM = 93, // anim id
  94. SMART_ACTION_SET_DYNAMIC_FLAG = 94, // Flags
  95. SMART_ACTION_ADD_DYNAMIC_FLAG = 95, // Flags
  96. SMART_ACTION_REMOVE_DYNAMIC_FLAG = 96, // Flags
  97. SMART_ACTION_JUMP_TO_POS = 97, // speedXY, speedZ, targetX, targetY, targetZ
  98. SMART_ACTION_SEND_GOSSIP_MENU = 98, // menuId, optionId
  99. SMART_ACTION_GO_SET_LOOT_STATE = 99, // state
  100. SMART_ACTION_SEND_TARGET_TO_TARGET = 100, // id
  101. SMART_ACTION_SET_HOME_POS = 101, // none
  102. SMART_ACTION_SET_HEALTH_REGEN = 102, // 0/1
  103. SMART_ACTION_SET_ROOT = 103, // off/on
  104. SMART_ACTION_SET_GO_FLAG = 104, // Flags
  105. SMART_ACTION_ADD_GO_FLAG = 105, // Flags
  106. SMART_ACTION_REMOVE_GO_FLAG = 106, // Flags
  107. SMART_ACTION_SUMMON_CREATURE_GROUP = 107, // Group, attackInvoker
  108. SMART_ACTION_SET_POWER = 108, // PowerType, newPower
  109. SMART_ACTION_ADD_POWER = 109, // PowerType, newPower
  110. SMART_ACTION_REMOVE_POWER = 110, // PowerType, newPower
  111. SMART_ACTION_GAME_EVENT_STOP = 111, // GameEventId
  112. SMART_ACTION_GAME_EVENT_START = 112, // GameEventId
  113. SMART_ACTION_START_CLOSEST_WAYPOINT = 113, // wp1, wp2, wp3, wp4, wp5, wp6, wp7
  114. SMART_ACTION_MOVE_OFFSET = 114,
  115. SMART_ACTION_RANDOM_SOUND = 115, // soundId1, soundId2, soundId3, soundId4, soundId5, onlySelf
  116. SMART_ACTION_SET_CORPSE_DELAY = 116, // timer
  117. SMART_ACTION_DISABLE_EVADE = 117, // 0/1 (1 = disabled, 0 = enabled)
  118.  
  119. SMART_ACTION_GO_SET_GO_STATE = 118, // state
  120. SMART_ACTION_SET_CAN_FLY = 119, // 0/1
  121. SMART_ACTION_REMOVE_AURAS_BY_TYPE = 120, // type
  122. SMART_ACTION_SET_SIGHT_DIST = 121, // sightDistance
  123. SMART_ACTION_FLEE = 122, // fleeTime
  124. SMART_ACTION_ADD_THREAT = 123, // +threat, -threat
  125. SMART_ACTION_LOAD_EQUIPMENT = 124, // id
  126. SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT = 125, // id min range, id max range
  127. SMART_ACTION_REMOVE_ALL_GAMEOBJECTS = 126,
  128. SMART_ACTION_STOP_MOTION = 127, // stopMoving, movementExpired
  129. SMART_ACTION_PLAY_ANIMKIT = 128, // id, type (0 = oneShot, 1 = aiAnim, 2 = meleeAnim, 3 = movementAnim)
  130.  
  131. /// LegionCore actions
  132. SMART_ACTION_BOSS_EVADE = 200, ///< No Params
  133. SMART_ACTION_BOSS_ANOUNCE = 201, ///< TextId from trinity_string
  134. SMART_ACTION_MOVE_Z = 202, ///< TextId from trinity_string
  135. SMART_ACTION_SET_ID = 203, ///< Set instance ID
  136. SMART_ACTION_SET_SCENARIO_ID = 204, ///< Set Scenario ID
  137. SMART_ACTION_UPDATE_ACHIEVEMENT_CRITERIA = 205, ///< Update Achievement Criteria
  138. SMART_ACTION_SUMMON_CONVERSATION = 206, ///< Summon Conversation
  139. SMART_ACTION_SUMMON_ADD_PLR_PERSONAL_VISIBILITY = 207, ///< Add Player In Personal Visibility
  140. SMART_ACTION_SUMMON_AREATRIGGER = 208, ///< Summon AreaTrigger
  141.  
  142. /// Freakz custom
  143. SMART_ACTION_PLAY_SCENE = 300, // ScenePackageID, flags
  144. SMART_ACTION_PLAY_CONVERSATION = 301, // ConversationID
  145. SMART_ACTION_PLAYER_CHOICE = 302, // ChoiceID, Quest1, Quest2, Quest3, Quest4
  146. SMART_ACTION_TRIGGER_SCENARIO_CRITERIA = 303, // CriteriaID, Counter
  147. SMART_ACTION_REWARD_QUEST = 304, // QuestID
  148. SMART_ACTION_MODIFY_CURRENCY = 305, // CurrencyID, Amount, Negative
  149. SMART_ACTION_REMOVE_QUEST = 306, // QuestID
  150. SMART_ACTION_LEARN_SPELL_2 = 307, // SpellID
  151. SMART_ACTION_UNLEARN_SPELL = 308, // SpellID
  152. SMART_ACTION_ADD_RANDOM_AURA = 309, // SpellID1, SpellID2, SpellID3, SpellID4, SpellID5, SpellID6
  153. SMART_ACTION_UNBIND_INSTANCE = 310, // MapId, DifficultyId
  154. SMART_ACTION_ADD_ITEM_RANDOM_COUNT = 311, // ItemId, MinCount, MaxCount
  155. SMART_ACTION_PLAY_SPELL_VISUAL_KIT = 312, // KitRecId, KitType, KitDuration
  156. SMART_ACTION_COMPLETE_QUEST = 313, // QuestId
  157. SMART_ACTION_SET_INHABIT_TYPE = 314, // InhabitType
  158. SMART_ACTION_SUMMON_CREATURE_IN_RADIUS = 315, // Summon a creature at a random point in a radius around the target */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement