diff --git a/includes/components/SmartAI/SmartEvent.class.php b/includes/components/SmartAI/SmartEvent.class.php index 722179dc..a9f1f3f8 100644 --- a/includes/components/SmartAI/SmartEvent.class.php +++ b/includes/components/SmartAI/SmartEvent.class.php @@ -98,6 +98,10 @@ class SmartEvent public const EVENT_ON_SPELL_FAILED = 84; // On Unit::InterruptSpell public const EVENT_ON_SPELL_START = 85; // On Spell::prapare public const EVENT_ON_DESPAWN = 86; // On before creature removed + public const EVENT_SEND_EVENT_TRIGGER = 87; // [RESERVED] UNUSED NEEDS CHERRYPICK + public const EVENT_AREATRIGGER_EXIT = 88; // [RESERVED] don't use on 3.3.5a + public const EVENT_ON_AURA_APPLIED = 89; // + public const EVENT_ON_AURA_REMOVED = 90; // public const FLAG_NO_REPEAT = 0x0001; public const FLAG_DIFFICULTY_0 = 0x0002; @@ -198,7 +202,11 @@ class SmartEvent self::EVENT_ON_SPELL_CAST => [Type::SPELL, ['numRange', -1, true], null, null, null, 0], // SpellID, CooldownMin, CooldownMax self::EVENT_ON_SPELL_FAILED => [Type::SPELL, ['numRange', -1, true], null, null, null, 0], // SpellID, CooldownMin, CooldownMax self::EVENT_ON_SPELL_START => [Type::SPELL, ['numRange', -1, true], null, null, null, 0], // SpellID, CooldownMin, CooldownMax - self::EVENT_ON_DESPAWN => [null, null, null, null, null, 0] // NONE + self::EVENT_ON_DESPAWN => [null, null, null, null, null, 0], // NONE + self::EVENT_SEND_EVENT_TRIGGER => [null, null, null, null, null, 2], // UNUSED NEEDS CHERRYPICK + self::EVENT_AREATRIGGER_EXIT => [null, null, null, null, null, 2], // don't use on 3.3.5a + self::EVENT_ON_AURA_APPLIED => [Type::SPELL, ['numRange', -1, true], null, null, null, 0], // SpellID, CooldownMin, CooldownMax + self::EVENT_ON_AURA_REMOVED => [Type::SPELL, ['numRange', -1, true], null, null, null, 0] // SpellID, CooldownMin, CooldownMax ); private array $jsGlobals = []; diff --git a/localization/locale_dede.php b/localization/locale_dede.php index 1ca2f222..2a47572c 100644 --- a/localization/locale_dede.php +++ b/localization/locale_dede.php @@ -651,10 +651,14 @@ $lang = array( /* 80*/ SmartEvent::EVENT_SCENE_CANCEL => null, SmartEvent::EVENT_SCENE_COMPLETE => null, SmartEvent::EVENT_SUMMONED_UNIT_DIES => ['Durch mich beschworener (%1$d)?[npc=%1$d]:NPC; stirbt', 'Abklingzeit: %s'], - SmartEvent::EVENT_ON_SPELL_CAST => ['Bei \'cast success\' von [spell=%1$d] ', 'Abklingzeit: %s'], - SmartEvent::EVENT_ON_SPELL_FAILED => ['Bei \'cast failed\' von [spell=%1$d] ', 'Abklingzeit: %s'], - SmartEvent::EVENT_ON_SPELL_START => ['Bei \'cast start\' von [spell=%1$d] ', 'Abklingzeit: %s'], + SmartEvent::EVENT_ON_SPELL_CAST => ['Bei \'cast success\' von [spell=%1$d]', 'Abklingzeit: %s'], + SmartEvent::EVENT_ON_SPELL_FAILED => ['Bei \'cast failed\' von [spell=%1$d]', 'Abklingzeit: %s'], + SmartEvent::EVENT_ON_SPELL_START => ['Bei \'cast start\' von [spell=%1$d]', 'Abklingzeit: %s'], SmartEvent::EVENT_ON_DESPAWN => ['Beim Verschwinden', ''], + SmartEvent::EVENT_SEND_EVENT_TRIGGER => null, + SmartEvent::EVENT_AREATRIGGER_EXIT => null, + SmartEvent::EVENT_ON_AURA_APPLIED => ['Wenn Aura [spell=%1$d] angewendet wird', 'Abklingzeit: %s'], + SmartEvent::EVENT_ON_AURA_REMOVED => ['Wenn Aura [spell=%1$d] endet', 'Abklingzeit: %s'] ), 'eventFlags' => array( SmartEvent::FLAG_NO_REPEAT => 'Nicht wiederholbar', diff --git a/localization/locale_enus.php b/localization/locale_enus.php index 6e1bc7e6..99d09f1d 100644 --- a/localization/locale_enus.php +++ b/localization/locale_enus.php @@ -655,6 +655,10 @@ $lang = array( SmartEvent::EVENT_ON_SPELL_FAILED => ['On [spell=%1$d] cast failed', 'Cooldown: %s'], SmartEvent::EVENT_ON_SPELL_START => ['On [spell=%1$d] cast start', 'Cooldown: %s'], SmartEvent::EVENT_ON_DESPAWN => ['On despawn', ''], + SmartEvent::EVENT_SEND_EVENT_TRIGGER => null, + SmartEvent::EVENT_AREATRIGGER_EXIT => null, + SmartEvent::EVENT_ON_AURA_APPLIED => ['On aura [spell=%1$d] applied', 'Cooldown: %s'], + SmartEvent::EVENT_ON_AURA_REMOVED => ['On aura [spell=%1$d] removed', 'Cooldown: %s'] ), 'eventFlags' => array( SmartEvent::FLAG_NO_REPEAT => 'No Repeat', diff --git a/localization/locale_eses.php b/localization/locale_eses.php index e1f772ac..e88d151e 100644 --- a/localization/locale_eses.php +++ b/localization/locale_eses.php @@ -655,6 +655,10 @@ $lang = array( SmartEvent::EVENT_ON_SPELL_FAILED => ['Al fallar [spell=%1$d]', 'Enfriamiento: %s'], SmartEvent::EVENT_ON_SPELL_START => ['Al comenzar a lanzar [spell=%1$d]', 'Enfriamiento: %s'], SmartEvent::EVENT_ON_DESPAWN => ['Al desaparecer', ''], + SmartEvent::EVENT_SEND_EVENT_TRIGGER => null, + SmartEvent::EVENT_AREATRIGGER_EXIT => null, + SmartEvent::EVENT_ON_AURA_APPLIED => ['Al aplicar el aura [spell=%1$d]', 'Enfriamiento: %s'], + SmartEvent::EVENT_ON_AURA_REMOVED => ['Al eliminar el aura [spell=%1$d]', 'Enfriamiento: %s'] ), 'eventFlags' => array( SmartEvent::FLAG_NO_REPEAT => 'Sin repetir', diff --git a/localization/locale_frfr.php b/localization/locale_frfr.php index 62f31429..58ac1bbf 100644 --- a/localization/locale_frfr.php +++ b/localization/locale_frfr.php @@ -655,6 +655,10 @@ $lang = array( SmartEvent::EVENT_ON_SPELL_FAILED => ['On [spell=%1$d] cast failed', 'Cooldown: %s'], SmartEvent::EVENT_ON_SPELL_START => ['On [spell=%1$d] cast start', 'Cooldown: %s'], SmartEvent::EVENT_ON_DESPAWN => ['On despawn', ''], + SmartEvent::EVENT_SEND_EVENT_TRIGGER => null, + SmartEvent::EVENT_AREATRIGGER_EXIT => null, + SmartEvent::EVENT_ON_AURA_APPLIED => ['On aura [spell=%1$d] applied', 'Cooldown: %s'], + SmartEvent::EVENT_ON_AURA_REMOVED => ['On aura [spell=%1$d] removed', 'Cooldown: %s'] ), 'eventFlags' => array( SmartEvent::FLAG_NO_REPEAT => 'No Repeat', diff --git a/localization/locale_ruru.php b/localization/locale_ruru.php index e9587064..57620310 100644 --- a/localization/locale_ruru.php +++ b/localization/locale_ruru.php @@ -655,6 +655,10 @@ $lang = array( SmartEvent::EVENT_ON_SPELL_FAILED => ['On [spell=%1$d] cast failed', 'Cooldown: %s'], SmartEvent::EVENT_ON_SPELL_START => ['On [spell=%1$d] cast start', 'Cooldown: %s'], SmartEvent::EVENT_ON_DESPAWN => ['On despawn', ''], + SmartEvent::EVENT_SEND_EVENT_TRIGGER => null, + SmartEvent::EVENT_AREATRIGGER_EXIT => null, + SmartEvent::EVENT_ON_AURA_APPLIED => ['On aura [spell=%1$d] applied', 'Cooldown: %s'], + SmartEvent::EVENT_ON_AURA_REMOVED => ['On aura [spell=%1$d] removed', 'Cooldown: %s'] ), 'eventFlags' => array( SmartEvent::FLAG_NO_REPEAT => 'No Repeat', diff --git a/localization/locale_zhcn.php b/localization/locale_zhcn.php index 7819c9ea..87276104 100644 --- a/localization/locale_zhcn.php +++ b/localization/locale_zhcn.php @@ -655,6 +655,10 @@ $lang = array( SmartEvent::EVENT_ON_SPELL_FAILED => ['On [spell=%1$d] cast failed', 'Cooldown: %s'], SmartEvent::EVENT_ON_SPELL_START => ['On [spell=%1$d] cast start', 'Cooldown: %s'], SmartEvent::EVENT_ON_DESPAWN => ['On despawn', ''], + SmartEvent::EVENT_SEND_EVENT_TRIGGER => null, + SmartEvent::EVENT_AREATRIGGER_EXIT => null, + SmartEvent::EVENT_ON_AURA_APPLIED => ['On aura [spell=%1$d] applied', 'Cooldown: %s'], + SmartEvent::EVENT_ON_AURA_REMOVED => ['On aura [spell=%1$d] removed', 'Cooldown: %s'] ), 'eventFlags' => array( SmartEvent::FLAG_NO_REPEAT => 'No Repeat',