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
92ed5e8af1
Core/Misc: Include cleanup, 2023 edition
2023-01-07 22:38:21 +01:00
Shauren
ba9bbbc9d0
Core/Misc: Fixed deprecation warnings for c++20
2023-01-01 00:26:53 +01:00
Shauren
fc37c42e55
Core/Misc: Added noexcept to move constructors and move assignment operators
2022-11-06 01:03:35 +01:00
Shauren
bdf22f955d
Core/Scripts: Fixed worldserver startup with hostwap enabled when ran in terminals that don't pass full path to argv[0]
2022-10-05 18:24:37 +02:00
Shauren
515c0a43ef
Core/Maps: Split Ebon Hold and Exile's reach by faction and removed forced sanctuary hack
2022-07-25 21:43:19 +02:00
Shauren
16a06346ae
Core/Maps: Move terrain data handling out of Map class
...
Partial port of cmangos/mangos-wotlk@ff5232c648
2022-07-23 19:13:33 +02:00
Shauren
073a036d84
Core/Battlefields: Refactor Battlefield creation to be linked to host map creation instead of having globally accessible objects
2022-07-19 23:18:19 +02:00
Shauren
775be0682a
Core/OutdoorPvP: Refactor OutdoorPvP creation to be linked to host map creation instead of having globally accessible objects
2022-07-18 22:45:03 +02:00
Shauren
737d94d7ef
Core/World: implement database support for default map and realm wide world states
...
Co-Authored-By: Shauren <[email protected] >
2022-06-25 22:48:27 +02:00
Ovah
8501fb572a
Core/Movement: Allow waypoints to use 0 as valid facing value ( #26655 )
...
(cherry picked from commit 4747515872775553de35cc3267e1ccd5e0076ca4)
2022-06-10 16:50:17 +02:00
Shauren
a2c1b699e6
Core/Transports: Path generation rewrite v2
...
* No TaxiPathNode row is skipped anymore (events/delays on first node now work)
* Fixed transport animation synchronization with client
* Fixed stoppable transports randomly resuming their path after relogging
Closes #27985
2022-06-07 16:02:51 +02:00
offl
7a0268d4f1
Core/Scripting: Get rid of ModifyVehiclePassengerExitPos ( #27126 )
...
(cherry picked from commit d7adc50daa5a20142e0f39a9f65d39869525fd0e)
2022-03-20 16:27:10 +01:00
ihm-tswow
56f0129ff3
Core/Game: Fix cache path with git flow branches ( #26494 )
...
- git flow may put forward slashes in branch names, so we cannot assume we are just creating one directory.
(cherry picked from commit 471e5af32d24f99bea987ea4705f0165c9ece4d6)
2022-03-09 14:20:25 +01:00
Kargatum
373ed8f46b
Core: whitespace cleanup, reduce double blank line to single ( #25795 )
...
* Core/Misc: fix double empty line
* worldserver.conf
(cherry picked from commit a32b6b8ac4c81128a56b282f20837fb085bdd9e7)
2022-03-05 20:07:57 +01:00
Treeston
5e013a9996
Core/ChatCommands: Add trinity_string support for chat command help
...
(cherry picked from commit 26c510775c6a1995d81b16ad7459227381801dcc)
2022-02-27 21:23:11 +01:00
Treeston
3fd2eb126c
[3.3.5] ChatCommands, the other half: chat command resolution refactor (PR #25463 )
...
(cherry picked from commit 1eca51b417678b9a48b28552925d5694105f82bb)
2022-02-27 20:08:41 +01:00
Seyden
272addbf2b
Core/Scripts: Fix Hotswap not reinitializing AIs after destroying them and then crashing due to AI being nullptr ( #27744 )
2022-02-15 22:36:48 +01:00
Shauren
ad4f4bfab7
Core/Misc: Minor game include cleanup
2022-02-13 00:49:10 +01:00
Shauren
f8ad7017dd
Core/Misc: Move (or delete) constructors and destructors to .cpp files (avoids compiling them in every file that includes them)
2022-02-12 21:36:46 +01:00
Shauren
d057e057d3
Core/Misc: Optimize ChatCommand includes (include only where neccessary)
2022-02-11 21:57:45 +01:00
Meji
27cba3f523
Core/Scripts: Added script hook to execute actions after completing an achievement ( #27718 )
2022-02-08 23:23:05 +01:00
Treeston
358dc78e47
Scripts/AreaTrigger: Rename OnlyOnceAreaTriggerScript::_OnTrigger to TryHandleOnce, and make its return value useful.
...
(cherry picked from commit 0c7f6ac89fcc5fdc7f4435a6c1b673c752eb1e41)
2022-02-05 14:53:54 +01:00
Treeston
75e5c44638
Scripts/IcecrownCitadel: correct Rimefang's script name
...
(cherry picked from commit fc3feebee9e26ec5bc21a46f37b5affe416582c6)
2022-02-05 13:32:55 +01:00
Shauren
0a1acb9c05
Scripts/Spells: Replace RegisterAuraScript with RegisterSpellScript and remove it
...
(cherry picked from commit 7d4fbf706ae19481468901ccd65c497fcabe56bf)
2022-02-04 00:27:10 +01:00
Shauren
e81b5838a6
Core/Scripts: Unify RegisterSpellScript and RegisterAuraScript macros to do the same thing and implemented passing custom arguments to spell script classes
...
(cherry picked from commit 75a6a7a0ad48874e75dd71f766dad3707341bb32)
2022-02-03 00:25:03 +01:00
Peter Keresztes Schmidt
2e3c612c80
Core/Unit: Make HandleEmoteCommand typesafe ( #25249 )
...
* Scripts/ScarletMonastery: Fix wrong emote during Headless Horseman encounter
* Scripts/HoR: Fix wrong emote during escape event
* Core/Unit: Make improve type safety of HandleEmoteCommand
Change argument type to the expected enum type Emote
* Scripts/CoS: Use SetUInt32Value to set UNIT_NPC_EMOTESTATE
UNIT_NPC_EMOTESTATE is no flag field
(cherry picked from commit 6c7837f947ff4eb5110a116a371daa6f9e2b3bbe)
2022-01-26 21:46:51 +01:00
Carbenium
eeffb310de
Core/EventProcessor: std::chrono-ify CalculateTime
...
uint64 CalculateTime(uint64 t_offset) has been replaced with Milliseconds CalculateTime(Milliseconds t_offset).
Also add the std::chrono-ified overload void AddEvent(BasicEvent*, Milliseconds, bool)
(cherry picked from commit 92a02a5c8750913f596d7e3b58bf8439cb770c28)
2022-01-24 12:00:35 +01:00
Shauren
2b312c7bd2
Dep: Switch to boost process instead of old standalone version
...
(cherry picked from commit 524d16739861d0b2279e2270e319b0c77ec9b03b)
2022-01-23 20:39:15 +01:00
Shauren and aquadeus
0d3235f569
Core/Guilds: Separate guild rank id from guild rank order
...
Co-authored-by: aquadeus <[email protected] >
2022-01-09 23:12:00 +01:00
Carbenium
49523a74a4
Battlefields: Move BF scripts out of game
...
This commit introduces the usual script interface
for battlefields.
(cherry picked from commit f7faf20254a120a90b8ee8eb55a284a6351aabc3)
2022-01-07 00:20:57 +01:00
jackpoz
c03af362c6
Core/Scripts: Show a message when aborting because two scripts have the same registered name
...
(cherry picked from commit 96df3b7adb02f763aaaa6138922bd032a75a9b9e)
2021-12-22 22:57:34 +01:00
Ujp8LfXBJ6wCPR
91a0fbbd71
Use boost::optional and boost::none instead of smelly pointer ( #24134 )
...
* Remove bad pointer usage from CharacterCache
Use TrinityCore Option type instead which is intended for this purpose. (Wrapper around boost::option until C++17 bump is finalised)
* Unify codestyle regarding TC optional type
Based upon advice from @Shauren
(cherry picked from commit 76831f1f467efe4aa26a38dc58c9eab2229bce71)
2021-12-21 15:21:39 +01:00
Ovah
5c258c1bbd
Core/Scripting: fixed build. Re-enable ModifyVehiclePassengerExitPos for CreatureScript to allow scripted creatures that already have an AI to benefit from its functionality as well
...
(cherry picked from commit f0485cea394a84e93ebacc24f3535d5eb14a4053)
2021-12-20 23:56:45 +01:00
Ovah
64fc549be8
Core/AI: call ModifyVehiclePassengerExitPos for CreatureScripts since the hook is available for that class as well
...
(cherry picked from commit ebf116e6a3381835fd2af885bd2721233485b684)
2021-12-20 23:56:31 +01:00
ccrs
6443116d5b
Scripts/ScarletMonastery: instance script cleanup ( #23889 )
...
Adapt InstanceScript into newer structure and style
Adapt existing boss scripts into newer structure and style
Improve existing boss related definitions
Should make each boss more functionally reliable, but nothing new has been added
(cherry picked from commit 06c6b30ed484850228c57313dc2c024c38e2055f)
2021-12-18 23:36:17 +01:00
Ovah
a24a5e7778
Core/Movement: add a velocity argument for the spline chain meta table (PR #23575 )
...
(cherry picked from commit 3f7b2252a1d7d89d3b5e6a43aa10692c2bc8c457)
2021-12-16 22:03:35 +01:00
Aokromes
30cec73c61
Coding standards ( #23514 )
...
* Coding standards
* revert part
(cherry picked from commit fe744977c917957e112704ccd66e228b826b3f7a)
2021-12-13 00:42:17 +01:00
Wyrserth
1edd93bc0c
Core/Script: add script hook to allow overriding of a vehicle passenger's exit position ( #23322 )
...
* Core/Script: add script hook to allow overriding of a vehicle passenger's exit position.
* Allow to change orientation, and fix nopch.
* Keep original orientation, thanks jackpoz!
* Update Unit.cpp
Code cleanup
* Update Unit.cpp
(cherry picked from commit 88c6c61b95ac2b2f911b519136770479d31de27d)
2021-12-08 23:51:07 +01:00
ccrs
672d4d6baa
Core/AI: silence a freaking annoying VS IntelliSense warning
...
(cherry picked from commit 0eb5d240fa82592ff7a4b2df81206ac49df628e2)
2021-12-05 16:19:57 +01:00
Giacomo Pozzoni
ed5ba915f1
Core/Scripts: Change PlayerScript and CreatureScript inheritance ( #23048 )
...
Remove UnitScript from PlayerScript and CreatureScript classes as that's how the original system that was PR'd worked, see https://github.com/TrinityCore/TrinityCore/pull/7867 for reference.
Please note these are used as global hooks and should really just invoke stateless functions.
If you need to hook methods from PlayerScript/CreatureScript and UnitScript, just define 2 different scripts (this is how the original system worked and how it was designed to work)
(cherry picked from commit 5b7ead65bb116195f4336934bcff830e1b2af5bb)
2021-11-23 22:54:24 +01:00
Shauren
f2456ff319
Scripts/Areatriggers: Fixed all areatrigger scripts triggering both on enter and exit instead of only on enter
2021-11-10 00:01:50 +01:00
Shauren
b13e9f9d61
Core/Misc: Fixed clang 13 warnings, gcc 11 build errors and nopch build
2021-10-25 00:05:05 +02:00
Treeston
e4e8c1c59c
Core/AI: Clean up charm AI handling, we now have two unique_ptr instead of a crapton of booleans
...
(cherry picked from commit 042f5515e4f3e52b0d2e23d9b9e147041849ce12)
2021-10-22 23:47:51 +02:00
Seyden
8f097e4425
Core/Scripts: Implement script name reloading
...
* Authored by Seyden
* Co-authored by Naios
* We thank Shauren for your helpful feedback
2021-10-22 12:52:37 +02:00
Treeston
3418a33a87
Misc: Pass std::chrono types by value everywhere.
...
(cherry picked from commit 2ef9d301f0869b443122e2ba543af054c5b0e53c)
2021-10-14 19:39:42 +02:00
Shauren
b6b46924f6
Core/Scripts: Make ObjectMgr::LoadScriptNames safe to call multiple times
2021-10-12 16:09:47 +02:00
ModoX
6d9ce8e8ba
Core/PacketIO: Implemented CMSG_CONVERSATION_LINE_STARTED ( #27036 )
...
* Added OnConversationLineStarted hook to ConversationScripts
* Added example for Defender of Azeroth conversation
2021-10-12 00:16:20 +02:00
Shauren
2d7af28e9f
Core/Transports: Store information about continent transports
2021-10-02 19:59:56 +02:00
Treeston
5c80f50734
Core/Spawning: Actually check spawn group state before processing a respawn. It feels like that is something that should've been noticed at some point.
...
Also remove CreatureScript::CanSpawn since nobody uses it, and spawn groups do the same thing.
(cherry picked from commit 94b5d9bfa1195ad7c32cf51a665b55514dac0938)
2021-08-08 21:21:34 +02:00