From 0fab07eaad510d18f4dcb53c1d56d11d24438e97 Mon Sep 17 00:00:00 2001 From: Gultask Date: Wed, 31 Jul 2024 15:14:32 -0300 Subject: [PATCH] Update smart_scripts.md --- docs/smart_scripts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md index 4bc4e3e0..59f5669a 100644 --- a/docs/smart_scripts.md +++ b/docs/smart_scripts.md @@ -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 |