diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/smart_scripts.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md index 8212a7a..e8ab849 100644 --- a/docs/smart_scripts.md +++ b/docs/smart_scripts.md @@ -237,7 +237,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if | SMART_ACTION_SET_REACT_STATE | 8 | ReactState | | | | | | React State. Can be Passive (0), Defensive (1), Aggressive (2). | | SMART_ACTION_ACTIVATE_GOBJECT | 9 | | | | | | | Activate Object | | SMART_ACTION_RANDOM_EMOTE | 10 | EmoteId1 | EmoteId2 | EmoteId3 | EmoteId4 | EmoteId5 | EmoteId6 | Play Random Emote | -| SMART_ACTION_CAST | 11 | SpellId | [castFlags](#cast-flags) | [triggeredFlags](#triggered-flags) | limitTargets (0 = all) | | | Cast Spell ID at Target(s) | +| SMART_ACTION_CAST | 11 | SpellId | [castFlags](#cast-flags) | [triggeredFlags](#triggered-flags) | limitTargets (0 = all) | | | Cast Spell ID at Target(s) | | SMART_ACTION_SUMMON_CREATURE | 12 | creature_template.entry | Summon type | duration in ms | attackInvoker (0/1/2) | attackScriptOwner (0/1) | | Summon Unit; attackInvoker 1: attack target; attackInvoker 2: attack actual invoker | | SMART_ACTION_THREAT_SINGLE_PCT | 13 | Threat% inc | Threat% dec | | | | | Change Threat Percentage for Single Target | | SMART_ACTION_THREAT_ALL_PCT | 14 | Threat% inc | Threat% dec | | | | | Change Threat Percentage for All Enemies | @@ -255,7 +255,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if | SMART_ACTION_CALL_GROUPEVENTHAPPENS | 26 | quest_template.id | | | | | | | | SMART_ACTION_COMBAT_STOP | 27 | | | | | | | | | SMART_ACTION_REMOVEAURASFROMSPELL | 28 | Spellid (0 removes all auras) | charges (0 removes aura) | | | | | | -| SMART_ACTION_FOLLOW | 29 | Distance (0 = Default value) | Angle (0 = Default value) | End creature_template.entry | credit | creditType (0 monsterkill, 1 event) | | Follow Target | +| SMART_ACTION_FOLLOW | 29 | Distance (0 = Default value) | Angle (0 = Default value) | End creature_template.entry | credit | creditType (0 monsterkill, 1 event) | | Follow Target. If target type is NONE or SELF, Stop Follow | | SMART_ACTION_RANDOM_PHASE | 30 | event_phase_mask 1 | event_phase_mask 2 | event_phase_mask 3 | event_phase_mask 4 | event_phase_mask 5 | event_phase_mask 6 | | | SMART_ACTION_RANDOM_PHASE_RANGE | 31 | event_phase_mask minimum | event_phase_mask maximum | | | | | | | SMART_ACTION_RESET_GOBJECT | 32 | | | | | | | Reset Gameobject | @@ -276,7 +276,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if | SMART_ACTION_SET_VISIBILITY | 47 | 0/1 | | | | | | Makes creature Visible = 1 or Invisible = 0 | | SMART_ACTION_SET_ACTIVE | 48 | 0/1 | | | | | | If a creature or GO is set active it will stay active even if no player is near. Take care, though, as it needs additional ressources (CPU/RAM) to keep them active (other objects/creatures nearby stay active). | | SMART_ACTION_ATTACK_START | 49 | | | | | | | Allows basic melee swings to creature. | -| SMART_ACTION_SUMMON_GO | 50 | gameobject_template.entry | De-spawn time in seconds. | targetSummon (0/1) | summonType (0 - after a specified time OR when the summoner dies, 1 - after a specified time) | | | Spawns Gameobject, use target_type to set spawn position; if an entity is specified as target and also coordinates are set (target x,y,z) those coordinates are handled as offset from the target's position; if targetSummon is 1 then the target will summon the GO on the position of the actor | +| SMART_ACTION_SUMMON_GO | 50 | gameobject_template.entry | De-spawn time in seconds. | targetSummon (0/1) | summonType (0 - after a specified time OR when the summoner dies, 1 - after a specified time) | | | Spawns Gameobject, use target_type to set spawn position; if an entity is specified as target and also coordinates are set (target x,y,z) those coordinates are handled as offset from the target's position; if targetSummon is 1 then the target will summon the GO on the position of the actor | | SMART_ACTION_KILL_UNIT | 51 | | | | | | | Kills Creature. | | SMART_ACTION_ACTIVATE_TAXI | 52 | TaxiID | | | | | | Sends player to flight path. You have to be close to Flight Master, which gives Taxi ID you need. | | SMART_ACTION_WP_START | 53 | 0 = walk / 1 = run | waypoints.entry | canRepeat | quest_template.id | despawntime | reactState | Creature starts Waypoint Movement. Use waypoints table to create movement. | @@ -292,7 +292,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if | SMART_ACTION_SET_COUNTER | 63 | counterID | value | reset (0/1) | | | | If reset is 0 the counter with the specified ID is increased by the given value; if reset is 1 the counter is set to the value. | | SMART_ACTION_STORE_TARGET_LIST | 64 | varID | | | | | | | | SMART_ACTION_WP_RESUME | 65 | | | | | | | Creature continues in its Waypoint Movement. | -| SMART_ACTION_SET_ORIENTATION | 66 | Depends on the script target. If SMART_TARGET_SELF, facing will be the same as in HomePosition, For SMART_TARGET_POSITION you need to set target_o : 0 = North, West = 1.5, South = 3, East = 4.5 | Random orientation? (0/1) | | | | | | +| SMART_ACTION_SET_ORIENTATION | 66 | Depends on the script target. If SMART_TARGET_SELF, facing will be the same as in HomePosition, For SMART_TARGET_POSITION you need to set target_o : 0 = North, West = 1.5, South = 3, East = 4.5 | Random orientation? (0/1) | Turning Angle (degrees) - The value will turn the creature counterclockwise. target_type must be NONE | | | | Used to alter the source's orientation | | SMART_ACTION_CREATE_TIMED_EVENT | 67 | id | InitialMin | InitialMax | RepeatMin(only if it repeats) | RepeatMax(only if it repeats) | chance | | | SMART_ACTION_PLAYMOVIE | 68 | entry | | | | | | | | SMART_ACTION_MOVE_TO_POS | 69 | PointId | isTransport (0 or 1) | controlled (0 or 1) | ContactDistance | | | PointId is called by SMART_EVENT_MOVEMENTINFORM. Continue this action with the TARGET_TYPE column. Use any target_type, and use target_x, target_y, target_z as the coordinates; if an entity is specified as target and also coordinates are set (target x,y,z) those coordinates are handled as offset from the target's position | @@ -311,11 +311,11 @@ This is the probability of the event to occur as a percentage from 0-100. So, if | SMART_ACTION_ADD_NPC_FLAG | 82 | creature_template.npcflag | | | | | | | | SMART_ACTION_REMOVE_NPC_FLAG | 83 | creature_template.npcflag | | | | | | | | SMART_ACTION_SIMPLE_TALK | 84 | creature_text.GroupID | | | | | | Makes a player say text. SMART_EVENT_TEXT_OVER is not triggered and whispers can not be used. | -| SMART_ACTION_SELF_CAST | 85 | SpellId | [castFlags](#cast-flags) | [triggeredFlags](#triggered-flags) | limitTargets (0 = all) | | | Makes the target cast spell on self. | +| SMART_ACTION_SELF_CAST | 85 | SpellId | [castFlags](#cast-flags) | [triggeredFlags](#triggered-flags) | limitTargets (0 = all) | | | Makes the target cast spell on self. | | SMART_ACTION_CROSS_CAST | 86 | SpellID | castFlags | CasterTargetType (caster is selected here, use it as target_type) | CasterTarget (target_param1) | CasterTarget (target_param2) | CasterTarget (target_param3) | This action is used to make selected caster (in CasterTargetType) to cast spell. Actual target is entered in target_type as normally. | | SMART_ACTION_CALL_RANDOM_TIMED_ACTIONLIST | 87 | EntryOrGuid 1 (entryorguid * 100 + n) | EntryOrGuid 2 (entryorguid * 100 + n) | EntryOrGuid 3 (entryorguid * 100 + n) | EntryOrGuid 4 (entryorguid * 100 + n) | EntryOrGuid 5 (entryorguid * 100 + n) | EntryOrGuid 6 (entryorguid * 100 + n) | Will select one entry from the ones provided. 0 is ignored. | | SMART_ACTION_CALL_RANDOM_RANGE_TIMED_ACTIONLIST | 88 | EntryOrGuid 1 (entryorguid * 100 + n) | EntryOrGuid 2 (entryorguid * 100 + n) | | | | | 0 is ignored. | -| SMART_ACTION_RANDOM_MOVE | 89 | Radius | | | | | | Creature moves to random position in given radius. | +| SMART_ACTION_RANDOM_MOVE | 89 | Radius | | | | | | Creature moves to random position in given radius. If radius is 0, then stop movement | | SMART_ACTION_SET_UNIT_FIELD_BYTES_1 | 90 | Value | Type | | | | | | | SMART_ACTION_REMOVE_UNIT_FIELD_BYTES_1 | 91 | Value | Type | | | | | | | SMART_ACTION_INTERRUPT_SPELL | 92 | With delay (0/1) | SpellId | Instant (0/1) | | | | This action allows you to interrupt the current spell being cast. If you do not set the spellId, the core will find the current spell depending on the withDelay and the withInstant values. | @@ -379,6 +379,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if | SMART_ACTION_ATTACK_STOP | 224 | | | | | | | Stop melee, spell casting during combat, chasing the target and facing | | SMART_ACTION_SET_GUID | 225 | 0/1 (0 = Self Guid, 1 = Invoker Guid) | Index | | | | | Allows the target to perform an action similar to DO_ACTION, but allows a guid to be sent | | SMART_ACTION_DISABLE | 226 | 0/1 (0 = Disable, 1 = Enable) | | | | | | Disable the targeted creatures, setting them Invisible and Immune to All | +| SMART_ACTION_SET_SCALE | 227 | scale - this value is the percentage of the new scale the targets will take. 100 = default | | | | | | Sets the scale for the targeted creatures | +| SMART_ACTION_SUMMON_RADIAL | 228 | summonEntry - CreatureID to be summoned | summonDuration - duration in ms which the summons will despawn after, if 0 then despawn on death | repetitions - amount of creatures to be summoned | startAngle - offset in degrees, 0: same as source | stepAngle - how many degrees to turn for each summon | dist - distance offset |
