Commit Graph
959 Commits
Author SHA1 Message Date
seviandOvahlord 9da95e6cc9 Core/Creature: Add support for multiple gossip menu IDs (#472)
* Core/Creature: Add support for multiple gossip menu IDs

Adds support for assigning multiple gossip menu IDs to creatures and
controlling them through conditions.

Cherry-picked and adapted from:
https://github.com/TrinityCore/TrinityCore/commit/36044a9470e9c39a71916e908ab6cf4f95677793

Also disables StormLib automatic static linking.

StormLib fix suggested by @brian8544 on Discord.

* merge prep

---------

Co-authored-by: Ovahlord <18347559+Ovahlord@users.noreply.github.com>
2026-07-25 19:29:08 +02:00
Ovahlord 0f6a99bd85 Core/Units: moved stats modifiers and multipliers into a struct for future ports of the remaining secondary stats 2026-06-12 11:55:12 +02:00
Ovahlord af40c9404b Core/Units: moved base stats handling into a own class 2026-06-10 12:20:35 +02:00
sevi 4455231dd0 Core/Movement: fixed loading gravity settings for guid specific creature movement overrides 2025-08-31 14:28:24 +02:00
Ovahlord 3ef6132fce Core/Misc: buildfix 2025-08-05 20:36:37 +02:00
Ovahlord 152e1352c8 Core/Creatures: re-add a column to disable gravity in creature_template_movement since CREATURE_STATIC_FLAG_FLOATING is meant to be used in a different context 2025-08-03 17:08:38 +02:00
Treeston f95a8bfdca Core/Common: Tokenizer -> Trinity::Tokenize 2025-07-30 20:51:19 +02:00
Ovahlord 3e73122965 Core/Quests: converted SMSG_QUEST_POI_QUERY_RESPONSE to packet class and ported quest poi data for all quests from classic 2025-07-27 21:34:56 +02:00
Ovahlord df676d3bc6 Core/Skills: fixed racemask check when initializing player info skills 2025-06-21 02:03:56 +02:00
Ovahlord a9579cb33b Core/Skills: ported skill refactors from master branch
* implement automatic skill learning from dbc data which
2025-06-21 01:23:27 +02:00
Ovahlord 44f466030b Core/Quests: ported quest level scaling and reward money calculation from Classic 2025-06-18 16:53:29 +02:00
Ovahlord 1dfee7e072 Core/Quests: ported QuestMoneyReward.db2 from Classic as db table 2025-06-18 13:12:14 +02:00
Ovahlord d18a2ff090 DB/Creatures: updated all HealthScalingExpansion values from Classic brute force data 2025-06-18 01:21:44 +02:00
Ovahlord f26684b407 Core/Creatures: renamed exp column to HealthScalingExpansion and implement support for negative expansion level (-1 means current expansion - often used in battlegrounds) 2025-06-18 00:36:43 +02:00
Ovahlord 34fa3e1a1c Core/Creature: fixed falling back to creature_template flag data when not overriden in creature table
*fixed column type of npcflag for creature table
2025-06-14 20:24:39 +02:00
Ovahlord 58ef56d335 Core/DataStores: ported NpcDamageByClass game tables from Cata Classic and use it to calculate creature damage values 2025-06-07 16:20:53 +02:00
Ovahlord 77efec36ee Core/DataStores: ported NpcTotalHp game tables from Cata Classic and use them to calculate npc health values 2025-06-07 15:53:41 +02:00
ModoX 5d2d60258b Core/Creature: Remove UNIT_FLAG2_FEIGN_DEATH if no unit_flags are set 2025-03-14 16:35:14 +01:00
Meji d0c902ce1f Core/Creatures: Drop dynamic flags from creature and creature_template 2025-03-11 21:29:30 +01:00
Ovahlord 55318b76b6 buildfix 2025-03-11 19:58:04 +01:00
Ovahlord 40b206991f Core/Creatures: implement overriding static flags by spawnId and difficulty 2025-03-11 18:47:37 +01:00
Ovahlord 45f34f08a1 Core/Spawns: fixed loading unit_flags2 overrides from creature table 2025-03-11 18:14:59 +01:00
Ovahlord 164289b3b2 Core/Units: ported namings for UnitFlags and UnitFlags2 and added the check for forbidden flags in database 2025-03-11 18:06:35 +01:00
ModoX d4804d609d Core/Creature: Allow creature table to override npc- and unitflags to 0 2025-03-11 17:35:41 +01:00
Ovahlord 9189fa1858 Core/Player: split table player_classlevelstats into two tables by introducing player_racestats for race specific offsets 2025-03-10 19:52:18 +01:00
Ovahlord f46b6f0797 Core/Units: removed the packetOnly parameter from several movement flag setters 2025-03-10 17:43:42 +01:00
Ovahlord 2953efb7a3 Core/Movement: ported most movement updates from master branch and corrected behavior of CREATURE_STATIC_FLAG_4_PREVENT_SWIM 2025-03-09 20:49:41 +01:00
sevi 986c129bc0 Core/Quests: implement the option to cast spells upon abandoning quests (#434)
* Core/Quest: Implement a way to cast Spells on Quest Abandon.

* Core/Player: add a missing ;

* Core/Quest: moved the Abandon Spell away from a own table into quest_template_addon.
2023-12-01 16:07:39 +01:00
Shauren 2e2a928204 Core/Misc: Fixed thread-unsafe access to list of objects that should be spawned in a cell 2023-10-18 22:00:01 +02:00
funjoker 5ffa513be8 Core: Fix mistakes introduced in df32b341a5 2023-09-16 21:55:24 +02:00
funjoker d45deb5fbc Buildfix 2023-09-16 21:54:58 +02:00
funjoker df32b341a5 DB/Creatures: Port master model system
Fixes incorrect displayid for creatures, due to probability
2023-09-15 23:52:51 +02:00
Ovahlord ff575bcef0 Core/Creatures: ported all existing static flag implementations from master branch 2023-08-27 17:16:18 +02:00
Ovahlord 393b4d0dc6 Core/Creatures: implement static flag fields for creatures and ported their values from MoP 2023-08-27 16:14:18 +02:00
Ovahlord dfa6f7a709 Core/Movement: fixed up logic in previously added random movement minumum wander distance check and prevent the random movement generator from launching too short splines 2023-08-19 14:51:31 +02:00
Ovahlord e9fecb39d8 Core/Movement: random movement now requires a minimum wander distance of 0.1 yards 2023-08-19 14:33:01 +02:00
Jeremy 929a804052 Core/Graveyards: Fix graveyards in subzones when there is no valid graveyard in that subzone 2023-07-16 15:33:06 +02:00
Ovahlord a3dd0d75cf Core/Quests: ported quest flag and visbility update changes from master branch 2023-07-11 15:21:09 +02:00
Ovahlord acaf42798a Core/GameObjects: sync gameobject data field names with master branch and added some missing entries for Cataclysm 2023-01-17 19:45:56 +01:00
Ovahlord 7d646a7ed2 Core/Creatures: Split creature_addon and creature_template_addon's byte columns into seperate ones
* Instead of dumping raw byte values into these fields, we now only allow setting values which should be accessible to database devs. The remaining byte values should be handled by core internals and spells (pet talents and shapeshifting for example)
2023-01-10 16:23:21 +01:00
Ovahlord 684592851c buildfix 2023-01-09 13:31:57 +01:00
Shauren 68cf700178 Core/Maps: Made instance_template no longer required to create and enter instance maps 2023-01-09 11:42:15 +01:00
ModoX 0baf2d1e1e Core/Instances: Drop allowMount column in instance_template as it is already handled properly by SPELL_ATTR0_OUTDOORS_ONLY 2023-01-09 11:36:01 +01:00
Shauren 0f0b283168 Core/Pools: Implemented pooling for instances 2022-12-29 11:56:56 +01:00
Shauren 28ad85c160 Core/Spawns: Removed ObjectMgr::AddCreatureData and ObjectMgr::AddGameObjectData (old outdoorpvp helpers) 2022-12-26 12:48:54 +01:00
Shauren cbd46b7664 Core/Conditions: Implemented conditions for spawn groups 2022-12-26 11:15:13 +01:00
Ovahlord b5dcfece67 Core/Locales: b5ad731cf3 followup 2022-12-21 10:47:49 +01:00
Ovahlord b5ad731cf3 Core/Locales: ported locale string moving optimization from master branch 2022-12-20 16:31:46 +01:00
ratkosrb 122b52b079 Core/Creature: Use proper name for wander distance 2022-12-20 15:48:37 +01:00
Ovahlord 102f8839ce Core/Gossips: sync gossip_menu_option and creature_trainer structure with master and 3.3.5 2022-12-19 11:56:58 +01:00