Jelle Meeus
82454c2261
fix(DB/Creature): Necrotic Shard is sometimes regenerating health ( #22812 )
2025-09-06 09:44:15 +02:00
Jelle Meeus
f970746c2c
fix(Scripts/WorldState): zone invasion marks self as defeated when ti… ( #22787 )
...
Co-authored-by: Killerwife <killerwife@gmail.com >
2025-09-03 20:20:30 -03:00
Benjamin Jackson
033a6e31ed
fix(Scripts/World): Swap Shard communication spell to direct cast instead of AoE. ( #22764 )
2025-09-01 22:40:12 -03:00
Andrew
c2b298eaac
fix(Scripts/SI): crash fix ( #22744 )
2025-08-28 23:43:36 -04:00
Jelle Meeus
a957b4a5b7
fix(DB/SmartAI): port Shadow of Doom script to SmartAI ( #22735 )
2025-08-27 19:32:59 -03:00
Takenbacon
73317b2706
feat(Core/Grids): Remove WorldObject separation in grid containers ( #22595 )
2025-08-09 06:36:24 +02:00
Takenbacon
1499aa51de
feat(Core/Visibility): Visibility improvements part 1 ( #22624 )
2025-08-07 16:17:45 +02:00
Jelle Meeus
b463e8c07f
fix(Scripts/World): fix windows/mac build ( #22465 )
2025-07-13 00:18:28 +02:00
Jelle Meeus
8e083fbde3
feat(Core/WorldState): init Scourge Invasion pre-wrath event ( #22286 )
...
Co-authored-by: Orozxy <crusadermeile@gmail.com >
Co-authored-by: Killerwife <killerwife@gmail.com >
Co-authored-by: Ryan Turner <AugustoMendes4426@gmail.com >
2025-07-12 20:54:18 +02:00
Benjamin Jackson
b73bdb3adc
chore(Core): Remove unused and inaccurate comment headers for various script-related files. ( #22263 )
2025-06-05 15:49:20 -03:00
Benjamin Jackson
4dfc44a69b
fix(Scripts): Use distinct sound entry for BRD L70ETC Music Doodad. ( #22029 )
2025-05-10 20:33:48 +01:00
Benjamin Jackson
52799d76f6
refactor(Core): Add definition file for area table entries. ( #22054 )
2025-05-09 15:48:02 +02:00
Benjamin Jackson
e6b203f184
refactor(Core/World): Move various worldstate related functions to worldstate class. ( #22086 )
2025-05-09 12:29:09 +02:00
Benjamin Jackson
da55f05cfc
refactor(Core/WorldState): Initial addition of world state definition file. ( #21875 )
...
Many world states had their enums from script's header and hardcoded values to their respective header file (WorldStateDefines.h)
Co-authored-by: Jelle Meeus <sogladev@gmail.com >
2025-04-26 19:31:30 +01:00
sudlud
68558e8626
fix(Scripts/Noblegarden): fix bunny transformation on egg looting ( #21957 )
2025-04-19 13:15:33 +02: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
Exitare
98ceb1c067
fix(Core/PlayerScript) Align player script function names ( #21020 )
...
Co-authored-by: sudlud <sudlud@users.noreply.github.com >
2025-02-16 14:59:41 +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
bff594c4f5
feat(Unit/Misc): HasAnyAuras() HasAllAuras() HasAuras() ( #21040 )
2024-12-26 05:51:54 -03:00
Jelle Meeus
3565e4a9eb
feat(Core/WorldState): improved WorldState scripting ( #20141 )
...
* implement world state script
based on
0b87ca9d9e
Co-authored-by: killerwife <killerwife@gmail.com >
* refactor to use onleave and onenter instead of spell_area
allows players to right click remove adal's buff
* add MapMgr.h
* refactor: use condition enum instead of uint32, prefix WORLD_STATE where needed
* remove lock from WorldState::Update
sWorldState->Update() is only called from World::Update
* remove unsafe SmartAI action of setWorldState
---------
Co-authored-by: killerwife <killerwife@gmail.com >
2024-11-12 12:15:27 -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ì
cb7e28df05
refactor(src/server/game/*): remove unused imports (big part 1) ( #20310 )
2024-10-27 10:25:40 +01:00
Francesco Borzì
5a96ce283d
refactor(Scripts): remove unused imports ( #20086 )
2024-09-29 13:20:21 +02:00
Kitzunu
386aea03ee
chore(Core/Misc): Some cleanup ( #19970 )
...
* remove weird blanks
* update if
* ) ) to ))
* missed some ) )
* now switch
* .
2024-09-21 19:34:31 +02: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
Grimdhex
643362d697
refactor(Core/Object): adds consistency in the use of type object check ( #19671 )
2024-08-25 09:57:37 -03:00
Grimdhex
61f3a631c3
fix(Server): remove double blank lines at the end of several files ( #19735 )
2024-08-25 07:21:14 -03:00
Benjamin Jackson
c8be582f81
fix(Scripts): Rewrite Level 70 Elite Tauren Chieftain. ( #19546 )
...
* Init.
* Despawn music doodad.
* Add conditions behind events invoking performances.
* Update music doodad intervals.
55639.
* Add condition for BRD performance.
Ensures that manual performance and event performance do not overlap.
* Add scripting for Shattrath Saul.
* Add scripts for Silvermoon band members.
All verified in Cata Classic 55639.
* Whoops.
* Styling, initial Blastbolt scripting.
I don't know how to handle the roadies yet. Ugh.
* Whoops.
* Bad event param.
* Remove drumset respawn from action list.
* Update Shattrath Saul's Perry Gatner scripting.
* Ugh.
Hate SAI.
2024-08-13 11:56:43 -03:00
Kitzunu
e4df159f5c
refactor(Core/Chat): Move SendNotification to ChatHander ( #19491 )
...
* refactor(Core/Chat): Move SendNotification to ChatHander
* Update Battleground.cpp
* fix build
* Update src/server/game/Chat/Chat.h
2024-08-10 11:39:46 -03:00
Francesco Borzì
e592fdd248
refactor(Scripts/misc): remove unused imports ( #19458 )
2024-07-22 16:20:41 -03:00
Kitzunu
332446b8aa
fix(Scripts/ChatLogger): Differentiate addon whisper from player whisper ( #19441 )
...
* fix(Scripts/ChatLogger): Differentiate addon whisper from player whisper
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/19439
* closes https://github.com/azerothcore/azerothcore-wotlk/issues/17570
* fix build
2024-07-19 15:26:34 +02:00
Kitzunu
486cbb3970
fix(Scripts/ChatLog): Whoopsies ( #19430 )
2024-07-18 19:31:12 -03:00
Kitzunu
ab52e1f164
chore(Scripts/ChatLog): Cleanup the code ( #19411 )
...
* chore(Scripts/ChatLog): Cleanup the code
* Update chat_log.cpp
* remove more redundant code
2024-07-18 22:46:01 +02:00
avarishd
f510e122a0
fix(Script/Quest): Protecting Our Own ( #19247 )
...
* fix(Core/Spells): Gor'drek's Ointment
* Update spell_item.cpp
* ;
2024-07-17 13:19:48 +02:00
Kitzunu
275b8b5d7f
chore(Scripts/ServerMail): Cleanup the code ( #19412 )
...
* chore(Scripts/ServerMail): Cleanup the code
* try to fix build error
* okay we resort to the AIs
2024-07-17 01:33:26 +02:00
Dinkledork
01f063e242
fix(Scripts/World): Emerald Dragons no longer have 0% health events ( #18893 )
...
Events happen at 75, 50 or 25 percent health and should not include 0%.
2024-06-29 06:13:14 -03:00
Jelle Meeus
e3da4e4986
refactor(Scripts/World): Spell Scripts registry macros ( #19224 )
...
* boss_emerald_dragons spell:spell_dream_fog_sleep
* boss_emerald_dragons spell:spell_mark_of_nature
2024-06-29 06:06:59 -03:00
Walter Pagani
77be5bb19d
fix(Spells/SpellInfoCorrections) Remove friendly mask on goblins ( #18912 )
...
Co-authored-by: Jelle Meeus <sogladev@gmail.com >
2024-06-29 00:28:29 -03:00
Andrew
cfcb5d5bd7
fix(Scripts/NPC): Fix arcanite dragonling attacking non flagged players ( #19039 )
2024-06-10 23:07:48 +02:00
Anton Popovichenko
f792b0d708
feat(Core/Scripts): Optimize PlayerScripts by calling only overridden/implemented functions. ( #18672 )
...
* feat(Core/Scripts): Optimize PlayerScripts by calling only overridden/implemented functions.
* Fix codestyle.
* Fix typo
* PLAYERHOOK_END is not a hook
* Address code review feedback.
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com >
* Codestyle fixes
* Fix typo
Co-authored-by: PkllonG
---------
Co-authored-by: Winfidonarleyan <dowlandtop@yandex.com >
2024-04-11 17:08:30 -03:00
Andrew
6df652a8dd
fix(Core/Creature): Prevent combat movement disabled creatures from r… ( #18428 )
...
* fix(Core/Creature): Prevent combat movement disabled creatures from repositioning if target moves within model boundary
* fixbuild
* Apply suggestions from code review
2024-02-27 10:11:39 -03:00
Andrew
413cde96dd
refactor(Scripts/Areatrigger): Move Scholazar Waygate script to SAI ( #18054 )
...
* refactor(Scripts/Areatrigger): Move Scholazar Waygate script to SAI
* Update rev_1703449890835634600.sql
2024-01-01 14:01:16 +01:00
Andrew
d83d623792
chore(Scripts/World): Remove unused legacy scripts ( #18048 )
2023-12-24 08:04:37 -03:00
attacksnack
b0ebaf4c96
fix(Scripts/Spells): Fix Ritual of Souls with Improved Healthstone
2023-12-23 23:29:34 -03: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
Winfidonarleyan
e90d7a2f92
chore(Core/Misc): sort includes ( #17776 )
...
* chore(Cleanup): sort includes
* fix build
* fix build again
2023-11-18 17:51:26 +01:00
Andrew
a5b5278929
refactor(Scripts/World): Clean up script files ( #17728 )
...
* refactor(Scripts/World): Clean up script files
* Update boss_azuregos.cpp
2023-11-16 14:00:42 -03:00
Kitzunu
f757e93da5
refactor(Core/Misc): Make DeathState enum class ( #17607 )
2023-10-28 10:54:03 +02:00
avarishd
5aca484574
fix(Core/Scripts): Venomhide Hatchling improvements ( #17454 )
2023-10-10 20:25:26 -03:00
avarishd
96d0675624
fix(DB/SAI): Cuergo's Gold improvements ( #17462 )
...
* fix(DB/SAI): Cuergo's Gold improvements
* Actionlist
* zzz
2023-10-10 10:36:04 -03:00