aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-02-23Core: Build on ARM64 - Raspberry Pi (preferable 4) (#23885)daMaex
* build again on aarch64 * include mm_malloc header instead of defining self
2020-02-23Core/Movement: Add support to cyclic splines to GenericMovementGeneratorjackpoz
GenericMovementGenerator sets the _duration to the return value of spline.Launch(). For cyclic splines, this is the duration of 1 single cycle, while the spline itself never ends. To support this edge case in GenericMovementGenerator we just never update the _duration timer for cyclic splines.
2020-02-22Core/Server: correct timestamp format for shutdown/restart notification ↵ForesterDev
broadcasts (#24181) * Core/SmartScripts: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER * Core/Server: correct timestamp format for shutdown/restart notification broadcasts * remove unexpected changes * move enum from Common to Util * Use enum class instead of enum * Fix width for seconds 0 to 9
2020-02-22Core/SmartAI: implement SMART_ACTION_OVERRIDE_LIGHT and ↵ForesterDev
SMART_ACTION_OVERRIDE_WEATHER (#24146) * Core\SmartAI: implement SMART_ACTION_OVERRIDE_LIGHT and SMART_ACTION_OVERRIDE_WEATHER * Change the invoker of action to any worldobject * Revert "Change the invoker of action to any worldobject" This reverts commit 2e15f7258553b7057c3e8f67c54efc77fb6d75b8. * Add dbc-validations for new actions * Use GetBaseObject() instead of Creature* for new actions. Add debug-logging
2020-02-22Scripts/Ebon Hold: Massacre At Light's Point (#24106)Sorikoff
* Scripts/Ebon Hold: Massacre At Light's Point * Update 9999_99_99_99_world.sql * Final stuff * Rename 9999_99_99_99_world.sql to 2020_02_22_00_world.sql Co-authored-by: Eridium <6587064+Killyana@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-19Core/GameObject: Fix wrong calculation of the spellfous distanceKillyana
Closes #24177
2020-02-18Core/SAI: SMART_ACTION_PAUSE_MOVEMENTOvahlord
Closes #22346
2020-02-18Boss/Script: Add Crazed Apothecary to Apothecary Hummel encounterKillyana
Closes #19520 Closes #24176
2020-02-17DB/Quest: Reconnaissance Flightdr-j
Closes #23792
2020-02-16[WIP] Core/AI: Pets musn't attack civilian NPC in aggressive mode (#24121)Sorikoff
* Core/AI: Pets musn't attack civilian NPC in aggressive mode * Move decision to ignore civilians to PetAI, keeping the check in GridNotifiers Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-16Core/Creature: Use proper name for wander distance. (#24133)ratkosrb
* Use proper name for wander distance. * Rename db field. * Fix query. * Remove underscore from chat command. * Rename the handler too. * Update chat command description. * Fix remaining issues. * Rename 2020_99_99_99_world_335.sql to 2020_02_16_01_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-16Scripts/World: Hourly Bell sound, further improvements (#24147)schell244
* Improvements for hourly bell sound * TC codestyle * added missing breaks and improve codestyle
2020-02-16Remove dependency on undefined behaviour (#24159)Ujp8LfXBJ6wCPR
See https://stackoverflow.com/a/4328396 Previous method works but is technically illegal.
2020-02-16Boss/Script: Fix an error in a previous commitKillyana
Closes #24160 Closes #24161
2020-02-15Scripts/Misc: Attempt to fix the buildGiacomo Pozzoni
2020-02-15Scripts/Gameobject: Journal of Jandice Barov- Convert script to SAI. (#24157)Rushor
* Scripts/Gameobject: Journal of Jandice Barov- Convert script to SAI. (Thanks to Sunwell) * Scripts/Gameobject: Journal of Jandice Barov - Update script and move go spawn to bossscript * Update boss_jandice_barov.cpp Co-authored-by: Eridium <6587064+Killyana@users.noreply.github.com>
2020-02-14Scripts/Gameobject: Remove deprecated script for Cat Figurine (#24150)Rushor
Scripts/Gameobject: Remove deprecated script for Cat Figurine
2020-02-14Core/Guilds: Don't rely on implicit guid->uint64 conversion for member lookupShauren
2020-02-14Core/Misc: Remove redundant null pointer checks before delete (#24140)Ujp8LfXBJ6wCPR
* Identified by clang-tidy readability-delete-null-pointer
2020-02-14Core/Misc: Remove redundant copy constructor for Position and WorldLocation ↵Ujp8LfXBJ6wCPR
(#24151) * Default compiler generated ones do the same
2020-02-11Scripts/Kalimdor: Move script of Hand of Iruxos Crystal to database. (#24141)Rushor
* Scripts/Kalimdor: Move script of Hand of Iruxos Crystal to database. * Scripts/Kalimdor: Hand of Iruxos Crystal - Add despawn for gameobject. * Scripts/Kalimdor: Hand of Iruxos Crystal - Add despawn for gameobject. * Remove unneeded commentline * Rename 9999_99_99_99_world.sql to 2020_02_11_00_world.sql Co-authored-by: Aokromes <Aokromes@users.noreply.github.com>
2020-02-10DB/Text: Fix and remove some npc_textKillyana
2020-02-08DB/Logs: Move some logs back to DB errorsKillyana
Ref https://github.com/TrinityCore/TrinityCore/commit/38d3b35561e2634fe633f1c21b1d786b2899e9cb Ref #22282
2020-02-08Scripts/Spells: Nourish (#24057)Sorikoff
* Scripts/Spells: Nourish * Rename 9999_99_99_99_world.sql to 2020_02_08_02_world.sql * Update 2020_02_08_02_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-08Core/Vehicles: implement vehicle seat addon table to specify seat ori… ↵Ovah
(#24112) * Core/Vehicles: implement vehicle seat addon table to specify seat orientation offsets and exit positions in form of offsets or absolute positions * converted Traveler's Tundra Mammoth to seat addon table data * first follow batch * whoopsie * Core/Vehicles: go from local copies to pointers * Update and rename 2020_99_99_99_world.sql to 2020_02_08_01_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-08Core/PacketIO: update cinematic packets to new system. Implement ↵ForesterDev
CMSG_OPENING_CINEMATIC and CMSG_COMPLETE_MOVIE (#24135) * Server/PacketIO: Enable SMSG_TRIGGER_CINEMATIC & SMSG_TRIGGER_MOVIE. * Update SMSG_TRIGGER_CINEMATIC & SMSG_TRIGGER_MOVIE to new Format. Signed-off-by: AriDEV <aridev666@gmail.com> # Conflicts: # src/server/game/Entities/Player/Player.cpp # src/server/game/Server/Packets/MiscPackets.cpp # src/server/game/Server/Packets/MiscPackets.h # src/server/game/Server/Protocol/Opcodes.cpp * Core/Scripts: Add server-side script support for movie completion (#18308) # Conflicts: # src/server/game/Entities/Player/Player.h # src/server/game/Handlers/MiscHandler.cpp # src/server/game/Scripting/ScriptMgr.h # src/server/game/Server/Packets/MiscPackets.h # src/server/game/Server/Protocol/Opcodes.cpp # src/server/game/Server/WorldSession.h * Core/PacketIO: CMSG_COMPLETE_CINEMATIC, CMSG_NEXT_CINEMATIC_CAMERA and enabled some opcodes # Conflicts: # src/server/game/Server/Protocol/Opcodes.cpp # src/server/game/Server/WorldSession.h * Core/Protocol: Implemented CMSG_OPENING_CINEMATIC # Conflicts: # src/server/game/Handlers/GuildHandler.cpp # src/server/game/Server/Protocol/Opcodes.cpp # src/server/game/Server/WorldSession.h * fix build Co-authored-by: Krudor <erikstrandberg93@hotmail.com> Co-authored-by: MitchesD <majklprofik@seznam.cz> Co-authored-by: Kaelima <kaelima@live.se>
2020-02-08Core/Scripting: fixed hourly bell sounds (#24127)schell244
* fixed hourly bell sounds * use switch and moved variable * fix typo
2020-02-08Use boost::optional and boost::none instead of smelly pointer (#24134)Ujp8LfXBJ6wCPR
* Remove bad pointer usage from CharacterCache Use TrinityCore Option type instead which is intended for this purpose. (Wrapper around boost::option until C++17 bump is finalised) * Unify codestyle regarding TC optional type Based upon advice from @Shauren
2020-02-08Sync npc_text naming (#24128)Eridium
* Sync npc_text naming Ref #22287 Ref #22282 We will update the table with data from broadcast_text later * Fix sql * Rename 2020_99_99_99_world_335.sql to 2020_02_08_00_world_335.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-08Core/Misc: Some refactoring, #23603 prep: (#23676)Treeston
- Split SpawnMetadata off from SpawnData - No longer allocate Creature/Gameobject objects in ObjectGridLoader just to check their typeid and delete them afterwards Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-06nopch build fixKeader
2020-02-06Game/Battlegrounds: Fixed Position and Rotation of Alterac Valley GatesKeader
2020-02-01Scripts/Spells: Gift of the Harvester (#24111)Sorikoff
* Scripts/Spells: Gift of the Harvester * Scripts/Spells: nopch * Scripts/Spells: nopch * Scripts/Spells: validate * Rename 9999_99_99_99_world.sql to 2020_02_01_03_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-01Sync broadcast_text naming (#24102)funjoker
* Sync broadcast_text naming official namings for broadcast_text * Rename 2020_01_24_00_world_335.sql to 2020_02_01_02_world_335.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-01Core/PacketIO: convert some packets to to new packet class (#24100)ForesterDev
* Core/PacketIO: updated SMSG_INVALIDATE_PLAYER, SMSG_BINDER_CONFIRM, SMSG_BIND_POINT_UPDATE, SMSG_PLAYER_BOUND and SMSG_LOGIN_SET_TIME_SPEED * small corrections
2020-02-01Core/Movement: Fix WaypointMovementGenerator ignoring ↵Giacomo Pozzoni
EscortAI::SetEscortPaused() on Gossip Hello (#24005) Fix WaypointMovementGenerator ignoring EscortAI::SetEscortPaused() when talking to a NPC, scheduling a 3 minutes pause on the WaypointMovementGenerator even if it was already disabled with no timer, waiting for the player to select a gossip entry to resume the movement.
2020-02-01Core/Items: implement some helper methods for easier readability (#24113)ForesterDev
2020-02-01Scripts/Borean Tundra: Iruk (#24117)Sorikoff
* Scripts/Borean Tundra: Iruk * Apply suggestions from code review Co-Authored-By: Trond B. Krokli <38162891+illfated@users.noreply.github.com> * Update 9999_99_99_99_world.sql * Rename 9999_99_99_99_world.sql to 2020_02_01_01_world.sql Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com> Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-02-01Scripts/The Barrens: Beaten Corpse (#24124)Sorikoff
* Scripts/The Barrens: Beaten Corpse * Rename 9999_99_99_99_world.sql to 2020_02_01_00_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-01-30DB/Creature: Plagued Dragonflayer Tribesman & Plagued Dragonflayer ↵Killyana
Rune-Caster & Plagued Dragonflayer Handler Closes #24122
2020-01-28Core/Scripting: fixed build. Re-enable ModifyVehiclePassengerExitPos for ↵Ovah
CreatureScript to allow scripted creatures that already have an AI to benefit from its functionality as well
2020-01-28Core/AI: call ModifyVehiclePassengerExitPos for CreatureScripts since the ↵Ovah
hook is available for that class as well
2020-01-27Spell/Script: Fix Prison chain for Unworty InitiateKillyana
Closes #24089 The spell 54613 is not used in the game
2020-01-26Scripts/Ebon Hold: How To Win Friends And Influence Enemies (#24090)Sorikoff
* Scripts/Ebon Hold: How To Win Friends And Influence Enemies * Scripts/Ebon Hold: Improve SQL! * Scripts/Ebon Hold: Final touch * Scripts/Ebon Hold: Actually final touch * Rename 9999_99_99_99_world.sql to 2020_01_26_04_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-01-26Scripts/Borean Tundra: Plug the Sinkholes (#24085)Sorikoff
* Scripts/Borean Tundra: Plug the Sinkholes * Scripts/Borean Tundra: Improve SQL * Scripts/Borean Tundra: Remove item script * Rename 9999_99_99_99_world.sql to 2020_01_26_03_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-01-23Core/GameObject: Add infinite visibility GameObject check (#24074)Kittnz
2020-01-22Core/Movement: improved RandomMovementGenerator wait handling to get closer ↵Ovah
to retail behaivior (#24093) * according to observations Blizzard is letting creatures do 2 up to 10 spline movements right after each other before waiting for a couple seconds
2020-01-22Core/Maps: cosmetic correction on comment (#24096)Kelno
2020-01-22Core/Movement: reset position update interrupt info after the interrupt ↵Ovahlord
checks have been executed * for discussion see: https://github.com/TrinityCore/TrinityCore/commit/02daf1bf3afc570c26e8e9f431866fcb3720174a#r36916229
2020-01-22Core/Movement: properly fix aura interrupts during movement (#24068)Ovah
We want our movement to be fully updated before even thinking about interrupting anything. The old logic was updating positions, interrupting stuff and afterwards updating movement generators. This way we were ending up with false interrupts. properly fixes #22908