From 96c761308efda1c43026b6238b1b04424a12b2cc Mon Sep 17 00:00:00 2001 From: Malcrom Date: Sun, 18 Sep 2022 11:45:07 -0300 Subject: Update smart_scripts.md (#809) Add 0/1 No initial cast to Range Event --- docs/smart_scripts.md | 144 +++++++++++++++++++++++++------------------------- 1 file changed, 72 insertions(+), 72 deletions(-) (limited to 'docs') diff --git a/docs/smart_scripts.md b/docs/smart_scripts.md index 45af770..9ccf993 100644 --- a/docs/smart_scripts.md +++ b/docs/smart_scripts.md @@ -141,78 +141,78 @@ This is the probability of the event to occur as a percentage from 0-100. So, if ### event\_type -| Name | Value | Param1 | Param2 | Param3 | Param4 | Param5 | Comment | -|-----------------------------------|-------|-------------------------------------------------------|-----------------------------|-------------------|---------------------------------|-----------------|------------------------------------------------------------------------------| -| SMART_EVENT_UPDATE_IC | 0 | InitialMin | InitialMax | RepeatMin | RepeatMax | | In combat. | -| SMART_EVENT_UPDATE_OOC | 1 | InitialMin | InitialMax | RepeatMin | RepeatMax | | Out of combat. | -| SMART_EVENT_HEALTH_PCT | 2 | HPMin% | HPMax% | RepeatMin | RepeatMax | | Health Percentage | -| SMART_EVENT_MANA_PCT | 3 | ManaMin% | ManaMax% | RepeatMin | RepeatMax | | Mana Percentage | -| SMART_EVENT_AGGRO | 4 | | | | | | On Creature Aggro | -| SMART_EVENT_KILL | 5 | CooldownMin | CooldownMax | Player only (0/1) | Creature entry (if param3 is 0) | | On Creature Kill | -| SMART_EVENT_DEATH | 6 | | | | | | On Creature Death | -| SMART_EVENT_EVADE | 7 | | | | | | On Creature Evade Attack | -| SMART_EVENT_SPELLHIT | 8 | SpellID | School | CooldownMin | CooldownMax | | On Creature/Gameobject Spell Hit | -| SMART_EVENT_RANGE | 9 | MinDist | MaxDist | RepeatMin | RepeatMax | | On Target In Range | -| SMART_EVENT_OOC_LOS | 10 | NoHostile | MaxRange | CooldownMin | CooldownMax | 0/1 Player Only | On Target In Distance Out of Combat | -| SMART_EVENT_RESPAWN | 11 | type (None = 0, Map = 1, Area = 2) | MapId | ZoneId | | | On Creature/Gameobject Respawn | -| SMART_EVENT_TARGET_HEALTH_PCT | 12 | HPMin% | HPMax% | RepeatMin | RepeatMax | | On Target Health Percentage | -| SMART_EVENT_VICTIM_CASTING | 13 | RepeatMin | RepeatMax | Spell id (0 any) | | | On Target Casting Spell | -| SMART_EVENT_FRIENDLY_HEALTH | 14 | HPDeficit | Radius | RepeatMin | RepeatMax | | On Friendly Health Deficit | -| SMART_EVENT_FRIENDLY_IS_CC | 15 | Radius | RepeatMin | RepeatMax | | | | -| SMART_EVENT_FRIENDLY_MISSING_BUFF | 16 | SpellId | Radius | RepeatMin | RepeatMax | | 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_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 | -| SMART_EVENT_TARGET_BUFFED | 24 | SpellID | Stacks | RepeatMin | RepeatMax | | On Target Buffed With Spell | -| SMART_EVENT_RESET | 25 | | | | | | After Combat, On Respawn or Spawn | -| 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_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 | -| SMART_EVENT_DAMAGED_TARGET | 33 | MinDmg | MaxDmg | RepeatMin | RepeatMax | | On Target Damaged | -| SMART_EVENT_MOVEMENTINFORM | 34 | MovementType (0=any) | PointID | | | | ESCORT_MOTION_TYPE = 17, POINT_MOTION_TYPE = 8 | -| SMART_EVENT_SUMMON_DESPAWNED | 35 | Entry | CooldownMin | CooldownMax | | | On Summoned Unit Despawned | -| SMART_EVENT_CORPSE_REMOVED | 36 | | | | | | On Creature Corpse Removed | -| SMART_EVENT_AI_INIT | 37 | | | | | | | -| SMART_EVENT_DATA_SET | 38 | Field | Value | CooldownMin | CooldownMax | | On Creature/Gameobject Data Set, Can be used with SMART_ACTION_SET_DATA | -| SMART_EVENT_WAYPOINT_START | 39 | PointId (0 any) | pathId (0 any) | | | | On Creature Waypoint ID Started | -| SMART_EVENT_WAYPOINT_REACHED | 40 | PointId (0 any) | pathId (0 any) | | | | On Creature Waypoint ID Reached | -| SMART_EVENT_AREATRIGGER_ONTRIGGER | 46 | TriggerId (0 any) | | | | | | -| SMART_EVENT_TEXT_OVER | 52 | creature_text.GroupID | creature.id (0 any) | | | | On TEXT_OVER Event Triggered After SMART_ACTION_TALK | -| SMART_EVENT_RECEIVE_HEAL | 53 | MinHeal | MaxHeal | CooldownMin | CooldownMax | | On Creature Received Healing | -| SMART_EVENT_JUST_SUMMONED | 54 | | | | | | On Creature Just spawned | -| SMART_EVENT_WAYPOINT_PAUSED | 55 | PointId (0 any) | pathID (0 any) | | | | On Creature Paused at Waypoint ID | -| SMART_EVENT_WAYPOINT_RESUMED | 56 | PointId (0 any) | pathID (0 any) | | | | On Creature Resumed after Waypoint ID | -| SMART_EVENT_WAYPOINT_STOPPED | 57 | PointId (0 any) | pathID (0 any) | | | | On Creature Stopped On Waypoint ID | -| SMART_EVENT_WAYPOINT_ENDED | 58 | PointId (0 any) | pathID (0 any) | | | | On Creature Waypoint Path Ended | -| SMART_EVENT_TIMED_EVENT_TRIGGERED | 59 | Id | | | | | | -| SMART_EVENT_UPDATE | 60 | InitialMin | InitialMax | RepeatMin | RepeatMax | | | -| SMART_EVENT_LINK | 61 | | | | | | Used to link together multiple events as a chain of events. | -| SMART_EVENT_GOSSIP_SELECT | 62 | gossip_menu_option.MenuID | gossip_menu_option.OptionID | | | | On gossip clicked (gossip_menu_option). | -| 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_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. | -| SMART_EVENT_GO_STATE_CHANGED | 70 | State (0 - Active, 1 - Ready, 2 - Active alternative) | | | | | | -| SMART_EVENT_GO_EVENT_INFORM | 71 | EventId | | | | | | -| SMART_EVENT_ACTION_DONE | 72 | EventId | | | | | | -| SMART_EVENT_ON_SPELLCLICK | 73 | | | | | | | -| SMART_EVENT_FRIENDLY_HEALTH_PCT | 74 | minHpPct | maxHpPct | repeatMin | repeatMax | range | | -| 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_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. | +| Name | Value | Param1 | Param2 | Param3 | Param4 | Param5 | Comment | +|-----------------------------------|-------|-------------------------------------------------------|-----------------------------|-------------------|---------------------------------|---------------------|------------------------------------------------------------------------------| +| SMART_EVENT_UPDATE_IC | 0 | InitialMin | InitialMax | RepeatMin | RepeatMax | | In combat. | +| SMART_EVENT_UPDATE_OOC | 1 | InitialMin | InitialMax | RepeatMin | RepeatMax | | Out of combat. | +| SMART_EVENT_HEALTH_PCT | 2 | HPMin% | HPMax% | RepeatMin | RepeatMax | | Health Percentage | +| SMART_EVENT_MANA_PCT | 3 | ManaMin% | ManaMax% | RepeatMin | RepeatMax | | Mana Percentage | +| SMART_EVENT_AGGRO | 4 | | | | | | On Creature Aggro | +| SMART_EVENT_KILL | 5 | CooldownMin | CooldownMax | Player only (0/1) | Creature entry (if param3 is 0) | | On Creature Kill | +| SMART_EVENT_DEATH | 6 | | | | | | On Creature Death | +| SMART_EVENT_EVADE | 7 | | | | | | On Creature Evade Attack | +| SMART_EVENT_SPELLHIT | 8 | SpellID | School | CooldownMin | CooldownMax | | On Creature/Gameobject Spell Hit | +| SMART_EVENT_RANGE | 9 | MinDist | MaxDist | RepeatMin | RepeatMax | 0/1 No initial cast | On Target In Range | +| SMART_EVENT_OOC_LOS | 10 | NoHostile | MaxRange | CooldownMin | CooldownMax | 0/1 Player Only | On Target In Distance Out of Combat | +| SMART_EVENT_RESPAWN | 11 | type (None = 0, Map = 1, Area = 2) | MapId | ZoneId | | | On Creature/Gameobject Respawn | +| SMART_EVENT_TARGET_HEALTH_PCT | 12 | HPMin% | HPMax% | RepeatMin | RepeatMax | | On Target Health Percentage | +| SMART_EVENT_VICTIM_CASTING | 13 | RepeatMin | RepeatMax | Spell id (0 any) | | | On Target Casting Spell | +| SMART_EVENT_FRIENDLY_HEALTH | 14 | HPDeficit | Radius | RepeatMin | RepeatMax | | On Friendly Health Deficit | +| SMART_EVENT_FRIENDLY_IS_CC | 15 | Radius | RepeatMin | RepeatMax | | | | +| SMART_EVENT_FRIENDLY_MISSING_BUFF | 16 | SpellId | Radius | RepeatMin | RepeatMax | | 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_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 | +| SMART_EVENT_TARGET_BUFFED | 24 | SpellID | Stacks | RepeatMin | RepeatMax | | On Target Buffed With Spell | +| SMART_EVENT_RESET | 25 | | | | | | After Combat, On Respawn or Spawn | +| 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_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 | +| SMART_EVENT_DAMAGED_TARGET | 33 | MinDmg | MaxDmg | RepeatMin | RepeatMax | | On Target Damaged | +| SMART_EVENT_MOVEMENTINFORM | 34 | MovementType (0=any) | PointID | | | | ESCORT_MOTION_TYPE = 17, POINT_MOTION_TYPE = 8 | +| SMART_EVENT_SUMMON_DESPAWNED | 35 | Entry | CooldownMin | CooldownMax | | | On Summoned Unit Despawned | +| SMART_EVENT_CORPSE_REMOVED | 36 | | | | | | On Creature Corpse Removed | +| SMART_EVENT_AI_INIT | 37 | | | | | | | +| SMART_EVENT_DATA_SET | 38 | Field | Value | CooldownMin | CooldownMax | | On Creature/Gameobject Data Set, Can be used with SMART_ACTION_SET_DATA | +| SMART_EVENT_WAYPOINT_START | 39 | PointId (0 any) | pathId (0 any) | | | | On Creature Waypoint ID Started | +| SMART_EVENT_WAYPOINT_REACHED | 40 | PointId (0 any) | pathId (0 any) | | | | On Creature Waypoint ID Reached | +| SMART_EVENT_AREATRIGGER_ONTRIGGER | 46 | TriggerId (0 any) | | | | | | +| SMART_EVENT_TEXT_OVER | 52 | creature_text.GroupID | creature.id (0 any) | | | | On TEXT_OVER Event Triggered After SMART_ACTION_TALK | +| SMART_EVENT_RECEIVE_HEAL | 53 | MinHeal | MaxHeal | CooldownMin | CooldownMax | | On Creature Received Healing | +| SMART_EVENT_JUST_SUMMONED | 54 | | | | | | On Creature Just spawned | +| SMART_EVENT_WAYPOINT_PAUSED | 55 | PointId (0 any) | pathID (0 any) | | | | On Creature Paused at Waypoint ID | +| SMART_EVENT_WAYPOINT_RESUMED | 56 | PointId (0 any) | pathID (0 any) | | | | On Creature Resumed after Waypoint ID | +| SMART_EVENT_WAYPOINT_STOPPED | 57 | PointId (0 any) | pathID (0 any) | | | | On Creature Stopped On Waypoint ID | +| SMART_EVENT_WAYPOINT_ENDED | 58 | PointId (0 any) | pathID (0 any) | | | | On Creature Waypoint Path Ended | +| SMART_EVENT_TIMED_EVENT_TRIGGERED | 59 | Id | | | | | | +| SMART_EVENT_UPDATE | 60 | InitialMin | InitialMax | RepeatMin | RepeatMax | | | +| SMART_EVENT_LINK | 61 | | | | | | Used to link together multiple events as a chain of events. | +| SMART_EVENT_GOSSIP_SELECT | 62 | gossip_menu_option.MenuID | gossip_menu_option.OptionID | | | | On gossip clicked (gossip_menu_option). | +| 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_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. | +| SMART_EVENT_GO_STATE_CHANGED | 70 | State (0 - Active, 1 - Ready, 2 - Active alternative) | | | | | | +| SMART_EVENT_GO_EVENT_INFORM | 71 | EventId | | | | | | +| SMART_EVENT_ACTION_DONE | 72 | EventId | | | | | | +| SMART_EVENT_ON_SPELLCLICK | 73 | | | | | | | +| SMART_EVENT_FRIENDLY_HEALTH_PCT | 74 | minHpPct | maxHpPct | repeatMin | repeatMax | Range | | +| 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_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. | ### action\_type -- cgit