Commit Graph

77 Commits

Author SHA1 Message Date
M'Dic
8aa2a2ac0f chore (core): Clean up (#15977)
* chore (core): Clean up

* Update SmartScript.cpp

* more clean up

* Update boss_xt002.cpp
2023-04-16 21:04:56 -04:00
Skjalf
f3c63f9662 feat(Core/SAI): Implement SMART_ACTION_SET_GUID (#15978)
* feat(Core/SAI): Implement SMART_ACTION_SET_GUID

* Update SmartScript.cpp

* Update src/server/game/AI/SmartScripts/SmartScriptMgr.h

* Update SmartScript.cpp
2023-04-16 21:00:44 -03:00
avarishd
2bdf5467b4 fix(Core/SAI): Remove duplicated GO_STATE (#15530)
* fix(Core/SmartScripts): Remove duplicated GO_STATE

* comment in/out some stuff
2023-03-23 08:05:28 -03:00
Skjalf
8a39bd050a feat(Core/SAI): Implement SMART_TARGET_INSTANCE_STORAGE (#14981) 2023-02-13 00:53:20 +01:00
Skjalf
dba8c49bce chore(Core/Object): Rename GetGOData() to GetGameObjectData() (#14875) 2023-02-05 08:35:52 -03:00
Skjalf
968bb3fa7e chore(Core/SAI): Align SAI headers with TrinityCore (#14261) 2022-12-17 17:23:22 -03:00
UltraNix
95652e14d5 fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUM… (#13880)
* fix(Core/SmartScripts): Implemented new target type: SMART_TARGET_SUMMONED_CREATURES.

Fixes #13787

* Update.

* Update.
2022-12-06 09:41:05 -03:00
Malcrom
972bcc3113 Feature(Smart Scripts/SMART_EVENT_RANGE): Proper fix to prevent Initial timer (#13059)
* Feature(Smart Scripts/SMART_EVENT_RANGE): Proper fix to prevent Initial timer

* Update SmartScript.cpp
2022-09-19 15:35:34 -04:00
Angelo Venturini
1e77b9575f fix(Core/SAI): Unused parameters warnings (#12620) 2022-08-05 14:45:03 -03:00
ZhengPeiRu21
2d4e93dc3e fix(Core): SMART_ACTION_SET_HOME_POS should accept a parameter (#12468) 2022-07-22 21:20:14 -04:00
IntelligentQuantum
6ac7dfa26f refactor(Core/SmartScripts): GetTargets returns ObjectList instead of ObjectList* (#11950) 2022-07-18 11:15:57 +02:00
UltraNix
65e02d9422 fix(Core/SmartScripts): Added option to override current running time… (#12298)
fix(Core/SmartScripts): Added option to override current running timed actionlist.

Fixes #12227
2022-07-03 11:22:25 -04:00
Kitzunu
90fccacad5 feat(Core/Movement): Allow waypoints to use 0 as valid facing value (#11681)
* feat(Core/Movement): Allow waypoints to use 0 as valid facing value

* cherry-pick commit (4747515872)

Co-Authored-By: Ovah <18347559+Ovahlord@users.noreply.github.com>

* Update SmartScriptMgr.h

* a

* Update SmartAI.cpp

* Update SmartAI.cpp

* Update SmartAI.cpp

* typo

* Update SmartAI.cpp

* Update SmartAI.cpp

* Compile fix

* compile #2

* Update WaypointMgr.h

* Update SmartScriptMgr.h

* compile fix again

Co-authored-by: Ovah <18347559+Ovahlord@users.noreply.github.com>
Co-authored-by: MDIC <joshua.lee.betts@gmail.com>
2022-05-21 23:42:41 +02:00
UltraNix
f7214e24ea feat(Core/SmartScripts): Improvements to SMART_EVENT_FRIENDLY_HEALTH_PCT: (#11171)
* Added new parameter: radius.
* The event can be used with SMART_TARGET_SELF and SMART_TARGET_ACTION_INVOKER target types.
* Closes #5270
2022-04-18 19:35:37 +02:00
IntelligentQuantum
e38a17d2da feat(Core/SmartScripts): SMART_EVENT_EVENT_PHASE_CHANGE (#10054)
* cherry-pick commit (619a5534c5)
2022-04-17 01:55:52 +02:00
acidmanifesto
db360f0cfb Fix (Core\DB) Hostil to Hostile spelling fix (#11399)
* Fix (Core) Hostil to Hostile spelling fix

* sql cmd adjustment as well

* AliGnZ

* Further Hostil to Hostile Correction

Per @Si1ker  Research via https://github.com/azerothcore/azerothcore-wotlk/pull/11399#issuecomment-1099506373
2022-04-16 11:00:38 -04:00
IntelligentQuantum
dfa2198d98 feat(Core/SmartScripts): SMART_EVENT_ACCEPTED_QUEST, SMART_EVENT_REWARD_QUEST (#10210) 2022-03-27 15:19:27 +02:00
Bogir[rus]
75439773d0 fix and bringing to a unified style warnings of server loading logs to be more visible at server startup (#10970) 2022-03-12 04:57:26 -03:00
acidmanifesto
a7d17a5bb6 fix (core\db): SAI Error Reporting (#10698)
* fix (core\db): SAI Error Reporting

* formatting
2022-02-15 17:00:33 -05:00
IntelligentQuantum
38a33e7ef0 feat(Core/SmartScripts): Warn when an unused parameter is set in the database (#10124) 2022-02-15 18:02:39 +01:00
UltraNix
5febb28b4c fix(Core/SmartScripts): SMART_ACTION_SET_CORPSE_DELAY, SMART_ACTION_DISABLE_EVADE and SMART_ACTION_GO_SET_GO_STATE are valid actions. (#10538) 2022-02-11 22:33:18 +01:00
Kargatum
de13bf426e feat(Core/DBLayer): replace char const* to std::string_view (#10211)
* feat(Core/DBLayer): replace `char const*` to `std::string_view`

* CString

* 1

* chore(Core/Misc): code cleanup

* cl

* db fix

* fmt style sql

* to fmt

* py

* del old

* 1

* 2

* 3

* 1

* 1
2022-02-05 00:37:11 +01:00
IntelligentQuantum
9fadfa6499 feat(Core/SmartScripts): SMART_ACTION_PLAY_CINEMATIC (#10231)
* cherry-pick commit (63aa5d1e35)
2022-01-28 23:53:27 +01:00
Kargatum
5969df4e30 refactor(Core/Logging): switch to fmt style for LOG_ (#10366)
* feat(Core/Common): add support fmt style for ASSERT and ABORT

* correct CheckCompactArrayMaskOverflow

* 1

* Update src/server/game/Spells/Spell.cpp

* rework logging

* add fmt replace logs

* logging

* FMT_LOG_

* settings

* fix startup

* 1

* 2

* 3

* 4

* 5

* fmt::print

* to fmt
2022-01-27 16:44:41 +01:00
IntelligentQuantum
df4b621527 feat(Scripts/SmartAI): SMART_TARGET_INVOKER (#9802) 2022-01-13 07:46:25 -03:00
IntelligentQuantum
e482cce164 feat(Core/SmartScripts): Add a warning when a boolean value is outside of [0,1] range (#10038) 2022-01-10 14:03:00 -03:00
IntelligentQuantum
2e6213d526 feat(Core/SmartScripts): SMART_ACTION_ATTACK_STOP #10053 2022-01-07 04:19:32 -03:00
IntelligentQuantum
c377c62c7a feat(Core/SmartScripts): Add support to friendly+hostile to SMART_EVENT_OOC_LOS and SMART_EVENT_IC_LOS (#10037)
* .

* .
2022-01-06 06:46:12 -03:00
IntelligentQuantum
2bc373b4f6 feat(Core/SmartScripts): SMART_ACTION_SET_MOVEMENT_SPEED (#10018) 2022-01-05 14:10:19 -03:00
IntelligentQuantum
e28bdf9bde feat(Core/SmartScripts): SMART_ACTION_SET_HEALTH_PCT 2022-01-05 09:38:14 -03:00
IntelligentQuantum
8fd757a152 feat(Core/SmartScripts): ACTION_GO_SET_GO_STATE 2022-01-04 06:44:02 -03:00
IntelligentQuantum
9faec8ef1b feat(Core/SmartScripts): SMART_ACTION_SET_CORPSE_DELAY 2022-01-04 06:41:19 -03:00
IntelligentQuantum
002e62d689 feat(Core/SmartScripts): SMART_EVENT_SUMMONED_UNIT_DIES (#9979) 2022-01-03 08:24:13 -03:00
IntelligentQuantum
8a5b96349b feat(Core/SmartScripts): SMART_TARGET_LOOT_RECIPIENTS (#9967) 2022-01-02 21:54:27 -03:00
Kitzunu
913e65f97f refactor(Core/Misc): fabs() to std::fabs() (#9790)
- prefer std functions over C functions
2021-12-31 20:41:00 -03:00
Kitzunu
ac99eb48e1 refactor(Core/Misc): abs() to std::abs() (#9789) 2021-12-31 19:29:39 -03:00
Francesco Borzì
cbc7e5466a refactor(Core): remove unused imports (#9767) 2021-12-19 19:41:14 +01:00
Kargatum
f62664c987 refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
acidmanifesto
0958f2f129 fix(Core/DB/SAI): [Quest] - Weapons of Spirit / Allows Value 3 for react SAI WP Start Consolidated PR (#8926) 2021-11-07 00:21:05 +01:00
acidmanifesto
93bbff4cca feat(Core/SAI): Wp table add in orientation and delay collumn (#8927)
ADD (Core) Wp table add in orientation and delay collumn
TC Cherry pick of TrinityCore/TrinityCore@4b7d19c
2021-11-06 08:43:45 -03:00
Andrius Peleckas
5d73180c61 feat(Core/SAI): implemented a new SAI action type SMART_ACTION_DO_ACTION (#8375)
* feat(Core/SAI): implemented a new SAI action type SMART_ACTION_DO_ACTION
This will give possibility to trigger certain actions on instance scripts or creatures/gobjects

* yet we still love you "blank line" xD
2021-10-14 14:06:28 +02:00
Andrius Peleckas
b5f8b485a8 feat(Core/SAI): implemented boss state handling in SMART_ACTION_SET_INST_DATA + added additional data checks (#8369) 2021-10-13 09:54:33 -03:00
Kargatum
52aa0e9966 feat(License): add new headers information about license (#7941)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-09-30 13:40:52 +07:00
Kitzunu
9ab6ba9664 chore(Core/Misc): remove toxic language (#6988) 2021-07-21 23:57:20 +02:00
Kargatum
9ac6fddcae feat(Core/Database): port TrinityCore database API (#5611) 2021-06-22 06:21:07 +02:00
Kargatum
5787d00d54 chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers

Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-06-21 03:07:12 +02:00
Kitzunu
2e32a80f24 chore(Core/SmartScript): Fix typo (#6355)
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com>
2021-06-20 01:29:30 +02:00
Kitzunu
897a02bb75 refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
Kitzunu
40f2e5e8c1 fix(Core/LoadSmartAIFromDB): Prevent loading if entryorguid = 0 (#5663)
Co-Authored-By: robinsch <8017650+robinsch@users.noreply.github.com>
2021-05-09 03:33:01 -06:00
Kargatum
4af4cbd3d9 feat(Core/Logging): rework logging (#4692)
* feat(Core/Logging): rework logging

* correct level for sql.sql

* del unused config options

* Correct build

* correct after merge

* whitespace

20:29:37 1. 'Player.cpp'. Replace (1)
20:29:37 2. 'ObjectMgr.cpp'. Replace (3)

* 1

* correct logging

* correct affter merge

* 1

* 2

* LOG_LEVEL_WARN

* #include "AppenderDB.h"

* 3

* 4

* 5

* 1. 'WorldSocket.cpp'. Replace (1)

* 6

* 1
2021-04-17 11:20:07 +02:00