Commit graph

55 commits

Author SHA1 Message Date
Rocco Silipo
a14fe1c4de
fix(DB/SAI): Move Rizzle Sprysprocket event to smartscript. (#23167) 2025-10-11 13:41:14 -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
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
sudlud
68558e8626
fix(Scripts/Noblegarden): fix bunny transformation on egg looting (#21957) 2025-04-19 13:15:33 +02:00
Francesco Borzì
5a96ce283d
refactor(Scripts): remove unused imports (#20086) 2024-09-29 13:20:21 +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
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
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
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
Roddan
e08ceb3d8d
fix(Script/Quest): Doing Your Duty (#16923)
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2023-08-06 18:17:38 +02:00
UltraNix
213aaee42c
fix(Scripts/Spells): Fixed Improved Healthstone not affecting Ritual … (#15588)
fix(Scripts/Spells): Fixed Improved Healthstone not affecting Ritual of Souls.

Fixes #15510
2023-03-29 00:31:36 -03:00
Charlton Lau
ba796bee43
fix(Scripts/GO): Druid‘s fly quest (#14085) 2022-12-27 11:27:48 +01:00
schell244
241cbac46a
fix(Core/Event): Hourly bell: Dwarf horn sound should only play once (#12795)
Co-authored-by: schell244 <>
2022-08-21 10:57:07 -03:00
ZhengPeiRu21
7df342b41c
fix(Scripts): Midsummer Music Range (#12248)
* fix(Scripts): Midsummer Music Range

* Refactor iterating nearby players

Co-authored-by: Nefertumm <nefertum.dev@protonmail.com>

* Update go_scripts.cpp

* Update go_scripts.cpp

Co-authored-by: Nefertumm <nefertum.dev@protonmail.com>
2022-07-01 22:24:01 +02:00
UltraNix
9dd4123ff0
fix(Scripts/ZulGurub): Fixed Edge of Madness tablets. (#11959)
Based on @offl work.
Fixes #11610
2022-06-09 20:30:07 -03:00
Kitzunu
b41967a067
feat(Core/GameObject): Gob flag helpers (#11287) 2022-04-05 13:52:58 +02:00
Kargatum
8b7df23f06
feat(Core/Time): Implement saparated manager for game time (#8630) 2022-01-24 17:55:00 +07:00
Kargatum
259b9133f6
feat(Core/Common): add new helpers for time utility (#10207) 2022-01-19 12:01:59 +07:00
Kargatum
7f05e20994
fix(Core/Pets): fix crash at pet resurrect (#10120) 2022-01-15 19:08:54 -03:00
Kitzunu
cb7e355291
refactor(Core/Misc): sin() to std::sin() (#9795) 2022-01-06 19:29:40 +01:00
Malcrom
5abfe27365
fix(Script) Quest "Deactivating the Spire" (#9874)
* fix(Script) Quest "Deactivating the Spire"

* Update go_scripts.cpp

* Update go_scripts.cpp

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
2021-12-25 12:50:52 +01:00
Malcrom
8545257cc8
fix(Script/Quest): Plagued Lands [2118] (#9541) 2021-12-16 10:35:06 +01:00
Malcrom
10ce7a7460
fix(DB/SAI): Quest 9678 "The First Trial" (#9528) 2021-12-11 10:27:29 -03:00
Kargatum
f62664c987
refactor(Core/Misc): headers cleanup (#9259) 2021-11-22 17:24:39 +07:00
schell244
3b89a7e077
fix(Core/Script): add hourly bell event (#9151) 2021-11-14 15:23:01 -03:00
Kitzunu
24f9f993cc
refactor(GameObjectAI): Change self-accessor to "me" (#9041) 2021-11-08 22:06:04 +01:00
Kitzunu
bc82f36f1f
refactor(Core/Unit): clean MonsterText methods (#6957) 2021-10-15 10:25:29 +02:00
Kargatum
52aa0e9966
feat(License): add new headers information about license (#7941)
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
2021-09-30 13:40:52 +07:00
Kitzunu
7152ddc82c
refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457 (#6113)
* refactor(Core/Grids): Ported cmangos/mangos-wotlk@ea99457

(cherry picked from commit d6201e5dbb)
Co-Authored-By: Shauren <shauren.trinity@gmail.com>
Co-Authored-By: SilverIce <slifeleaf@gmail.com>

* Update CellImpl.h

* w

* more more brackets

* ew

* fix build
2021-06-03 05:27:51 +02:00
Walter Pagani
191b94e285
refactor(SmartAI): move C++ script to DB (SAI) (#6067) 2021-06-02 14:23:38 +02:00
Kitzunu
897a02bb75
refactor(Core/Misc): acore to Acore (#6043) 2021-05-31 14:21:54 +02:00
UltraNix
f4c226423d
feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885) 2021-04-25 22:18:03 +02:00
Francesco Borzì
f6a17164be
fix(Core/License): issue with old files license (#4762) 2021-03-17 09:46:01 -06:00
Kitzunu
dbc0ff6554
refactor(Core): sort #includes alphabetically (#4579) 2021-02-24 22:34:42 +01:00
Yehonal
c8f43d8584
feat(Core/Movement): Improved pathfinding, collisions and movements (#4220)
Npc positioning
Implemented slope check to avoid unwanted climbing for some kind of movements (backwards, repositioning etc.)
Implemented backwards movement
Re-implemented circle repositioning algorithm (smartest than retail, but with the same feeling)
Fixed random position of summoned minions
Improved pet following movement. Also, they attack NPC from behind now. Thanks to @Footman

Swimming creatures
Fixed max_z coordinate for swimming creatures. Now only part of their body is allowed to be out of the water level
Fixed pathfinder for swimming creatures creating shortcuts for specific segments, now they swim underwater to reach the seashore instead of flying above the water level.
Creatures with water InhabitType but no swimming flag now, when not in combat, will walk on water depth instead of swimming. Thanks @jackpoz for the original code
UNIT_FLAG_SWIMMING in UpdateEnvironmentIfNeeded to show the swimming animation correctly when underwater
Implemented HasEnoughWater check to avoid swimming creatures to go where the water level is too low but also to properly enable swimming animation only when a creature has enough water to swim.

Walking creatures
Extended the DetourNavMeshQuery adding area cost based on walkability (slope angle + source height) to find better paths at runtime instead of completely remove them from mmaps
improve Z height in certain conditions (see #4205, #4203, #4247 )

Flying creatures
Rewriting of the hover system
Removed hacks and improved the UpdateEnvironmentIfNeeded. Now creatures can properly switch from flying to walk etc.
Spells
LOS on spell effect must be calculated on CollisionHeight and HitSpherePoint instead of position coords.
Improved position for object/creature spawned via spells
Improved checks for Fleeing movements (fear spells)

Other improvements
Implemented method to calculate the CollisionWidth from dbc (used by repositioning algorithm etc.)
Improved raycast and collision checks

Co-authored-by: Footman <p.alexej@freenet.de>
Co-authored-by: Helias <stefanoborzi32@gmail.com>
Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2021-02-01 01:34:27 +01:00
Kargatum
ea93a5c1a1
feat(CI/Codestyle): added codestyle check (#3668) 2021-01-09 11:59:50 +01:00
Francesco Borzì
d4a58700d4
refactor(Core): apply clang-tidy modernize-use-override (#3817) 2020-12-06 18:04:55 +01:00
Kargatum
5e20b46812
refactor(Core/Scripts): restyle scripts lib with astyle (#3467) 2020-10-11 10:35:34 +02:00
Petric
29f2c2aeda
feat(Core/Script): Playing music from GameObjects and added holiday zones music script (#3307) 2020-09-02 16:32:41 +02:00
Kitzunu
1f89282b22
refactor(Core): NULL -> nullptr (#3275)
* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

* NULL to nullptr

Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
2020-08-31 11:55:09 +02:00
Stoabrogga
183a15a661
fix(Core/GameObjectScript): Environmental damage of burning game objects (#2432) 2019-12-07 08:19:24 +01:00
Kargatum
b6cb9247ba
Refactor(Core/Gossip): Replacing old macros with new (#1338)
* Correct support new macro
2019-03-25 21:10:57 +07:00
Nefertumm
c15206fc15
Revert "feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)" (#1471)
This reverts commit 51b8773528.
2019-02-15 15:14:49 -03:00
Viste(Кирилл)
51b8773528 feat(core): Ensure that all actions are compared to fixed point in time (#1236) (#1458)
i.e. world update start
2019-02-14 19:22:17 +01:00