View Full Version : [Tutorial/Information] Is DBC editing really good for you?

10-06-2013, 08:17 PM
Greetings, in this tutorial ( more an information imo but w/e ) i'll show you why you shouldn't edit DBC when you can simply do it core side.

I will take TrinityCore in this example because it's the current core I work with.

When you edit DBC there are lots of collums and when you're news it's a total mess to remember what you did and what was the original value, anyway TrinityCore has the following function : void SpellMgr::LoadSpellInfoCorrections() in SpellMgr.cpp
with this function you will be able to overwrite most dbc value without editing your spell.dbc you can see some example here : https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/Spells/SpellMgr.cpp#L3003

Remember that in some case you will need to edit DBC but if you can avoid it then do it

10-06-2013, 08:24 PM
Thanks for the information, Neth! \o/

10-06-2013, 09:28 PM
Does it have this for other DBC things too?
For example, Items or StartOutfits?

10-07-2013, 12:23 AM
Does it have this for other DBC things too?
For example, Items or StartOutfits?

I couldn't tell, I only used it for spells

10-07-2013, 03:40 PM
I'f i remember right. Spells are moved to a map or something from the dbc store. So the core has the spells twice in memory.
the map is editable, while the dbc store isn't.

Eluna adds a function you can use to edit dbc. It basically just creates a new map of the dbc if needed for editing.

so basically such isn't for other dbc by default.

see SetEntry and LookupEntry