summaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
AgeCommit message (Collapse)Author
8 dayschore(Core/Handlers): Remove unused item query optimization. (#22971)Benjamin Jackson
2025-08-01fix(Core/Items): count stats programatically instead of manually set (#22564)Tereneckla
Co-authored-by: heyitsbench <benjymansy123@gmail.com>
2025-07-29refactor(Core): Clean (#22583)天鹭
2025-07-24feat(Core/Load): Add debug logs for zone and area assignment (#22509)Kitzunu
2025-06-30feat(Core/Config): Improvements to config caching (#21647)Takenbacon
2025-06-17fix(DB): set game_event_* tables to use smallint (#22309)Jelle Meeus
2025-05-27refactor(Core): Use database tables for Shaman totems and Druid shapeshift ↵Benjamin Jackson
forms. (#22104) Co-authored-by: DoctorKraft <25483209+doctorkraft@users.noreply.github.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: ForesterDev <11771800+ForesterDev@users.noreply.github.com>
2025-03-09refactor(Core/ServerMail): Refactor to Dedicated Manager Class with ↵Kitzunu
Multi-Item & Condition Support (#21590) 1. Core Cleanup - Move all ServerMail logic from `ObjectMgr` into a new dedicated `ServerMailMgr` class - Move faction logic for money from SendServerMail into the script 2. Separation of items into a new table - Create a new `mail_server_template_items` table - Allows to send multiple items in one mail - Separate items per faction Alliance/Horde 3. Separation of conditions into a new table - Create a new `mail_server_template_conditions` table - Allows to use multiple conditions for one mail - Available condition types - Minimum playtime (playerLevel >= condition) - Minimum playtime (playerPlayTime >= condition) - Rewarded quest - Earned achievement - Earned reputation (playerReputation >= conditionState) - Faction - Race - Class 4. Updated ServerMail loading - Move item and condition loading to their own functions - LoadMailServerTemplateItems() - LoadMailServerTemplateConditions() 5. Reworked eligibility check - Player needs to pass all conditions to be eligible for the mail - All players are automatically eligible if no conditions exist for a server mail template. 6. Updated foreign keys - For table `mail_server_character`, `mail_server_template_conditions`, `mail_server_template_items` foreign key with on delete cascade is added for automatic removal of entries if mail_server_template.id is deleted. 7. Database changes - See the PR
2025-03-03fix(Core/PvP): Sometimes mobs and objects fail to spawn in OutdoorPvP (#21636)天鹿
2025-02-22fix(Core/Misc): Fix NextPage Data Type in PageText Structure and Improve ↵Kitzunu
Logging Messages (#21586)
2025-02-14fix(Core/Grids): Grid improvements (#20955)Takenbacon
2025-02-08feat(Core/Creature): Implement HasFlagsExtra() helper to creature (#21362)Andrew
2025-02-01refactor(Core/Disables): Convert from Namespace to Class Structure (#21109)Kitzunu
2025-02-01refactor(Core/ObjectMgr): Change GetAcoreString from char const* to s… ↵Kitzunu
(#21213) ...ring
2025-01-26feat(Core/Creatures): implement a sparring system (#19824)Grimdhex
2025-01-19fix(Core/ObjectMgr): Potential crash in GetModuleString() (#21211)Kitzunu
2025-01-07fix(Core/Misc): Correct some fmt logs (#21106)Kitzunu
2024-11-30fix(Script/Commands): tele add should only check exact match (#20785)Kitzunu
* fix(Script/Commands): tele add should only check exact match * closes https://github.com/azerothcore/azerothcore-wotlk/issues/20268 * better describe the variable
2024-10-27refactor(src/server/game/*): remove unused imports (big part 2) (#20311)Francesco Borzì
2024-10-11fix(Core/Vehicles): feat vehicle seat addon, vehicle enter/exit positions ↵Jelle Meeus
(#20082) * implement initial vehicle_seat_addon Co-authored-by: Ovah <dreadkiller@gmx.de> * add more vehicle_seat_addon data * make exiting passenger visible fixes "immediate despawn" of travelers mammoth * style, update comments * remove hacked pos relocate * remove sending MSG_MOVE_ROOT/UNROOT on Ack * set and unset UNIT_NPC_FLAG_PLAYER_VEHICLE on init/entry * ulduar demolisher: remove flag correction and no longer needed usableseat * fixup! implement initial vehicle_seat_addon * fixup! fixup! implement initial vehicle_seat_addon * re-add AddPassenger Flame Leviathan hack was commented by mistake * Update rev_1725993194571320983.sql add missing ticks --------- Co-authored-by: Ovah <dreadkiller@gmx.de>
2024-09-21chore(Core/Misc): Some cleanup (#19970)Kitzunu
* remove weird blanks * update if * ) ) to )) * missed some ) ) * now switch * .
2024-09-03fix(Conf): sync default values with core defaults (#19708)sudlud
fix(Conf): sync values with core defaults
2024-08-31refactor(Core/Item): Add helpers (#19828)Kitzunu
2024-08-31fix(DB/Item): Feathermoon Headdress has the wrong stats (#19814)Carriola-wotlk
* fix(DB/Item): Feathermoon Headdress has the wrong stats * ITEM_MOD_SPELL_DAMAGE_DONE deprecated check removed
2024-08-13fix(Core/Creature): quest_greeting_locale (#19615)Kitzunu
* fix(Core/Creature): quest_greeting_locale * closes https://github.com/azerothcore/azerothcore-wotlk/issues/14845
2024-08-13feat(DB/Module): introduce module_string table (#19475)Kitzunu
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-23refactor(Core/Chat): PSendSysMessage to `fmt` (#19449)Kitzunu
* refactor(Core/Chat): PSendSysMessage to `fmt`
2024-07-03refactor(Core/ObjectMgr): Handle Profanity & Reserved Names in load (#19259)Kitzunu
* refactor(Core/ObjectMgr): Handle Profanity & Reserved Names in load * closes https://github.com/azerothcore/azerothcore-wotlk/issues/18556 * Update ObjectMgr.cpp * Update ObjectMgr.cpp * I swear I am not drunk * We already check all of these * fix build * Forgot we dont send the responsecode in senderrormessage * last commit I swear
2024-07-02chore(Core/Misc): #include cleanup (#19255)Kitzunu
2024-06-27fix(Core/Misc): fmt (#19192)Greg Wilkinson
Update LOG_ERROR for Model data query.
2024-06-16refactor(Core/ObjectMgr): Implement display probabilities. (#19068)Benjamin Jackson
* Init. Cherry-picked from TC commits https://github.com/TrinityCore/TrinityCore/commit/9d210476e57949094fdd286001ef4900564edca5 and https://github.com/TrinityCore/TrinityCore/commit/c488fb219ab080031488593a0b86ac785a7d2cae Co-Authored-By: Traesh <9392905+traesh@users.noreply.github.com> Co-Authored-By: Shauren <shauren.trinity@gmail.com> * Add brute data. Needs validation against what existed before, i.e. Classic change prevention. * Add validation info for brute data. * Remove incomplete data queries. * Requested changes. * Whitespace. * Requested change. Table name. Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> * Requested change. Table name. Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> * Resolve the funny merge conflicts. I wonder why git blame doesn't work on a file with 20k lines in it that's odd huh champ. * Remove unused parameter. * Remove uses of unused parameter. * Use unused parameter. Hopefully? * I will cry. * Sobbing endlessly. * Remove comment. * Adjust table structure query. Remove length parameters and allow null for build value. Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> * Adjust column datatype and add check constraint. --------- Co-authored-by: Traesh <9392905+traesh@users.noreply.github.com> Co-authored-by: Shauren <shauren.trinity@gmail.com> Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
2024-03-15chore. Avoid failures in the tests of custom items (#18519)Walter Pagani
* chore. Avoid failures in the tests of custom items * Report error but continue with the rest of the item * change LOG_ERROR for LOG_DEBUG
2024-03-13refactor(Core): remove some unused variables (#18538)sudlud
- let's get rid of some compiler warnings
2024-01-31fix(Core/Quests): Create quest money reward config and adjust max level ↵Benjamin Jackson
bonus reward function. (#18222) * Init. * Drop RewardBonusMoney column. How's that for deprecation. * Add formula source link. * Remove deprecated info in conf. * Newline.
2024-01-21fix(Core/Creature): Remove automated z spawn correction (#18200)sudlud
* fix(Core/Creature): Remove automated z spawn correction * comment out unused parameter * remove gridLoad parameter from Creature::LoadCreatureFromDB()
2024-01-01refactor(Core/GameObject): Move the GameObject state save handling to… ↵Andrew
(#18080) * refactor(Core/GameObject): Move the GameObject state save handling to instance level * Update GameObject.h * remove leftover * small improvements
2023-12-23chore(Core): remove useless includes (#18036)IntelligentQuantum
2023-12-03fix(Core/Quest): Throw error if quest_template RewardItemId is not se… ↵Kitzunu
(#17924) fix(Core/Quest): Throw error if quest_template RewardItemId is not set in order * closes https://github.com/azerothcore/azerothcore-wotlk/issues/17740
2023-12-02feat(Core/Scripting): move all script objects to separated files (#17860)Winfidonarleyan
* feat(Core/Scripts): move all script objects to separated files * Apply 5bfeabde813d26cf2317e39cffe598a9d1d738ab * try gcc build * again
2023-12-02chore(Core/Misc): rename spellInfo pointers (#17914)Kitzunu
* Rename all
2023-11-18chore(Core/Misc): sort includes (#17776)Winfidonarleyan
* chore(Cleanup): sort includes * fix build * fix build again
2023-10-31feat(Core/Hooks): Add `OnAfterDatabaseLoadCreatureTemplates` hook (#17621)KJack
* Add OnAfterDatabaseLoadCreatureTemplates hook - fix issue where the fast template cache was not updated correctly after a CS reload of a single creature template * Parameter naming tweak to reduce confusion. * Refactor to streamline fastcache creation, remove threading concerns * Remove unneeded resize when loading creature templates * Update fast cache resizing to highest-performing option
2023-10-22refactor(DB/reputation_spillover_template): Reputation spillover table ↵Alyst3r
expansion (#14763) * Update ObjectMgr.cpp Rework to `ObjectMgr::LoadReputationSpilloverTemplate()` allowing more factons to be added. * Create reputation_spillover_template-update.sql Alteration to `reputation_spillover_template` table, update allowing to add two more factions. * Update SharedDefines.h `MAX_SPILLOVER_FACTIONS` is now equal 6 instead of 4. * Update reputation_spillover_template-update.sql Now it alters table instead recreating it.
2023-09-17fix(Core/Item): Reduce amount of excessive logging for enforeDBCAttributes ↵Matthew M Dean
(#16508) bypass code block if enforceDBCAttributes is set to false
2023-09-15refactor(DB/Player): Unify two player stat tables. (#17188)Benjamin Jackson
* Init. Change query table names, move data to existing table. * Combine two player stat loading functions.
2023-08-28refactor(Core): remove unused imports (#17094)Francesco Borzì
2023-08-12fix(DB/Gossip): Change MenuID to INT from SMALLINT (#16982)Kitzunu
* fix(DB/Gossip): Change MenuID to INT from SMALLINT * update cpp
2023-05-13fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) (#16168)cTrinity
* fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) Wrong format occurred (invalid format string) * fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) * fix(Core/ObjectMgr.cpp): Wrong format occurred (invalid format string) Co-authored-by: Angelo Venturini <nefertum.dev@protonmail.com> --------- Co-authored-by: Angelo Venturini <nefertum.dev@protonmail.com>
2023-04-29revert(Core): ChrRace.dbc full implementation (#16114)M'Dic
* revert (core): ChrRace.dbc full implementation we revert this due to several issues arrising. Although the dbc reading is done in full and correctly. Azerothcore relied on the original handling (althought not propper) for so long that there is * revert * Update remove_charrace_dbc.sql * Update remove_charrace_dbc.sql * Update remove_charrace_dbc.sql