Andrew
ac6dea6df3
fix(Scripts/Commands): Fix crash in unstuck command ( #21846 )
2025-04-02 19:22:55 -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
Anton Popovichenko
3406cb03b3
fix(Core/Tickets): Fix crash in ticket complete command. ( #21665 )
2025-03-07 21:52:47 +01:00
Takenbacon
4cd1ed2181
refactor(Core/Server): Improvements to antidos opcode handling ( #21502 )
2025-02-21 07:17:34 +01:00
Takenbacon
58d13e69e1
fix(Core/Grids): Standardize grid coordinates ( #21479 )
2025-02-18 07:16:36 +01:00
iThorgrim
e28384b059
feat(Core/Scripting): Add new hooks for Ticket ( #21238 )
2025-02-17 03:26:05 +01:00
Takenbacon
ee69a569c4
fix(Core/Grids): Grid improvements ( #20955 )
2025-02-14 22:11:27 +01:00
Takenbacon
edcfaeb845
refactor(Core/World): Create WorldSessionMgr to split session logic out of World ( #21400 )
2025-02-13 07:04:38 +01:00
Anton Popovichenko
f6a0433297
feat(Core/Arena): Add support for arena seasons completion with progression in runtime. ( #19858 )
...
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com >
2025-02-12 07:09:31 -03:00
Kitzunu
787b4e4efe
fix(CI/Codestyle): correct double semicolon check ( #21388 )
2025-02-10 20:24:28 +01:00
Exitare
ff4d1ef053
chore(Core/EventMgr): Align code to Code standard & improve LoadFromDB function ( #21151 )
...
Co-authored-by: Jelle Meeus <sogladev@gmail.com >
Co-authored-by: Ludwig <sudlud@users.noreply.github.com >
2025-02-07 14:25:07 +01:00
Kitzunu
47c5ff904f
refactor(Core/Disables): Convert from Namespace to Class Structure ( #21109 )
2025-02-01 22:48:52 +01:00
Kitzunu
9e9a2fe5e3
refactor(Core/ObjectMgr): Change GetAcoreString from char const* to s… ( #21213 )
...
...ring
2025-02-01 22:46:42 +01:00
Jelle Meeus
00b8a3f419
feat(Core/WorldState): implement Battle for Sun's Reach Event ( #21219 )
...
Co-authored-by: killerwife <killerwife@gmail.com >
Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com >
Co-authored-by: MantisLord <sabinprosper@gmail.com >
2025-01-31 13:19:12 +01:00
Kitzunu
9b3d54dd60
refactor(Core/Motd): improve and simplify ( #21252 )
2025-01-27 11:07:46 +01:00
Kitzunu
0733c30471
refactor(Core/Player): Improve Channel.RestrictedLfg handling ( #21145 )
2025-01-21 19:09:31 +01:00
Kitzunu
cdbc510cf0
fix(Script/WP): correct output of wp show command ( #21193 )
2025-01-17 10:28:30 +01:00
Kitzunu
12aa9dc12c
fix(Core/Misc): Resolve output formatting issues with fmt library ( #21191 )
2025-01-17 10:27:46 +01:00
Andrew
07937d34da
feat(Scripts/Commands): Implement opendoor command ( #21136 )
2025-01-10 20:48:58 -03:00
Andrew
3e465ddedc
feat(Scripts/Commands): Update GetBossState to display all states ( #21134 )
2025-01-10 20:43:11 -03:00
Kitzunu
4b8dca1ea2
fix(Core/Misc): Correct some fmt logs ( #21106 )
2025-01-07 06:08:19 +01:00
Exitare
b4d04b1af1
refactor(Core/Event): Load event vendors seperatly ( #20906 )
2024-12-22 09:44:50 +01:00
Kitzunu
1462d1ae39
fix(Script/Command): Allow guid for npc move and delete ( #21008 )
2024-12-22 09:42:21 +01:00
Exitare
325c208b7c
feat(Scripts/Command): Update gm fly to behave like a toggle ( #20925 )
2024-12-18 05:50:33 +01:00
Exitare
7fd8b04a56
feat(Core/Motd): Allow localized motd ( #20542 )
...
* Initial commit for localized motd
* Rename function that created world packages
* Update to satisfy code check
* Update code to accomodate localized motd
* Update command to support multiple optionales & adjusted db
* Code cleanup
* Update sql name
* Fix codestyle issues
* Remove hardcoded schema
* Add check for valid player in reload command
* Update to better code style
* Add missing include
* Fix redundant code usage
* Add missing include
* Remove sql files and create new rev sql files
* Address minor code reviews
* Fix code style
* Update code to address code revisions.
- Remove two unused functions
- Remove map
- Use available function to resolve LocaleConstant
* Fix code style
* Add check for base motd and update locale to DEFAULT_LOCALE
* Code docs
* Removed some docs, readd defaultd motd formatting
* Fix oversight in variable declaration
* Code style fix
* Update code based on code review
* ready for merge
* Fix set motd command due to changes to DEFAULT_LOCALE
* Fix CI
* Fix trailing whitespace
---------
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
2024-12-15 19:50:02 +01:00
Kitzunu
ed008a8780
refactor(Core/Spells): Add helpers for HasAuraType ( #20802 )
2024-12-01 08:50:59 -03:00
Tereneckla
ae4e673713
fix(Scripts/Commands) fix formatting in server debug ( #20801 )
2024-12-01 11:11:23 +01:00
Kitzunu
5e4f6ac576
fix(Script/Commands): tele add should only check exact match ( #20785 )
...
* fix(Script/Commands): tele add should only check exact match
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/20268
* better describe the variable
2024-11-30 20:06:26 -03:00
Francesco Borzì
a9f0f371e5
refactor(src/server/game): optimise imports ( #20541 )
2024-11-13 11:37:20 +01:00
Francesco Borzì
b2ddd10369
refactor(src/server/scripts): remove unused imports ( #20540 )
2024-11-13 06:35:15 +01:00
Andrew
f8d53d4cd8
fix(Scripts/Commands): Fix crash when using npc set origin faction wi… ( #20536 )
2024-11-12 19:39:48 +01:00
Andrew
3866c35f2f
fix(Scripts/Commands): Remove Spirit of Redemption when using Revive … ( #20492 )
...
fix(Scripts/Commands): Remove Spirit of Redemption when using Revive command
2024-11-10 15:02:02 -03:00
Francesco Borzì
c06cadfe75
refactor(src/common|server): remove unused import (big part 1) ( #20377 )
...
* refactor(src/common|server): remove unused import (big part 1)
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: attempt to fix damn linkin error
2024-10-31 21:46:11 +01:00
Francesco Borzì
2c344fc127
refactor(src/server/game/*): remove unused imports (big part 2) ( #20311 )
2024-10-27 05:06:14 +01:00
Angelo Venturini
9487b30ad7
refactor(Core/Misc): Use emplace_back instead of push_back to avoid extra copy/m… ( #20114 )
...
refactor: Use emplace_back instead of push_back to avoid extra copy/move operations
2024-10-10 21:55:58 +02:00
Francesco Borzì
5a96ce283d
refactor(Scripts): remove unused imports ( #20086 )
2024-09-29 13:20:21 +02:00
Benjamin Jackson
7790b2258b
feat(Core/Commands): Add debug command for applying a spell cooldown. ( #20004 )
...
* Init.
* Correct wrong query characters.
2024-09-22 00:28:11 +02:00
Kitzunu
d227ed91c2
fix(Scripts/Commands): Prevent crash if you use doublequotes in go cr… ( #20012 )
...
fix(Scripts/Commands): Prevent crash if you use doublequotes in go creature name
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/20010
2024-09-21 18:30:58 -03:00
Benjamin Jackson
07c54fe8c7
fix(DB/Command): Add help values for various commands. ( #19984 )
...
Init.
2024-09-16 12:12:26 -03:00
Andrew
ee6e74eb3c
fix(Scripts/Commands): Fix level up achievements not being granted ( #19969 )
2024-09-15 15:55:45 -03:00
天鹿
e7448f2986
fix(Scripts/Commands): .gps formatting transport offset ( #19890 )
...
* Update cs_misc.cpp
* Update PlayerUpdates.cpp
2024-09-07 01:03:41 -03:00
Jelle Meeus
89b08dd5dc
fix(Scripts/Commands): .gps formatting transport offset ( #19888 )
...
fix transport offset
2024-09-06 19:43:12 -03:00
Benjamin Jackson
1edac37ac3
refactor(Core): Make more use of helpers. ( #19835 )
...
* Init.
* Reword.
* Update codestyle script.
Co-Authored-By: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
* Add gameobject type ID check, reorder checks.
* Add helper/codestyle check for unit type.
* `IsUnit()` -> `IsCreature()`
* Add `IsUnit()` method.
* Use type mask.
https: //github.com/TrinityCore/TrinityCore/commit/cc71da35b5dc74abf71f8691161525a23d870bb5
Co-Authored-By: Giacomo Pozzoni <giacomopoz@gmail.com >
Co-Authored-By: Ovahlord <18347559+Ovahlord@users.noreply.github.com >
* Replace instances of `isType` with `IsUnit`.
---------
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com >
Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com >
Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com >
2024-09-03 14:41:31 -03:00
Kitzunu
de2bcbdabf
refactor(Core/Misc): Acore::StringFormat to fmt format ( #19838 )
...
refactor(Core/Utilities): Acore::StringFormat to fmt format
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/10356
2024-09-03 07:59:37 -03:00
Andrew
7e2ffc2db8
feat(Scripts/Commands): Implement "pct" optional to the damage command ( #19745 )
2024-08-27 22:28:09 +02:00
Grimdhex
643362d697
refactor(Core/Object): adds consistency in the use of type object check ( #19671 )
2024-08-25 09:57:37 -03:00
Andrew
1565758da4
Revert "chore(Script/Misc): cleanup" ( #19627 )
...
Revert "chore(Script/Misc): cleanup (#19619 )"
This reverts commit 7ff8f72397 .
2024-08-15 05:43:11 +02:00
Kitzunu
7ff8f72397
chore(Script/Misc): cleanup ( #19619 )
...
* chore(Script/Misc): cleanup
* more cleanup
* cleanup
2024-08-14 16:29:50 -03:00
Kitzunu
2e02c76399
fix(Core/Creature): quest_greeting_locale ( #19615 )
...
* fix(Core/Creature): quest_greeting_locale
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/14845
2024-08-13 21:09:36 +02:00
Kitzunu
4b63aa9015
feat(DB/Module): introduce module_string table ( #19475 )
2024-08-13 19:53:16 +02:00