Kitzunu
35d8d49ce3
feat(Core/ServerMail): Add AccountFlags condition to server mail temp… ( #22549 )
2025-07-29 10:01:16 -03:00
Kitzunu
231096132c
refactor(Core/ServerMail): Refactor to Dedicated Manager Class with Multi-Item & Condition Support ( #21590 )
...
1. Core Cleanup
- Move all ServerMail logic from `ObjectMgr` into a new dedicated `ServerMailMgr` class
- Move faction logic for money from SendServerMail into the script
2. Separation of items into a new table
- Create a new `mail_server_template_items` table
- Allows to send multiple items in one mail
- Separate items per faction Alliance/Horde
3. Separation of conditions into a new table
- Create a new `mail_server_template_conditions` table
- Allows to use multiple conditions for one mail
- Available condition types
- Minimum playtime (playerLevel >= condition)
- Minimum playtime (playerPlayTime >= condition)
- Rewarded quest
- Earned achievement
- Earned reputation (playerReputation >= conditionState)
- Faction
- Race
- Class
4. Updated ServerMail loading
- Move item and condition loading to their own functions
- LoadMailServerTemplateItems()
- LoadMailServerTemplateConditions()
5. Reworked eligibility check
- Player needs to pass all conditions to be eligible for the mail
- All players are automatically eligible if no conditions exist for a server mail template.
6. Updated foreign keys
- For table `mail_server_character`, `mail_server_template_conditions`, `mail_server_template_items` foreign key with on delete cascade is added for automatic removal of entries if mail_server_template.id is deleted.
7. Database changes
- See the PR
2025-03-09 09:18:01 +01:00
Takenbacon
4d349e87b5
feat(Core/AuctionHouse): Rework auctionhouse search threading ( #20830 )
2024-12-18 15:50:26 +01:00
Francesco Borzì
2ce2c8cf3a
refactor(src/server/game/*): remove unused imports (big part 3) ( #20315 )
2024-10-27 13:10:28 +01:00
Francesco Borzì
2c344fc127
refactor(src/server/game/*): remove unused imports (big part 2) ( #20311 )
2024-10-27 05:06:14 +01:00
Winfidonarleyan
eb1ecc38a5
feat(Core/Scripting): move all script objects to separated files ( #17860 )
...
* feat(Core/Scripts): move all script objects to separated files
* Apply 5bfeabde81
* try gcc build
* again
2023-12-02 21:13:20 +01:00
天鹿
2745a98ed1
fix(Core/mail): letter paper ( #15039 )
...
Mail paper
2023-05-13 14:46:50 -03:00
Synful-Syn
6ae8b787e5
chore(Core): Debloat Mail.cpp ( #12881 )
2022-09-18 23:57:22 -03:00
Kitzunu
7ecd738674
feat(Core/Mail): Server mail ( #10628 )
2022-04-19 23:43:14 +02:00
UltraNix
73957b95f6
fix(Core/Mail): do not show expired mails in packets ( #10560 )
...
Fixed #5920
2022-03-01 13:57:37 +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
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
Kargatum
8b7df23f06
feat(Core/Time): Implement saparated manager for game time ( #8630 )
2022-01-24 17:55:00 +07:00
Kitzunu
7115f353cc
fix(Core/Mail): Include 100g in the mail for The Wrath of Neptulon ( #10093 )
...
* cherry-pick commit (cf223370f3 )
Co-Authored-By: Wyrserth <43747507+Wyrserth@users.noreply.github.com >
2022-01-14 11:55:54 +01: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
Skjalf
731d256420
refactor(Core/Cache): move the GlobalPlayerCache to its own class ( #9166 )
2021-11-18 16:53:36 +01:00
Skjalf
9330df59da
fix(Core/Mails): mails containing items not being returned if they were read and ensure mails sent by GMs are not returned ( #8095 )
2021-10-04 15:45:33 +02: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
UltraNix
a9b2ddba7a
fix(Core/Mail): cleanup pending auction sale mail ( #6022 )
2021-06-23 12:46:48 +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
UltraNix
f4c226423d
feat(Core/Misc): implement ObjectGuid class (port from TC) ( #4885 )
2021-04-25 22:18:03 +02: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
Francesco Borzì
f6a17164be
fix(Core/License): issue with old files license ( #4762 )
2021-03-17 09:46:01 -06:00
Kitzunu
28f1dc5c0c
refactor(Core): replace NULL with nullptr ( #4593 )
2021-03-02 01:34:20 +01:00
Kitzunu
dbc0ff6554
refactor(Core): sort #includes alphabetically ( #4579 )
2021-02-24 22:34:42 +01:00
Francesco Borzì
adf436c937
refactor(Core): apply clang-tidy modernize-pass-by-value ( #3823 )
2020-12-12 18:11:15 -06:00
Francesco Borzì
161302252e
refactor(Core): apply clang-tidy modernize-use-nodiscard ( #3835 )
2020-12-06 19:39:48 +01:00
Petric
d5bb6ba1c4
refactor(Core/Mail): avoid big mail loading/saving time, only load 50 mails at a time ( #3420 )
2020-10-21 15:20:32 +02:00
Kargatum
a2b26272d2
refactor(Core/Game): restyle game lib with astyle ( #3466 )
2020-10-12 10:08:15 +02:00
Kitzunu
1f89282b22
refactor(Core): NULL -> nullptr ( #3275 )
...
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
* NULL to nullptr
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com >
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com >
2020-08-31 11:55:09 +02:00
Stoabrogga
9adba482c2
feat(Core/Hook): A few new hooks ( #2671 )
2020-02-27 22:45:38 +01:00
Viste
e22d78ecd6
refactor(Core): rename namespaces and macros to acore ( #2454 )
2019-12-01 13:13:31 +01:00
Nefertumm
c15206fc15
Revert "feat(core): Ensure that all actions are compared to fixed point in time ( #1236 ) ( #1458 )" ( #1471 )
...
This reverts commit 51b8773528 .
2019-02-15 15:14:49 -03:00
Viste(Кирилл)
51b8773528
feat(core): Ensure that all actions are compared to fixed point in time ( #1236 ) ( #1458 )
...
i.e. world update start
2019-02-14 19:22:17 +01:00
Kargatum
b34bc28e5b
Core/DB: Update all locales to actual TrinityCore ( #1160 )
...
* Core/Misc Update all locales table structure to simple system. Port from TrinityCore
Co-Authored-By: Winfidonarleyan <dowlandtop@yandex.com >
* Core/Db/Gossip Update structure gossip_menu and gossip_menu_action to actual TrinityCore
* Core/DB Update Broadcast system to actual TC
* Core/Mail: implement Quest Mail Sender
* Core/Quest Split quest template locales
2019-01-13 01:56:06 +03:00
Nefertumm
dd300003e2
Update license links ( #783 )
2018-03-12 10:54:57 +01:00
Yehonal
17332304fd
Using TC structure allowing easier patches importing
2017-12-21 00:20:29 +01:00
Yehonal
b0c8eceb08
Refactoring part 2 [W.I.P]
2016-08-12 02:38:26 +02:00
Yehonal
f6eefedcd5
converted all tabs to 4 spaces
2016-06-26 19:23:57 +02:00
Yehonal
e8e94a0a66
First Commit
...
For Azeroth!
2016-06-26 10:39:44 +02:00