Shauren
4e551741cf
Core/Misc: Fix some GCC warnings
2024-11-12 16:39:24 +01:00
Meji
9261140c9d
Core/SAI: Implemented new action SMART_ACTION_CREDIT_QUEST_OBJECTIVE_TALK_TO ( #30382 )
2024-10-28 21:32:16 +01:00
Meji
0d5242daae
Core/SAI: Implemented new event type SMART_EVENT_AREATRIGGER_EXIT (88) ( #30367 )
2024-10-22 04:01:37 +02:00
Meji
3429871a07
Core/SAI: Implemented new action SMART_ACTION_COMPLETE_QUEST ( #30048 )
2024-08-15 15:43:17 +02:00
Shauren
bd9fb4a563
Core/Movement: Defined and implemented new spline flag - JumpOrientationFixed
2024-06-29 18:15:43 +02:00
Shauren
ac73edc268
Core/Movement: Allow setting position or object facing targets for jump movement
2024-06-21 15:35:12 +02:00
Shauren
5dfac0ef14
Core/SAI: Implement waiting for actions on action list to finish before continuing the action list
...
This is enabled by setting event_flags to SMART_EVENT_FLAG_ACTIONLIST_WAITS on the action that is waited for
Supported actions:
* SMART_ACTION_TALK
* SMART_ACTION_SIMPLE_TALK
* SMART_ACTION_CAST
* SMART_ACTION_SELF_CAST
* SMART_ACTION_INVOKER_CAST
* SMART_ACTION_MOVE_OFFSET
* SMART_ACTION_WP_START
* SMART_ACTION_MOVE_TO_POS
* SMART_ACTION_CROSS_CAST
* SMART_ACTION_ACTIVATE_TAXI
* SMART_ACTION_JUMP_TO_POS
* SMART_ACTION_START_CLOSEST_WAYPOINT
2024-04-14 14:28:40 +02:00
Meji and Shauren
2ce4068459
Core/SAI: Added support for StringIds to creature and gameobject targets ( #29910 )
...
Co-authored-by: Shauren <[email protected] >
2024-04-11 10:15:46 +02:00
Shauren
f1b7ca1a91
Fix codestyle
2024-04-03 16:31:39 +02:00
Shauren
22e43917ab
Core/SAI: Allow gameobjects to be targeted by spell casts
2024-04-03 16:21:15 +02:00
Shauren
a748fddfa4
Core/Creatures: Implemented CREATURE_STATIC_FLAG_4_NO_MELEE_APPROACH and fixed CREATURE_STATIC_FLAG_NO_MELEE_FLEE implementation (should cause fleeing from melee range)
2024-02-22 15:47:11 +01:00
Shauren
888ccd1e44
Core/SAI: Fixed SMART_ACTION_MOVE_TO_POS and SMART_ACTION_JUMP_TO_POS using target coordinates as destination if requested WorldObject target was not found
2024-02-15 19:15:21 +01:00
ModoX
12186ef857
Core/Waypoints: Refactor to split data into path and node related info in db ( #29506 )
2024-01-05 17:56:19 +01:00
Meji
37eb2e64a6
Core/AreaTriggers: Refactor ( #29500 )
...
* Moved IsServerside to custom flags
* Flags moved from areatrigger_template to areatrigger_create_properties
* New field to create custom CreateProperties (IsCustom)
* New field to reference custom areatriggers (IsAreatriggerCustom)
* Moved fields for shape data to areatrigger_create_properties
2023-12-30 17:14:09 +01:00
Meji
b8ce70d528
Core/SAI: Moved event_flags for difficulties to new field Difficulties ( #29377 )
2023-10-30 09:53:52 +01:00
Teleqraph and Shauren
88ff97c1f9
Core/Units: Added helper functions to modify UNIT_FLAG_UNINTERACTIBLE ( #29159 )
...
Co-authored-by: Shauren <[email protected] >
2023-07-20 19:09:27 +02:00
Meji
d015711fbb
Core/SAI: Implemented new source type SMART_SCRIPT_TYPE_EVENT (3) ( #28816 )
2023-07-09 11:59:35 +02:00
Meji
76d2f29e4e
Core/SAI: Fixed event SMART_EVENT_WAYPOINT_ENDED ( #29025 )
...
* also moved "any" pointid to 0xFFFFFFFF for waypoint sai events:
* SMART_EVENT_WAYPOINT_REACHED
* SMART_EVENT_WAYPOINT_RESUMED
* SMART_EVENT_WAYPOINT_PAUSED
* SMART_EVENT_WAYPOINT_STOPPED
* SMART_EVENT_WAYPOINT_ENDED
2023-06-24 19:21:37 +02:00
ModoX
356c98579b
Core/SAI: Drop waypoints table and move existing rows to waypoint_data table ( #28834 )
2023-04-08 01:33:05 +02:00
Meji
81ea6f54d9
Core/Creatures: Compute CombatReach and BoundingRadius using DisplayScale ( #28863 )
2023-03-30 18:54:27 +02:00
Shauren
d26d38075c
Core/Creatures: Allow disabling melee attacks for all creatures, not just the ones using SAI
2023-03-13 20:22:47 +01:00
Meji
7b14b9ef22
Core/SAI: Set the trigger player as baseobject when the source type isn't a WorldObject ( #28767 )
2023-01-31 19:38:34 +01:00
Shauren
d791afae1d
Core/Logging: Switch from fmt::sprintf to fmt::format (c++20 standard compatible api)
2023-01-08 21:16:53 +01:00
Shauren
d8a4668c77
Core/Misc: Add missing Containers.h include where neccessary
2023-01-06 16:44:11 +01:00
Meji
f291ca9796
Core/SAI: Improved SMART_ACTION_JUMP_TO_POS to mirror behavior similar to SMART_ACTION_MOVE_TO_POS ( #28547 )
...
* Support for targets other than positions
* Added param3 Gravity, to use MoveJumpWithGravity (priority over SpeedZ)
* Added param4 UseDefaultGravity (priority over Gravity): 19.29110527038574
* Added param5 PointId, useful for linking the jump to the event SMART_EVENT_MOVEMENTINFORM (Type: 16)
* Added param6 ContactDistance
* If the target is different from a position, target params for coords allow to add offsets
2022-12-30 17:48:33 +01:00
Aqua Deus and Shauren
09591fbdb0
Core/SAI: Add action param 7 ( #28519 )
...
Co-authored-by: Shauren <[email protected] >
2022-12-30 16:32:37 +01:00
Meji
e218f27602
Core/SAI: Added param PointId to SMART_ACTION_MOVE_OFFSET ( #28555 )
2022-12-22 23:51:49 +01:00
ModoX
204cf030cc
Core/SAI: Move (any) value for SMART_EVENT_MOVEMENTINFORM point to 0xFFFFFFFF ( #28417 )
2022-10-31 21:33:57 +01:00
Shauren
133334a902
Core/Loot: Implemented personal loot and tag sharing for non-boss loot
2022-10-17 23:11:46 +02:00
offl
b0164fb2b9
Core/SAI: Rename LeavingWorld to OnDespawn & use it in SAI ( #28059 )
...
(cherry picked from commit b9450bcdd0924ca69b5b2cc675f5c2b558ff9b47)
2022-09-05 19:43:09 +02:00
Meji
9ca8cf66e6
Core/SAI: Allow using default npc_text from gossip_menu with SMART_ACTION_SEND_GOSSIP_MENU ( #28097 )
2022-07-07 16:08:04 +02:00
Antonio Martín Berti
a4eafbd3f6
Core/SAI: Added Action SMART_ACTION_DO_ACTION for calling DoAction on target AI ( #27964 )
2022-06-08 15:50:44 +02:00
Shauren
51299ab886
Core/SAI: Corrected wrong useSaiTargetAsGameEventSource logic in previous commit
2022-04-24 16:21:29 +02:00
Shauren
9d0187dd56
Core/SAI: Implemented new action SMART_ACTION_TRIGGER_GAME_EVENT
2022-04-24 15:02:40 +02:00
Shauren
b8246d1ba7
Core/SAI: Support gameobject targets for SMART_ACTION_PLAY_ANIMKIT
2022-04-24 14:35:38 +02:00
Shauren
b47185cabf
Core/Misc: Rename AddXXXFlag updatefield functions to SetXXXFlag
2022-03-27 18:14:47 +02:00
Shauren
4eba978670
Core/Misc: Rename SetXXXFlags updatefield functions to ReplaceAllXXXFlags
2022-03-26 18:59:44 +01:00
offl
050f55b62f
Core/AI: OnSpellCast, OnSpellFailed, OnSpellStart hooks ( #27704 )
...
(cherry picked from commit 3dca705acc953d20e4a43d4c2b3c97a84e5ab346)
2022-03-26 15:15:46 +01:00
offl
8b7effa4cf
Core/SAI: Remove SMART_ACTION_ADD_AURA & actions to change object flags ( #27571 )
...
(cherry picked from commit 5ba93a95de911277908596d805e7fa7f38a18c3a)
2022-03-24 23:52:32 +01:00
offl
52bb230e4c
Core/SAI: Use GetBaseObject as second param of SMART_ACTION_ACTIVATE_GAMEOBJECT & reorder GameObjectActions ( #27461 )
...
(cherry picked from commit 87cb0a4212535731749aebb2d3fe8f5c3000be92)
2022-03-24 21:55:46 +01:00
offl
9ea8cdb457
Core/SAI: Remove SMART_ACTION_SEND_GO_CUSTOM_ANIM, make SMART_ACTION_ADD_AURA & SMART_ACTION_SET_GO_FLAG deprecated ( #27452 )
...
(cherry picked from commit 77098375396a3b067cf06174bd464f65d7e0cd50)
2022-03-24 21:48:47 +01:00
offl
e27724b362
Core/SAI: Remove deprecated events and actions ( #27258 )
...
(cherry picked from commit c508203895517885d09bbea0ae39da700f49708c)
2022-03-21 23:26:47 +01:00
offl
ebcd45b7e1
Core/SAI: Remove reactState param from SMART_ACTION_WP_START ( #27255 )
...
Ref #26728
(cherry picked from commit 04909bada85d4770a58a5b2b6f2180f5aacb1b81)
2022-03-21 23:02:31 +01:00
Giacomo Pozzoni
791b759332
Core/SAI: Add SMART_ACTION_ACTIVATE_GAMEOBJECT action ( #27216 )
...
Closes #27196
(cherry picked from commit 0817be8f76dead48e2c0eeb7d5a7434a452f0dcf)
2022-03-21 22:59:21 +01:00
offl
29190e5642
Core/SAI: Remove deprecated events and actions ( #27039 )
...
(cherry picked from commit 887605d945fd2330865e84fd066a84e6f4570149)
2022-03-20 00:13:00 +01:00
offl
e80777cb39
Core/SAI: Split set/remove unit_flags actions ( #26954 )
...
(cherry picked from commit 0a2fca1aed4f2926c73f906769ff92918f7e2dbd)
2022-03-18 00:04:03 +01:00
offl
f55e86d907
Core/SAI: Remove possibility to set/remove unit_flags2
...
So far I see that only Cannot Turn flag can be changed by scripts and action to change it didn't existed in 3xx. If someone will need to change that flag, it should be implemented by action which will change only that flag and not any flag of that type.
(cherry picked from commit c8061d8ba620e78c1344ad5f2d476d7d6e5057cb)
2022-03-15 23:59:35 +01:00
offl
7d9088e9cf
Core/SAI: Remove SMART_ACTION_INSTALL_AI_TEMPLATE ( #26797 )
...
(cherry picked from commit ff8663ca1599a2103a88e719d94d91218a66dbaa)
2022-03-12 16:19:47 +01:00
offl
842eb3bdd7
Core/SAI: Remove SMART_ACTION_SET_DYNAMIC_FLAG ( #26783 )
...
(cherry picked from commit b3449158b1978963abf93f5041134226d1e7e0e6)
2022-03-12 01:20:06 +01:00
jackpoz
fc3e26fdfe
Core/SAI: Temporarily allow SMART_ACTION_WP_START to specify parameter value 3 for reactState
...
(cherry picked from commit 60379cf2c15d9cee1414fbaec2b217b89b8dc67e)
2022-03-11 19:03:36 +01:00