Takenbacon
ee69a569c4
fix(Core/Grids): Grid improvements ( #20955 )
2025-02-14 22:11:27 +01:00
iThorgrim
054018232c
feat(Core/Scripting): Add new hook OnUnitSetShapeshiftForm ( #21235 )
2025-02-04 07:41:29 +01:00
iThorgrim
c53112d820
Feat(Core/Scripting): Add new hook CanPlayerResurrect to simplify HardCore mod etc. ( #21272 )
2025-02-03 18:28:19 +01:00
iThorgrim
90566589b0
feat(Scripting/Spell): Add new hooks for Spell (OnSpellCast, OnSpellPrepare, OnSpellCancel) ( #21149 )
2025-01-18 12:26:39 -03: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
Benjamin Jackson
53cd41b938
feat(Core/Scripting): Add hook during command security evaluation. ( #20564 )
2024-11-14 17:14:28 -03:00
silviu20092
87fbdb7967
feat(Core/Scripting): Add hook for applying weapon damage ( #20350 )
...
Add hook for applying weapon damage
2024-11-14 05:35:26 -03:00
Francesco Borzì
a9f0f371e5
refactor(src/server/game): optimise imports ( #20541 )
2024-11-13 11:37:20 +01: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ì
2ce2c8cf3a
refactor(src/server/game/*): remove unused imports (big part 3) ( #20315 )
2024-10-27 13:10:28 +01:00
Francesco Borzì
1ebb53a248
refactor(src/server/apps|database|shared): remove unused imports ( #19505 )
2024-09-29 13:10:50 -03:00
Walter Pagani
cfd7bf4162
chore(Core/AllMapScript) Update structure ( #19979 )
...
* fix(Core/AllMapScript) Update structure to use CALL_ENABLED_HOOKS
* fatal error: no template named 'vector' in namespace 'std'
* fix build
Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com >
---------
Co-authored-by: Anton Popovichenko <anton.popovichenko@mendix.com >
2024-09-21 22:25:22 +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
Grimdhex
4254827b2c
Revert "chore(Debug/Scripting): improve debug errors during the unloading scripts ( #19643 )" ( #19951 )
...
This reverts commit db7183a573 .
*wrongly use to catch sigsegv
*null check isn't necessary: https://en.cppreference.com/w/cpp/memory/new/operator_delete
2024-09-12 08:05:12 -03:00
Stefano Borzì
d17c179c03
chore: remove unused hooks ( #19919 )
2024-09-11 11:50:59 -03:00
Stefano Borzì
f6e9bd51fd
feat(ScriptMgr): add OnArenaStart hook ( #19922 )
2024-09-11 11:18:36 -03:00
Stefano Borzì
0dd5c6e3b4
feat(Battlegrounds): make it compatible with custom arena type ( #18679 )
...
* feat(Battlegrounds): make it compatible with custom arena type
* fix(BattlegroundQueue.cpp): ignore bg for arena condition
* feat(Scripting): add OnQueueUpdateValidity hook
* fix: codestyle
2024-09-08 20:05:58 +02:00
Stefano Borzì
e5e514bbbe
feat(Core/Scripting): add OnBeforeArenaCheckWinConditions hook for mod-arena-replay compatibility ( #19856 )
2024-09-04 10:33:38 -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
ianmeesters
a83cd03bfb
feat(Core/Player): add OnCalculateTalentsPoints hook ( #19749 )
...
* playerTalentsHook
* oeps :#
* :#
* does this work?
* make reference
---------
Co-authored-by: Amy Fang <amy@cavemail.ddns.net >
2024-08-30 09:06:07 -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
db7183a573
chore(Debug/Scripting): improve debug errors during the unloading scripts ( #19643 )
...
* chore(Debug/Scripting): improve debug errors during script unloading
* add the script name to increase debug informations and ensure to derefence script pointers
2024-08-21 08:13:20 -03:00
Francesco Borzì
02a05fbd4c
refactor(src/common): remove unused imports ( #19506 )
...
* refactor(src/common): remove unused imports
* fix: build
* chore: fix build
* chore: size_t -> std::size_t
* chore: fix fuckup from previous commit
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build with std::size_t
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
* chore: fix build
2024-07-30 20:06:46 -03:00
Kitzunu
f0e6b0f1ab
chore(Core/GameObjectAI): Cleanup register macro ( #19409 )
2024-07-17 00:17:49 +02:00
sudlud
60be029e4c
fix(Core/Scripting): fix OnBeforeCreateInstanceScript hook ( #19252 )
...
- to me this hook should obviously provide an option to overwrite
the InstanceScript pointer
- this is e.g. beeing used by mod-eluna (but currently broken)
2024-07-03 14:54:45 -03:00
Kitzunu
5a4692e45a
chore(Core/Misc): #include cleanup ( #19255 )
2024-07-02 15:52:02 +02:00
AnchyDev
e0cf15db93
fix(Scripts/Misc) CanExecuteCommand renamed and moved to be executed for all commands. ( #19081 )
...
* Fix CanExecuteCommand only being executed on command failure.
* Updated for style guide.
* Removed pointless hook call.
* Modified the name of the hook to better reflect function and moved the call to trigger for non-existent commands.
* Updated to OnTryExecuteCommand because Foe has a special place in my heart.
* Forgot to change these 2 areas.
2024-06-17 21:39:11 +02:00
silviu20092
3988e9581d
feat(core): add hooks for applying item mods ( #18760 )
2024-05-18 10:02:57 +02:00
天鹿
f203b1b9dc
fix(Scripts/PlayerScript): PlayerScript Error ( #18806 )
...
Update PlayerScript.cpp
2024-04-29 02:31:14 -03:00
Anton Popovichenko
11ac6c70db
fix(Core/Scripts): Fix one more typo after scripts refactoring ( #18730 )
...
fix(Core/Scripts): Fix one more typo after scripts refactoring.
2024-04-12 16:58:07 -03:00
Anton Popovichenko
c796d9291e
fix(Core/PlayerScript): Fix adding XP on quest completion and other overlooks. ( #18728 )
...
* fix(Core/PlayerScript): Fix adding XP on quest completion.
* Fix other overlooks.
2024-04-12 12:12:57 -03:00
天鹿
0e1888ac92
feat(Core/Scripts): Optimize AchievementScript ( #18705 )
...
* Add files via upload
* Update AchievementScript.h
2024-04-12 11:00:31 -03:00
天鹿
b3a332f57c
feat(Core/Scripts): Optimize AllBattlegroundScript ( #18704 )
...
* Add files via upload
* Update AllBattlegroundScript.h
2024-04-12 11:00:16 -03:00
天鹿
a4af83b277
feat(Core/Scripts): Optimize AllCommandScript ( #18703 )
...
* Add files via upload
* Update AllCommandScript.h
2024-04-12 10:59:56 -03:00
天鹿
d87af54675
feat(Core/Scripts): Optimize AllSpellScript ( #18702 )
...
* Add files via upload
* Update AllSpellScript.h
2024-04-12 10:59:37 -03:00
天鹿
170817e66d
feat(Core/Scripts): Optimize GameEventScript ( #18711 )
...
* Add files via upload
* Update GameEventScript.h
2024-04-12 10:56:46 -03:00
天鹿
a2c867fcf2
feat(Core/Scripts): Optimize GroupScript ( #18713 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update GroupScript.h
2024-04-12 10:56:31 -03:00
天鹿
e2a07cf9b7
feat(Core/Scripts): Optimize GuildScript ( #18714 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update GuildScript.h
2024-04-12 10:56:12 -03:00
天鹿
1ecce50e06
feat(Core/Scripts): Optimize LootScript ( #18715 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update LootScript.h
2024-04-12 10:55:54 -03:00
天鹿
9464068625
feat(Core/Scripts): Optimize MailScript ( #18716 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update MailScript.h
2024-04-12 10:55:35 -03:00
天鹿
e4cae908fa
feat(Core/Scripts): Optimize MiscScript ( #18719 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update MiscScript.h
2024-04-12 10:55:18 -03:00
天鹿
574bdc2869
feat(Core/Scripts): Optimize PetScript ( #18720 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update PetScript.h
2024-04-12 10:55:04 -03:00
天鹿
55233dd17b
feat(Core/Scripts): Optimize ServerScript ( #18721 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update ServerScript.h
2024-04-12 10:54:35 -03:00
天鹿
8d20a25e96
feat(Core/Scripts): Optimize UnitScript ( #18722 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update UnitScript.h
2024-04-12 10:54:20 -03:00
天鹿
83c4562f3d
feat(Core/Scripts): Optimize WorldObjectScript ( #18723 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update WorldObjectScript.h
2024-04-12 10:53:59 -03:00
天鹿
d162817d33
feat(Core/Scripts): Optimize WorldScript ( #18724 )
...
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update WorldScript.h
* Update ScriptMgr.cpp
2024-04-12 10:53:42 -03:00
天鹿
130044fb01
feat(Core/Scripts): Optimize GlobalScript ( #18712 )
...
* Add files via upload
* Update GlobalScript.h
2024-04-12 10:53:26 -03:00
天鹿
f0a21100c5
feat(Core/Scripts): Optimize FormulaScript ( #18710 )
...
* Add files via upload
* Update FormulaScript.h
2024-04-12 10:53:08 -03:00
天鹿
bf4f9774c1
feat(Core/Scripts): Optimize DatabaseScript ( #18709 )
...
Add files via upload
2024-04-12 10:52:43 -03:00