summaryrefslogtreecommitdiff
path: root/docs/smart_scripts.md
diff options
context:
space:
mode:
authoravarishd <46330494+avarishd@users.noreply.github.com>2023-03-21 19:05:58 +0200
committerGitHub <noreply@github.com>2023-03-21 18:05:58 +0100
commit24b3cf896d06da1d990f58319135f1dcc4254e2e (patch)
tree3e95ca48cb61b6a1935b4d7043bc4d07568ff562 /docs/smart_scripts.md
parentfc5efa92a7229aa2ce7752e36e2f62b3b6be1984 (diff)
downloadwiki-24b3cf896d06da1d990f58319135f1dcc4254e2e.tar.gz
wiki-24b3cf896d06da1d990f58319135f1dcc4254e2e.tar.bz2
wiki-24b3cf896d06da1d990f58319135f1dcc4254e2e.zip
Add missing Smart Scripts stuff. (#882)
* Add missing Smart Scripts stuff. wip * update * typo * update * update * VEHICLE_PASSENGER * typo
Diffstat (limited to 'docs/smart_scripts.md')
-rw-r--r--docs/smart_scripts.md25
1 files changed, 18 insertions, 7 deletions
diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md
index ce7c017..f2dbc9a 100644
--- a/docs/smart_scripts.md
+++ b/docs/smart_scripts.md
@@ -163,8 +163,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_EVENT_FRIENDLY_MISSING_BUFF | 16 | SpellId | Radius | RepeatMin | RepeatMax | onlyInCombat | On Friendly Lost Buff |
| SMART_EVENT_SUMMONED_UNIT | 17 | CretureId (0 all) | CooldownMin | CooldownMax | | | On Creature/Gameobject Summoned Unit |
| SMART_EVENT_TARGET_MANA_PCT | 18 | ManaMin% | ManaMax% | RepeatMin | RepeatMax | | On Target Mana Percentage |
-| SMART_EVENT_ACCEPTED_QUEST | 19 | QuestID (0 any) | | | | | On Target Accepted Quest |
-| SMART_EVENT_REWARD_QUEST | 20 | QuestID (0 any) | | | | | On Target Rewarded Quest |
+| SMART_EVENT_ACCEPTED_QUEST | 19 | QuestID (0 any) | CooldownMin | CooldownMax | | | On Target Accepted Quest |
+| SMART_EVENT_REWARD_QUEST | 20 | QuestID (0 any) | CooldownMin | CooldownMax | | | On Target Rewarded Quest |
| SMART_EVENT_REACHED_HOME | 21 | | | | | | On Creature Reached Home |
| SMART_EVENT_RECEIVE_EMOTE | 22 | EmoteId | CooldownMin | CooldownMax | | | On Receive Emote. |
| SMART_EVENT_HAS_AURA | 23 | SpellID | Stacks | RepeatMin | RepeatMax | | On Creature Has Aura |
@@ -173,7 +173,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_EVENT_IC_LOS | 26 | NoHostile | MaxRange | CooldownMin | CooldownMax | 0/1 Player Only | On Target In Distance In Combat |
| SMART_EVENT_PASSENGER_BOARDED | 27 | CooldownMin | CooldownMax | | | | |
| SMART_EVENT_PASSENGER_REMOVED | 28 | CooldownMin | CooldownMax | | | | |
-| SMART_EVENT_CHARMED | 29 | | | | | | On Creature Charmed |
+| SMART_EVENT_CHARMED | 29 | onRemove (0 - on apply, 1 - on remove) | | | | | On Creature Charmed |
| SMART_EVENT_CHARMED_TARGET | 30 | | | | | | On Target Charmed |
| SMART_EVENT_SPELLHIT_TARGET | 31 | SpellId | School | RepeatMin | RepeatMax | | On Target Spell Hit |
| SMART_EVENT_DAMAGED | 32 | MinDmg | MaxDmg | RepeatMin | RepeatMax | | On Creature Damaged |
@@ -200,7 +200,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_EVENT_JUST_CREATED | 63 | | | | | | |
| SMART_EVENT_GOSSIP_HELLO | 64 | | | | | | On Right-Click Creature/Gameobject that have gossip enabled. |
| SMART_EVENT_FOLLOW_COMPLETED | 65 | | | | | | |
-| SMART_EVENT_UNUSED_66 | 66 | | | | | | UNUSED |
+| SMART_EVENT_EVENT_PHASE_CHANGE | 66 | event phase mask | | | | | On event phase mask set |
| SMART_EVENT_IS_BEHIND_TARGET | 67 | CooldownMin | CooldownMax | | | | On Creature is behind target. |
| SMART_EVENT_GAME_EVENT_START | 68 | game_event.eventEntry | | | | | On game_event started. |
| SMART_EVENT_GAME_EVENT_END | 69 | game_event.eventEntry | | | | | On game_event ended. |
@@ -212,6 +212,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_EVENT_DISTANCE_CREATURE | 75 | database guid | database entry | distance | repeat interval (ms) | | On creature guid OR any instance of creature entry is within distance. |
| SMART_EVENT_DISTANCE_GAMEOBJECT | 76 | database guid | database entry | distance | repeat interval (ms) | | On gameobject guid OR any instance of gameobject entry is within distance. |
| SMART_EVENT_COUNTER_SET | 77 | counterID | value | cooldownMin | cooldownMax | | If the value of specified counterID is equal to a specified value |
+| SMART_EVENT_SUMMONED_UNIT_DIES | 82 | CreatureId(0 all) | CooldownMin | CooldownMax | | | |
| SMART_EVENT_NEAR_PLAYERS | 101 | minPlayers | Range (yards) | FirstCheck (ms) | RepeatCheck (ms) | | Event will trigger if there are more than minPlayers in range. |
| SMART_EVENT_NEAR_PLAYERS_NEGATION | 102 | maxPlayers | Range (yards) | FirstCheck (ms) | RepeatCheck (ms) | | Event will trigger if there are less than maxPlayers in range. |
@@ -223,7 +224,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_ACTION_TALK | 1 | creature_text.GroupID | Duration to wait before SMART_EVENT_TEXT_OVER is triggered. | 0 It will try to trigger talk of the target<br/>1 Set target as talk target (used for $vars in texts and whisper target) | | | | Param2 in Milliseconds. |
| SMART_ACTION_SET_FACTION | 2 | FactionID (or 0 for default) | | | | | | Sets faction to creature. |
| SMART_ACTION_MORPH_TO_ENTRY_OR_MODEL | 3 | creature_template.entry(param1) | creature_template.modelidx(param2) | | | | | Take DisplayID of creature (param1) OR Turn to DisplayID (param2) OR Both = 0 for Demorph |
-| SMART_ACTION_SOUND | 4 | SoundId | onlySelf (0/1) | | | | | Play Sound; onlySelf = 1 only sends sound to self, onlySelf = 0 sends sound to everyone in visibility range |
+| SMART_ACTION_SOUND | 4 | SoundId | onlySelf (0/1) | distance | | | | Play Sound; onlySelf = 1 only sends sound to self, onlySelf = 0 sends sound to everyone in visibility range |
| SMART_ACTION_PLAY_EMOTE | 5 | EmoteId | | | | | | Play Emote |
| SMART_ACTION_FAIL_QUEST | 6 | QuestID | | | | | | Fail Quest of Target |
| SMART_ACTION_OFFER_QUEST | 7 | quest_template.id | directAdd (0/1) | | | | | Add Quest to Target |
@@ -269,7 +270,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) | | | | 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. |
@@ -334,12 +335,18 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_ACTION_GAME_EVENT_START | 112 | game_event.eventEntry | | | | | | |
| SMART_ACTION_START_CLOSEST_WAYPOINT | 113 | wp1 | wp2 | wp3 | wp4 | wp5 | wp6 | Make target follow closest waypoint to its location |
| SMART_ACTION_RISE_UP | 114 | distance | | | | | | move up for the specified distance (warning: TC 3.3.5 uses another action here: SMART_ACTION_MOVE_OFFSET) |
-| SMART_ACTION_RANDOM_SOUND | 115 | soundId1 | soundId2 | soundId3 | soundId4 | onlySelf (0/1) | | |
+| SMART_ACTION_RANDOM_SOUND | 115 | soundId1 | soundId2 | soundId3 | soundId4 | onlySelf (0/1) | distance | |
+| SMART_ACTION_SET_CORPSE_DELAY | 116 | timer | | | | | | |
+| SMART_ACTION_DISABLE_EVADE | 117 | 0/1 (1 = disabled, 0 = enabled) | | | | | | |
+| SMART_ACTION_GO_SET_GO_STATE | 118 | state | | | | | | |
| SMART_ACTION_SET_SIGHT_DIST | 121 | SightDistance | | | | | | |
| SMART_ACTION_FLEE | 122 | FleeTime | | | | | | |
| SMART_ACTION_ADD_THREAT | 123 | +threat | -threat | | | | | |
| SMART_ACTION_LOAD_EQUIPMENT | 124 | Id | force | | | | | |
| SMART_ACTION_TRIGGER_RANDOM_TIMED_EVENT | 125 | id min range | id max range | | | | | |
+| SMART_ACTION_PLAY_CINEMATIC | 135 | entry | cinematic | | | | | |
+| SMART_ACTION_SET_MOVEMENT_SPEED | 136 | movementType | speedInteger | speedFraction | | | | MOVE_WALK = 0, MOVE_RUN = 1, MOVE_RUN_BACK = 2, MOVE_SWIM = 3, MOVE_SWIM_BACK= 4, MOVE_TURN_RATE= 5, MOVE_FLIGHT = 6, MOVE_FLIGHT_BACK = 7, MOVE_PITCH_RATE = 8 |
+| SMART_ACTION_SET_HEALTH_PCT | 142 | percent | | | | | | |
| SMART_ACTION_REMOVE_ALL_GAMEOBJECTS | 126 | | | | | | | |
| SMART_ACTION_MOVE_TO_POS_TARGET | 201 | pointId | | | | | | |
| SMART_ACTION_SET_GO_STATE | 202 | state | | | | | | |
@@ -363,6 +370,8 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_ACTION_PLAYER_TALK | 220 | acore_string.id | yell? (0/1) | | | | | Make the player say something |
| SMART_ACTION_VORTEX_SUMMON | 221 | entry | Duration (ms)<br/>0 = permanent | Spiral scaling | Spiral appearance | range max | phi_delta | Allows you to summon creature in a customizable spiral(/vortex). Parameters can be confusing, exmaple parameters for testing: 5000 - summon duration, 5 - Spiral Scaling, 25 - spiral appearance, 60 - range max, 40 - phi delta |
| SMART_ACTION_CU_ENCOUNTER_START | 222 | | | | | | | Resets all cooldowns and removes exhausted debuffs when action is called |
+| SMART_ACTION_DO_ACTION | 223 | ActionId | | | | | | Allows to call for a DoAction in code |
+| SMART_ACTION_ATTACK_STOP | 224 | |