Commit Graph

92 Commits

Author SHA1 Message Date
hondacrx 774e978d18 Core/SAI: Add SMART_ACTION_ACTIVATE_GAMEOBJECT action
Port From (https://github.com/TrinityCore/TrinityCore/commit/791b759332b784211031571d3ca68cf0080897cb)
2022-05-30 13:41:04 -04:00
hondacrx 410caaae41 Core/SAI: Make 'no, thanks' actions deprecated
Port From (https://github.com/TrinityCore/TrinityCore/commit/6ac4e9dd4a9fbe74113810d0f4942ebdb9946d8a)
2022-05-30 13:11:20 -04:00
hondacrx c5c6b42337 Core/SAI: Make SMART_EVENT_WAYPOINT_START & SMART_EVENT_CHARMED_TARGET deprecated
Port From (https://github.com/TrinityCore/TrinityCore/commit/0ad6258d4b71f2762bc37ea516e4c9836d02bc75)
2022-05-30 13:07:07 -04:00
hondacrx a23a152492 DB/SAI: Make SMART_EVENT_EVENT_PHASE_CHANGE deprecated; avoid AddAura, re-handle equipment in few scripts
Port From (https://github.com/TrinityCore/TrinityCore/commit/2beb606cdfc168bec14f1af398fad04a3ec0baf7)
2022-05-30 13:06:22 -04:00
hondacrx 9218188614 Core/SAI: Remove deprecated events and actions
Port From (https://github.com/TrinityCore/TrinityCore/commit/29190e56428afa8d5acd2cf6ca3d712c2558899d)
2022-05-30 13:01:42 -04:00
hondacrx ba7b2e42a3 Core/SAI: Split set/remove unit_flags actions
Port From (https://github.com/TrinityCore/TrinityCore/commit/e80777cb39d5eb940348300aa2a6d42cede039a8)
2022-05-29 23:06:21 -04:00
hondacrx 9f702c199b Core/SAI: Remove possibility to set/remove unit_flags2
Port From (https://github.com/TrinityCore/TrinityCore/commit/f55e86d90735aad1c0cfd8d1b6e79aa721e8267c)
2022-05-29 22:55:34 -04:00
hondacrx 0cd59a5176 Handle deprecated SAI actions and events
Port From (https://github.com/TrinityCore/TrinityCore/commit/318e0e24066fc89a1d07a993fc19a5a9dd3a6fd4)
2022-05-29 21:05:29 -04:00
hondacrx b630cf134e Misc fixes 2022-05-29 21:00:58 -04:00
hondacrx d6c9594c20 Core/SAI: Change error to warning for unused parameters
Port From (https://github.com/TrinityCore/TrinityCore/commit/a19c71a77075b569192eca556635dba85ac6f2ec)
2022-05-29 20:59:55 -04:00
hondacrx 59cc33bcc6 Core/SAI: Remove SMART_ACTION_INSTALL_AI_TEMPLATE
Port From (https://github.com/TrinityCore/TrinityCore/commit/7d9088e9cf1104c5c21d350a9d7e93c1a8fe8ef5)
2022-05-29 20:42:09 -04:00
hondacrx 4aa4509db0 Core/SAI: Remove SMART_ACTION_SET_DYNAMIC_FLAG
Port From (https://github.com/TrinityCore/TrinityCore/commit/842eb3bdd7e18e7f069e8aafd99145a62f82900c)
2022-05-29 16:24:09 -04:00
hondacrx 8f11cd7660 Core/SAI: Temporarily allow SMART_ACTION_WP_START to specify parameter value 3 for reactState
Port From (https://github.com/TrinityCore/TrinityCore/commit/fc3e26fdfe68a7b1a7c0dd6f67dc545f40b9465e)
2022-05-29 16:02:53 -04:00
hondacrx fbedb839f9 Core/SAI: Warn when an unused parameter is set in the database
Port From (https://github.com/TrinityCore/TrinityCore/commit/c9e685bd9a0ac524edb8fe64eb6ec37540c55acc)
2022-05-29 15:35:39 -04:00
hondacrx 06da4c2dfd Core/SAI: Add a warning when a boolean value is outside of [0,1] range
Port From (https://github.com/TrinityCore/TrinityCore/commit/a85e77b47a66591944d1af56741fa0ddd317fd87)
2022-05-28 17:44:46 -04:00
hondacrx 750fd7f885 Core/SAI: Allow SMART_ACTION_SUMMON_CREATURE to summon more than 1 creature
Port From (https://github.com/TrinityCore/TrinityCore/commit/40416d62f354c2a49f6acf9fac094401e25d3db8)
2022-05-26 21:50:25 -04:00
hondacrx 3669df2708 Core/SAI: Add support to friendly+hostile to SMART_EVENT_OOC_LOS and SMART_EVENT_IC_LOS
Port From (https://github.com/TrinityCore/TrinityCore/commit/76c470fb3207c195804e789812a330394e81ecc3)
2022-05-26 21:46:26 -04:00
hondacrx 17ae1835d6 Core/SAI: Prevent loading invalid smart_scripts entry
Port From (https://github.com/TrinityCore/TrinityCore/commit/f7956ffd1ea5e329caf79756e75c2016a7306185)
2022-05-26 16:52:22 -04:00
hondacrx 78d39e4c19 Core/Creature: Allow to skip Rate.Corpse.Decay.Looted when calling SetCorpseDelay()
Port From (https://github.com/TrinityCore/TrinityCore/commit/a4a3e2e75999230d0d2e38886eef4ce0271f4a1d)
2022-05-25 13:36:12 -04:00
hondacrx 6297e81009 Core/SAI: Add new action SMART_ACTION_SET_HEALTH_PCT
Port From (https://github.com/TrinityCore/TrinityCore/commit/4c30b2a1827b81774136d37cb521dbd5823c3423)
2022-05-25 13:30:00 -04:00
hondacrx 871dc5ab5d Core/SAI: implement new smart actions to change AI Animkits and to enable/disable hover movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/dde5a3e32645060fbcc4856770dfc6a0c43a3947)
2022-05-24 13:40:19 -04:00
hondacrx 5e65e712c6 Core/SAI: Add orientation and delay columns to waypoints table
Port From (https://github.com/TrinityCore/TrinityCore/commit/a65b3493a7823ba543070c514d54f3c07c417bc1)
2022-05-24 10:05:48 -04:00
hondacrx ecb3f5f857 Game/AI: Implement option to move a creature back to Homeposition on Evade.
Port From (https://github.com/TrinityCore/TrinityCore/commit/dfeb8c267f94f6a2b2ebe717fd43c5d4fd36a549)
2022-05-04 09:29:44 -04:00
hondacrx da6ea9759c Core/SAI: Do not allow SMART_EVENT_RESET to call SMART_ACTION_CALL_SCRIPT_RESET
Port From (https://github.com/TrinityCore/TrinityCore/commit/ae6f8bc4f546b0db9b39acad03687d968a348779)
2022-04-28 10:16:23 -04:00
hondacrx 70ba25ad06 Core/SAI: Implement SMART_TARGET_ACTION_INVOKER in SMART_EVENT_FRIENDLY_HEALTH_PCT
Port From (https://github.com/TrinityCore/TrinityCore/commit/902ed74c2adaf2dadcd38f1fb96963f7ec46df07)
2022-03-11 17:54:05 -05:00
hondacrx 82389dbaeb Core/SAI: Spell casts that cannot be executed because the unit is currently casting another spell will be retried asap with priority over other events
Port From (https://github.com/TrinityCore/TrinityCore/commit/f2ee365da43f851181c8a486e10325a95b75c55d)
2022-03-04 17:20:01 -05:00
hondacrx 6df3ca3a3b Core/SAI: Add SMART_ACTION_BECOME_PERSONAL_CLONE_FOR_PLAYER
Port From (https://github.com/TrinityCore/TrinityCore/commit/f383c0ea214cc4da2d02b81e26297d77ff59c7ed)
2022-02-27 14:29:40 -05:00
hondacrx 1b28a8260c Core/SAI: implement SMART_EVENT_SUMMONED_UNIT_DIES (82), useable by creatures and gameobjects
Port From (https://github.com/TrinityCore/TrinityCore/commit/d4a1a7a040be0ca0d6428669135bcc64d92be1c2)
2022-02-27 13:57:18 -05:00
hondacrx 28175c47b1 Core/SAI: Remove SMART_ACTION_ADD_AURA & actions to change object flags
Port From (https://github.com/TrinityCore/TrinityCore/commit/5ba93a95de911277908596d805e7fa7f38a18c3a)
2022-02-25 12:58:50 -05:00
hondacrx 475600daa9 Core/SAI: implement SMART_ACTION_ATTACK_STOP
Port From (https://github.com/TrinityCore/TrinityCore/commit/38be5e361e072edec6cfec584db9182ea3ad4450)
2022-02-23 16:13:54 -05:00
hondacrx 8126e7c6e1 Game/AI: Implement new targettype SMART_TARGET_CLOSEST_UNSPAWNED_GAMEOBJECT
Port From (https://github.com/TrinityCore/TrinityCore/commit/db825c3221de16cdb757711781318d76b414213f)
2022-02-18 13:35:32 -05:00
hondacrx 49f32780dc Core/SAI: added new action type SMART_ACTION_ADD_TO_STORED_TARGET_LIST
Port From (https://github.com/TrinityCore/TrinityCore/commit/bc4e285c2104993f9eb8c0dc03e0eba800df1a88)
2022-01-07 13:40:09 -05:00
hondacrx 6ece3e2b66 Core/Maps: Citizens of Dalaran! Raise your eyes to the skies and observe! Any non-map-default light can now be overriden!
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8d1f37ee098db01872d8861a0b48d5d4cb9d172)
2022-01-07 11:34:15 -05:00
hondacrx 0490d3eed1 Core/SAI: Allow resetting light overrides with SMART_ACTION_OVERRIDE_LIGHT
Port From (https://github.com/TrinityCore/TrinityCore/commit/29aef603efefdbecf32d7376b1c24781cb635f04)
2022-01-07 11:26:19 -05:00
hondacrx 131e2c7815 Core/DynamicInfo: rename some parameters according packet definitions
Port From (https://github.com/TrinityCore/TrinityCore/commit/5e178b30fab3506ee028554c116785a55e26a740)
2022-01-07 10:50:34 -05:00
hondacrx 7a63e227ed Core/SmartAI: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER
Port From (https://github.com/TrinityCore/TrinityCore/commit/1d08423725141de712290b18739dcc9b3ea3a7c6)
2022-01-07 09:52:49 -05:00
hondacrx 7b63d93861 Core/SAI: SMART_ACTION_PAUSE_MOVEMENT
Port From (https://github.com/TrinityCore/TrinityCore/commit/a90b9abbf0754d4156b3d6b02f1a97eafae8f3e9)
2022-01-07 09:41:11 -05:00
hondacrx 958dbbb4d9 Core/SAI: add param3 to SMART_ACTION_CALL_TIMED_ACTIONLIST to allow it to override a currently running actionlist.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d197a7ce9b376f45e5de1a5aab3df75b77b62d8f)
2021-12-24 21:09:51 -05:00
hondacrx 6a295f7fe4 Core/SAI: add cooldownMin (event_param2) and cooldownMax (event_param3) to SMART_EVENT_ACCEPTED_QUEST and SMART_EVENT_REWARD_QUEST.
Port From (https://github.com/TrinityCore/TrinityCore/commit/7745e3f94389cf22cf9be04b411e94936306a6f6)
2021-12-22 20:13:01 -05:00
hondacrx 8858e58f46 Core/SAI: add action_param3 to SMART_ACTION_REMOVEAURASFROMSPELL to allow it to remove only auras from spells that were cast by the entity itself.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d037c6b08634c5d0d4cc0462ae28e15baf8498bb)
2021-12-17 17:15:30 -05:00
hondacrx cf3bc71a74 Core/SmartAI: Improve SMART_EVENT_GOSSIP_HELLO
Port From (https://github.com/TrinityCore/TrinityCore/commit/e9aed3e442374db74ebc98edc39ba4ee46acf123)
2021-12-16 12:36:53 -05:00
hondacrx a04e405383 Core/SmartScripts: Implement SMART_ACTION_PLAY_CINEMATIC
Port From (https://github.com/TrinityCore/TrinityCore/commit/dad95d16b263b9c1cb8df6edac8043138fb4da9e)
2021-12-01 11:44:02 -05:00
hondacrx 10145749ca Core/SAI: Add maxSize parameter to SMART_TARGET_CREATURE_DISTANCE, SMART_TARGET_GAMEOBJECT_DISTANCE, SMART_TARGET_CREATURE_RANGE and SMART_TARGET_GAMEOBJECT_RANGE
Port From (https://github.com/TrinityCore/TrinityCore/commit/d6ce2fa8b8b48c6634a6fc55c4e7d7e93278f94b)
2021-11-15 20:33:50 -05:00
hondacrx f2a7383fad Core/SAI: Add a 4th target parameter to SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/4fabfa0903dfbf95bb4f0ce03fea953d4ef0a073)
2021-11-15 20:25:14 -05:00
hondacrx 6ea312d748 DBError follow-ups:
Port From (https://github.com/TrinityCore/TrinityCore/commit/45766c3d6eb4f70dfa6fe58f99d046e280664480)
2021-10-30 19:57:59 -04:00
hondacrx d21b9e1858 AI/SmartScripts: Replace SMART_ACTION_INVOKER_CAST with SMART_ACTION_SELF_CAST in action 85. SMART_ACTION_INVOKER_CAST moves to 134.
Port From (https://github.com/TrinityCore/TrinityCore/commit/0aee79dfb8027e8b35472f5f61eb4f318528c951)
2021-10-17 18:49:09 -04:00
hondacrx 7c360aae68 Some cleanups 2021-10-17 17:13:53 -04:00
hondacrx 9a41de7593 AI/SmartScripts: Warn on startup for ACTION_INVOKER_CAST without invoker (same as invoker targets)
Port From (https://github.com/TrinityCore/TrinityCore/commit/a2d266edf3da950ac4aeaf48b6778f8bbc7bcdd4)
2021-10-17 17:02:08 -04:00
hondacrx a968772bad Core/Movement: MotionMaster reimplementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/426f9f2f92b26fbb68e7cda9290ccbd586c6af4e)
2021-09-29 18:24:37 -04:00
hondacrx cf79d69487 Core/Movement: use helpers for validation
Port From (https://github.com/TrinityCore/TrinityCore/commit/0b6049fe0bf49a8c21114960cb7a6522f48c8308)
2021-09-26 13:49:13 -04:00