Skip to content

Commit

Permalink
Update smart_scripts.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Gultask committed Jul 31, 2024
1 parent df7f9d0 commit 0fab07e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/smart_scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ This is the probability of the event to occur as a percentage from 0-100. So, if
| SMART_ACTION_DO_ACTION | 223 | ActionId | | | | | | Allows to call for a DoAction in code |
| 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_SCRIPTED_SPAWN | 226 | state (0: Disable Respawn and await script; 1: Respawn Once; 2: Respawn and Enable Respawning) | Minimum Spawn Timer (Delay in seconds until first spawn, if 0 respawn immediately) | Maximum Spawn Timer (Delay in seconds until first spawn, if 0 respawn immediately) | Respawn Delay (Delay in seconds to respawn after corpse is removed, if 0 use DB values) | Corpse Delay (Delay in seconds until the corpse despawns, if 0 use default) | Don't Despawn (if 1, won't despawn once when state = 0) | Sets up and allows the usage of a SmartAI Scripted Spawn system, allowing us to keep unique GUIDs despawned until a script ativates them. Look up 'The Deadliest Trap Ever Laid' quest for examples on its use. |
| SMART_ACTION_SCRIPTED_SPAWN | 226 | state (0: Disable Respawn and await script; 1: Respawn Once; 2: Respawn and Enable Respawning) | Minimum Spawn Timer (Delay in seconds until first spawn, if 0 respawn immediately) | Maximum Spawn Timer (Delay in seconds until first spawn, if 0 respawn immediately) | Respawn Delay (Delay in seconds to respawn after corpse is removed, if 0 use DB values) | Corpse Delay (Delay in seconds until the corpse despawns, if 0 use default) | Don't Despawn (if 1, won't despawn when state = 0) | Sets up and allows the usage of a SmartAI Scripted Spawn system, allowing us to keep unique GUIDs despawned until a script ativates them. Look up 'The Deadliest Trap Ever Laid' quest for examples on its use. |
| 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 | Summons a set of creatures in a radial pattern, with orientation change specified in parameters |
| SMART_ACTION_PLAY_SPELL_VISUAL | 229 | visualId - can be found within SpellVisual.dbc | | | | | | Makes the targets play the VisualKit ID specified |
Expand Down

0 comments on commit 0fab07e

Please sign in to comment.