Commit Graph

105 Commits

Author SHA1 Message Date
hondacrx 3126ac721d Core/SAI: silence wrong SAI error when using SMART_ACTION_SET_DATA on a creature using CreatureAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e8c1adcf8f28a7ce90113175c732b98556c6bbb8)
2021-12-24 20:51:13 -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 2cbed03883 Core/SAI: don't allow to start a new SAI actionlist while the entity is already running one.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e846d4c3ef04d75839325409df109156d8ccced0)
2021-12-22 20:09:35 -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 c37e1c9f7d gameobject summoner
Port From (https://github.com/TrinityCore/TrinityCore/commit/5f545f540216d3b94c26e4aeda50c8bb8d5c3d74)
2021-12-07 20:42:47 -05:00
hondacrx 7bb87b1a8e Core/SAI: Fixed crash when using SMART_TARGET_CLOSEST_* in areatrigger smart script
Port From (https://github.com/TrinityCore/TrinityCore/commit/198d18bef5d3480cb30c80e4a4946327f401a6d4)
2021-12-07 16:59:57 -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 b026ee7ef8 More cleanups of custom classes in favor of .NET runtime types. 2021-11-15 18:04:57 -05:00
hondacrx 6f27d79873 Core/CreatureTexts: Added new field SoundPlayType to enable usage of ObjectSounds within creature_text
Port From (https://github.com/TrinityCore/TrinityCore/commit/437fb2aaba8850dd81a15d661c82403be9170c4e)
2021-11-02 14:00:01 -04:00
hondacrx 26940fa650 Core/AI: Clean up charm AI handling.
Port From (https://github.com/TrinityCore/TrinityCore/commit/e4e8c1c59c8b37216814526b4d2551f23934f465)
2021-10-31 13:55:26 -04:00
hondacrx faa2360995 Scripts/SmartScripts: _SET_IN_COMBAT_WITH_ZONE and _CALL_FOR_HELP no longer use a target. Because that feature made no sense and was unused.
Port From (https://github.com/TrinityCore/TrinityCore/commit/f6ceb4bf0c5f95c043e90708e9369f7199a4201b)
2021-10-30 20:21:02 -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 6c896fdb21 Fixed Build. 2021-10-10 14:06:22 -04:00
hondacrx 9aeccb6444 Core/SAI: Fixed SMART_ACTION_EQUIP to properly set values in all slots
Port From (https://github.com/TrinityCore/TrinityCore/commit/d2dcce09d714439ee7f4836443e53ab98490cccc)
2021-10-10 09:56:02 -04:00
hondacrx a1459617e6 Core/Conversations: Replace _participants with generic personal object implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/3fe9b0a2961b60509d11dd38a90e7b7657b68084)
2021-10-10 09:55:16 -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 53349a5771 Misc fixes 2021-09-26 14:30:08 -04:00
hondacrx 365da29692 Core/SAI: Fixed crashes when SAI targets pets that use sai if not tamed
Port From (https://github.com/TrinityCore/TrinityCore/commit/334b02e1daeac7be31ed3ce855a5ff221add80aa)
2021-09-26 13:14:14 -04:00
hondacrx ba423331de Core/SAI: Allow movements for creature using castflag 64 when silenced
Port From (https://github.com/TrinityCore/TrinityCore/commit/c0cb8fc1fe8e2079b9ae0f345e5d4ad2b1bfa730)
2021-09-26 11:40:39 -04:00
hondacrx 4c08eebc49 Fixed two crashes 2021-09-04 20:53:47 -04:00
hondacrx 949d4806c5 Core/Spells: rework part 5: GameObject casting
Port From (https://github.com/TrinityCore/TrinityCore/commit/962f6d7988b9003e550f6745be7cff812e9d8efa)
2021-08-29 18:27:08 -04:00
hondacrx 08db42917e Core/SmartScripts: Rename SMART_ACTION_RESPAWN_TARGET -> SMART_ACTION_ENABLE_TEMP_GOBJ, since that's the only thing it still does in the dynspawn model. Adjust body accordingly to warn on misuse.
Port From (https://github.com/TrinityCore/TrinityCore/commit/32997a598992c5be7ad838b52b9e9a185d68d9fb)
2021-08-09 09:57:11 -04:00
hondacrx 06a189e5e6 AI/SmartAI: New SMART_ACTION_RESPAWN_BY_SPAWNID
Port From (https://github.com/TrinityCore/TrinityCore/commit/61baf6704cf4f31b8b5f24d627d315659336c992)
2021-08-09 09:47:23 -04:00
hondacrx 515ae6ed12 Core/SAI: Add an action_param3 to "summon gob" to control when the object will despawn
Port From (https://github.com/TrinityCore/TrinityCore/commit/4b6e76a5efe5e48ff20b4ef84e0f3dc0f9bc84a0)
2021-06-23 23:50:55 -04:00
hondacrx d485bf97ec Scripts/SmartAI: SetData now has an invoker (if the setting is done by something using SmartAI).
Port From (https://github.com/TrinityCore/TrinityCore/commit/37298ca99cce901bd358c536b34aee879f72f900)
2021-06-23 23:36:38 -04:00
hondacrx 751d397031 Entities/GO: Add forceRespawnTimer support to DespawnOrUnsummon. Use it in SAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/168be492f5924d306a90e7f8dfd86a6c547da3d7)
2021-06-23 23:09:48 -04:00
hondacrx 05c8b7adec Entities/GO: GameObjects now support (delayed) despawning in a reasonable manner.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bccd81e12ac418d2ba76c1cd6470c813a4d19229)
2021-06-23 22:58:03 -04:00
hondacrx d12ae8cde2 oops, now it builds (and a bonus refactor that annoyed me)
Port From (https://github.com/TrinityCore/TrinityCore/commit/bd158f6c29581e08633c3971a130b0720f90b630)
2021-06-23 22:51:38 -04:00
hondacrx 4206c48aaa Scripts/SmartAI: Forward invoker to invoked action list actions. Also JustAppeared -> InitializeAI.
Port From (https://github.com/TrinityCore/TrinityCore/commit/1f26122528ad31a9dedbfcf5c1029cf750dfd1d4)
2021-06-23 22:48:37 -04:00
hondacrx fc49a98dab Scripts/SmartAI: SMART_TARGET_INVOKER cleanup step 1. The core will now log errors on start-up if SMART_TARGET_INVOKER abuse is found, but will continue to load the scripts as deprecated for now.
Port From (https://github.com/TrinityCore/TrinityCore/commit/06b5b8d8b7ac3da65013ccc0f03599ee9dee2163)
2021-06-23 22:41:44 -04:00
hondacrx a34469c171 Core/Entities: don't allow client control if player is still affected by any lose of control state
Port From (https://github.com/TrinityCore/TrinityCore/commit/d0f4310c4417fb5dc8e89061adf4ce113caa4227)
2021-06-23 14:39:59 -04:00
hondacrx 84d05548f2 Core/Entities: killed Creature::SetInCombatWithZone and replaced with AI version
Port From (https://github.com/TrinityCore/TrinityCore/commit/c77925da4a320df5be5eaeb1fc799df50e22c041)
2021-06-23 14:15:43 -04:00
hondacrx be2f4087b7 Core/SAI: Extended SMART_TARGET_VEHICLE_PASSENGER to allow specifying seat mask instead of single seat index (can now target all passengers)
Port From (https://github.com/TrinityCore/TrinityCore/commit/172df39350391e4fa2e40515d288e7e4e6b9cc91)
2021-06-22 20:55:38 -04:00
hondacrx 9851142796 Core: Combat/threat system rewrite
Port From (https://github.com/TrinityCore/TrinityCore/commit/34c7810fe507eca1b8b9389630db5d5d26d92e77)
2021-05-18 12:25:40 -04:00
hondacrx d0faa12ef6 Core/Spells: CastSpell Cleanup
Port From (https://github.com/TrinityCore/TrinityCore/commit/)
2021-04-18 18:42:11 -04:00
hondacrx c1c9dbb762 Core/Spells: Add missing privateObjectOwner support to Spell::SummonGuardian
Port From (https://github.com/TrinityCore/TrinityCore/commit/46a81ea1f440b91611bc7b849ac09d523a041878)
2021-03-29 17:34:15 -04:00
hondacrx 98f9fdaf53 Core/Objects: Pass privateObjectOwner guid directly to SummonCreature functions
Port From (https://github.com/TrinityCore/TrinityCore/commit/33b3ebcae67870f704d86d30aa357781b33bb411)
2021-03-29 17:31:48 -04:00
hondacrx 62ec699ec6 Core: SOme code cleanup, more to follow. 2021-03-20 22:48:48 -04:00
hondacrx cdfba27105 Core/SAI: Don't require BaseObject when creating conversation from smart scripts
Port From (https://github.com/TrinityCore/TrinityCore/commit/c019d4f10c47612aea49a8b081f367df00ca7c97)
2021-03-08 14:28:45 -05:00
hondacrx 8ada9c99e7 Core/SAI: Implement quest source for SAI
Port From (https://github.com/TrinityCore/TrinityCore/commit/1b4c4d216478c57a562247815dfba0e5d2c9f192)
2021-03-08 14:17:23 -05:00
hondacrx 707a1e0dda fix build. 2021-03-04 15:38:07 -05:00
hondacrx a43e8468dc Core/SAI: Add event_parm5 "player only" for EVENT_OOC_LOS and EVENT_IC_LOS
Port From (https://github.com/TrinityCore/TrinityCore/commit/77ee6dca456110336700460b25273a4de8061248)
2021-03-04 15:37:34 -05:00
hondacrx b2041b1a58 Core/SAI: Add SAI action to create a conversation
Port From (https://github.com/TrinityCore/TrinityCore/commit/0996d60944dba87f89f393541c009dedeccb45a4)
2021-03-04 13:38:23 -05:00
hondacrx 834d2fa270 Core/SAI: Added new Flags argument for SMART_ACTION_SUMMON_CREATURE
Port From (https://github.com/TrinityCore/TrinityCore/commit/e0278f05379ed470be8264d3f362360a52b3454d)
2021-02-13 20:57:06 -05:00
hondacrx ce9ba7014d Core/SAI: Add missing AreaTrigger to SmartScript::GetBaseObject
Port From (https://github.com/TrinityCore/TrinityCore/commit/17676d4d415d4f07d6988d318c56cb3e246dc854)
2021-02-09 13:04:45 -05:00
hondacrx cf030b70b2 Core/SAI: Added SAI support for new areatriggers
Port From (https://github.com/TrinityCore/TrinityCore/commit/875fd4107f29c00f148ea77c6ff6d49f7ca92b76)
2021-02-09 11:29:50 -05:00
hondacrx 0e77439e20 Core/Misc: waypoint movement
Port From (https://github.com/TrinityCore/TrinityCore/commit/bf12bae46746149d870cd3e52ccd610f0a975047)
2021-02-04 10:32:48 -05:00