summaryrefslogtreecommitdiff
path: root/src/server/game/Scripting
AgeCommit message (Collapse)Author
2025-12-27fix(Core/Entities): Use lifetime PvP rank rather than current title for PvP ↵Benjamin Jackson
credit message. (#23961) Co-authored-by: Shauren <shauren.trinity@gmail.com>
2025-12-27feat(Core/PlayerScript): Add Unequip hook (#23248)Munzeria
Co-authored-by: Munzeria <Munzeria@dontemailme.lol> Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2025-11-28fix(Core/Spells): Implement TrinityCore spell_group and ↵Tereneckla
spell_group_stack_rules (#23346) Co-authored-by: treeston <treeston.mmoc@gmail.com> Co-authored-by: Trisjdc <trisjdc@gmail.com> Co-authored-by: QAston <none@none> Co-authored-by: ariel- <ariel-@users.noreply.github.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Jelle Meeus <sogladev@gmail.com>
2025-11-14chore: fix leftover license header (#23678)Francesco Borzì
2025-11-14fix(docs/license): use GPLv2 as MaNGOS-based project (#23655)Francesco Borzì
2025-11-12refactor(Core/PlayerScript): Delete OnPlayerChat, use OnPlayerCanUseChat ↵天鹭
(#23617)
2025-10-26feature(SmartAI/Movement) - Unify waypoint systems (#23251)killerwife
2025-10-23chore(Core/modules): necessary core changes for mod-eluna rename (#22962)Foe
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2025-10-14fix(Core/Unit): rework Walk/Run mode (#22988)killerwife
Co-authored-by: sudlud <sudlud@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-13refactor(Core): DespawnOrUnsummon (#23141)天鹭
2025-10-12fix(Core/Scripting): fix Defias Thug waypoint errors (#22994)sogladev
2025-08-29refactor(Core/Script): Rename Creature_SelectLevel to OnCreatureSelectLevel ↵iThorgrim
for clarity (#22750)
2025-08-27feat(Core/Scripting): Add OnPlayerGiveReputation script hook (#21869)Quartzi
2025-06-27refactor(Core/Scripting): Forward-declare AuctionEntry as a struct rather ↵Benjamin Jackson
than a class. (#22282)
2025-06-08fix(Core/Scripting): `UnitScript::DealDamage` always returns the original ↵Macs-Account
damage value (#22206)
2025-03-11feat(Core/Entities): Add OnPlayerSendListInventory script hook (#21676)Vincent Vanclef
2025-03-10feat(Core/Entities): add OnPlayerCanGiveLevel script hook (#21666)Vincent Vanclef
2025-02-17feat(Core/Scripting): Add new hooks for Ticket (#21238)iThorgrim
2025-02-16feat(Script/Instance): added generic instance map script (#21218)Razor2142
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2025-02-16fix(Core/PlayerScript) Align player script function names (#21020)Exitare
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2025-02-15feat(Core/Scripting): Add Player skill based hook (#21273)iThorgrim
Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com> Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
2025-02-14fix(Core/Grids): Grid improvements (#20955)Takenbacon
2025-02-04feat(Core/Scripting): Add new hook OnUnitSetShapeshiftForm (#21235)iThorgrim
2025-02-03Feat(Core/Scripting): Add new hook CanPlayerResurrect to simplify HardCore ↵iThorgrim
mod etc. (#21272)
2025-01-18feat(Scripting/Spell): Add new hooks for Spell (OnSpellCast, OnSpellPrepare, ↵iThorgrim
OnSpellCancel) (#21149)
2024-12-15feat(Core/Motd): Allow localized motd (#20542)Exitare
* 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-11-14feat(Core/Scripting): Add hook during command security evaluation. (#20564)Benjamin Jackson
2024-11-14feat(Core/Scripting): Add hook for applying weapon damage (#20350)silviu20092
Add hook for applying weapon damage
2024-11-13refactor(src/server/game): optimise imports (#20541)Francesco Borzì
2024-11-12feat(Core/WorldState): improved WorldState scripting (#20141)Jelle Meeus
* implement world state script based on https://github.com/cmangos/mangos-wotlk/commit/0b87ca9d9edf2d4752a3c0f8e9cf85c6689ca861 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-10-31refactor(src/common|server): remove unused import (big part 1) (#20377)Francesco Borzì
* 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-27refactor(src/server/game/*): remove unused imports (big part 3) (#20315)Francesco Borzì
2024-09-29refactor(src/server/apps|database|shared): remove unused imports (#19505)Francesco Borzì
2024-09-21chore(Core/AllMapScript) Update structure (#19979)Walter Pagani
* 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-21chore(Core/Misc): Some cleanup (#19970)Kitzunu
* remove weird blanks * update if * ) ) to )) * missed some ) ) * now switch * .
2024-09-12Revert "chore(Debug/Scripting): improve debug errors during the unloading ↵Grimdhex
scripts (#19643)" (#19951) This reverts commit db7183a5737646773a2f240f01b5891c1e4a4fe8. *wrongly use to catch sigsegv *null check isn't necessary: https://en.cppreference.com/w/cpp/memory/new/operator_delete
2024-09-11chore: remove unused hooks (#19919)Stefano Borzì
2024-09-11feat(ScriptMgr): add OnArenaStart hook (#19922)Stefano Borzì
2024-09-08feat(Battlegrounds): make it compatible with custom arena type (#18679)Stefano Borzì
* 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-04feat(Core/Scripting): add OnBeforeArenaCheckWinConditions hook for ↵Stefano Borzì
mod-arena-replay compatibility (#19856)
2024-09-03refactor(Core): Make more use of helpers. (#19835)Benjamin Jackson
* 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-08-30feat(Core/Player): add OnCalculateTalentsPoints hook (#19749)ianmeesters
* playerTalentsHook * oeps :# * :# * does this work? * make reference --------- Co-authored-by: Amy Fang <amy@cavemail.ddns.net>
2024-08-25refactor(Core/Object): adds consistency in the use of type object check (#19671)Grimdhex
2024-08-21chore(Debug/Scripting): improve debug errors during the unloading scripts ↵Grimdhex
(#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-07-30refactor(src/common): remove unused imports (#19506)Francesco Borzì
* 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-17chore(Core/GameObjectAI): Cleanup register macro (#19409)Kitzunu
2024-07-03fix(Core/Scripting): fix OnBeforeCreateInstanceScript hook (#19252)sudlud
- 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-02chore(Core/Misc): #include cleanup (#19255)Kitzunu
2024-06-17fix(Scripts/Misc) CanExecuteCommand renamed and moved to be executed for all ↵AnchyDev
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-05-18feat(core): add hooks for applying item mods (#18760)silviu20092