Commit Graph

146 Commits

Author SHA1 Message Date
Andrew 919eefef7e refactor(Core/Battlefield): fire OnBattlefieldWarEnd before OnBattleEnd (#26030)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-30 19:45:51 -03:00
Robin Gustafsson 0f1f1615e2 feat(Core/Scripting): Add Player SetSkill hook (#25599) 2026-05-24 04:16:56 -03:00
Andrew 8f293d00ee feat(Core): add OnPlayerQuestAccept hook to PlayerScript (#25875)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 08:06:40 -03:00
Andrew 5f5c287cd3 feat(Core/Battlefield): Add OnBattlefieldPlayerKill script hook (#25871)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 01:12:04 -03:00
Andrew bceaddb73b feat(Core/Scripting): Add OnBattlefieldWarEnd script hook (#25754)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 21:24:27 -03:00
Axel Cocat cd3cccc961 feat(Core/Scripting): Add OnPlayerBeforeGetLevelForXPGain hook (#25295) 2026-04-24 08:17:31 +02:00
Axel Cocat 4fd0c385da feat(Core/Scripting): Pass IoContext to OnNetworkStart (#25501) 2026-04-23 16:41:26 +02:00
sogladev 117095f1cb feat(Core/Scripting): OnPlayerResurrect allow changing of applySickness (#25353) 2026-04-15 08:03:56 -03:00
Axel Cocat 0246faa95a feat(Core/Scripting): Add OnPlayerLearnTaxiNode hook (#25288) 2026-03-29 01:20:27 +01:00
EElenov 601a4231f6 feat(Core/Player): Add 'OnPlayerCanLearnTalent' hook (#24826) 2026-03-17 20:30:57 +01:00
Takenbacon 7b1355f15e fix(Server/Scripting): Remove packet copy from server script hooks (#25063)
Co-authored-by: Benjamin Jackson <38561765+heyitsbench@users.noreply.github.com>
Co-authored-by: Andrew <47818697+Nyeriah@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-13 16:04:24 -03:00
Andrew 8422ec906f feat(Core/Scripting): Implement OnBattlefieldBeforeInvitePlayerToWar() (#24973) 2026-03-02 20:05:43 -03:00
Andrew e74adf550e feat(Core/Scripting): Add Battlefield scripting hooks and API (#24957)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-01 21:54:15 -03:00
blinkysc 686aafd57b feat(Core/Hooks) Adds hooks for BG and Arena systems. (#23543) 2026-02-16 00:45:03 -03:00
Benjamin Jackson 1e47f701ac feat(Core/Player): Add hooks for reputation price discount calculation. (#24666) 2026-02-15 23:44:44 +01:00
blinkysc d908b4c2fc refactor(Core/Network): Port TrinityCore socket optimizations (#24384)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com>
Co-authored-by: Shauren <shauren@users.noreply.github.com>
2026-01-15 10:47:58 -03:00
Benjamin Jackson d025568b65 fix(Core/Entities): Use lifetime PvP rank rather than current title for PvP credit message. (#23961)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
2025-12-27 00:45:33 +01:00
Munzeria ae8dd49fd4 feat(Core/PlayerScript): Add Unequip hook (#23248)
Co-authored-by: Munzeria <Munzeria@dontemailme.lol>
Co-authored-by: sudlud <sudlud@users.noreply.github.com>
2025-12-27 00:09:56 +01:00
Tereneckla 2f7f9bd72f fix(Core/Spells): Implement TrinityCore spell_group and 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-28 16:01:25 -03:00
Francesco Borzì 50b36e842a fix(docs/license): use GPLv2 as MaNGOS-based project (#23655) 2025-11-14 08:44:25 -03:00
天鹭 50f8f145d2 refactor(Core/PlayerScript): Delete OnPlayerChat, use OnPlayerCanUseChat (#23617) 2025-11-12 10:13:26 +01:00
Foe bb2f2daacb chore(Core/modules): necessary core changes for mod-eluna rename (#22962)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2025-10-23 12:52:13 +02:00
iThorgrim 445161d3b9 refactor(Core/Script): Rename Creature_SelectLevel to OnCreatureSelectLevel for clarity (#22750) 2025-08-29 17:19:57 -03:00
Quartzi 0fc05ed4d2 feat(Core/Scripting): Add OnPlayerGiveReputation script hook (#21869) 2025-08-27 04:32:02 -03:00
Macs-Account 68ece33f89 fix(Core/Scripting): UnitScript::DealDamage always returns the original damage value (#22206) 2025-06-08 01:15:32 +01:00
Vincent Vanclef dd42f7a673 feat(Core/Entities): Add OnPlayerSendListInventory script hook (#21676) 2025-03-11 15:01:55 +01:00
Vincent Vanclef ffe03f6e14 feat(Core/Entities): add OnPlayerCanGiveLevel script hook (#21666) 2025-03-10 08:44:33 +01:00
iThorgrim e28384b059 feat(Core/Scripting): Add new hooks for Ticket (#21238) 2025-02-17 03:26:05 +01:00
Razor2142 8cc47ab1f1 feat(Script/Instance): added generic instance map script (#21218)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2025-02-16 23:26:07 +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
iThorgrim 971ebcae31 feat(Core/Scripting): Add Player skill based hook (#21273)
Co-authored-by: IntelligentQuantum <IntelligentQuantum@ProtonMail.Com>
Co-authored-by: Ludwig <sudlud@users.noreply.github.com>
2025-02-15 23:10:38 +01:00
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
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
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
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