View Full Version : [SOLVED] Newbie Question

03-04-2015, 06:06 PM
Hi guys! I'm trying to learn to script a Spell in TrinityCore. So far, I read some tutorials about DBCs and Spell.dbc .. but nothing I've edited was confirmed in-game. If there's anyone who could explain me the basics of dbcs and Spell Fixing etc.


03-04-2015, 06:14 PM
Could you post an example of what you tried?
In general if you edit a DBC file on server side, the player wont see the changes in tooltips or elsewhere.
However if you edit something like a spell damage, he will see that ingame when he damages a creature, since the damage is calculated and sent by the server.

So if you edit a spell description in server DBC files it doesnt show to player. You need to make a client patch for it to show to player.

Since DBC files are read to memory, you can also do any DBC edit on server side on the C++ side as well.
For spells there is a SpellMgr.cpp which should contain some fixes for spell data.
There are also some DB tables that allow the same. (look for spell_*)

By googling a DBC file name you should be able to find the wowdev wiki which has a lot of useful info about DBC file structures.
A nice editor I have used is Taliis for DBC reading and it can also modify DBC files without converting them at all.

03-04-2015, 06:22 PM
I wanted to change the cooldown of Shield Wall, from what I've figured out, this is what I had to do:

I opened Spell.dbc, seareched for Shield Wall(ID: 871),(according to this (http://www.pxr.dk/wowdev/wiki/index.php?title=Spell.dbc), cooldown is represented in column 37). Column 37 had 124. So, I opened SpellCooldowns.dbc and searched for 124 and changed Column 1 from 300000 to 2. After all this, I restarted the server and no change was made.

I don't know if what I did was good or not. That's what I understood I had to do.

03-06-2015, 01:21 PM
Anyone with a good knowledge in dbcs and spell system?

03-06-2015, 01:24 PM
Anyone with a good knowledge in dbcs and spell system?

I've done quite a few custom spells, what version are you using? 3.3.5? Or?

03-06-2015, 01:35 PM

So I managed to make some edits with dbc now. I used the strucutre from core (DBCStructure.h). Can yoi explain me the steps I have to do in order to fix a spell. For example I want to edit Expel Harm(monk spell), which is healing me for 21 heal and applying me the visual effect of Flying Serpent Kick but not chaning my speed(so i can travel faster as Flying Serpent Kick has to do).

03-06-2015, 03:15 PM
You first need to find the desired attributes, Expel Harm has changed in WoD so I honestly do not remember what exactly it's supposed to do, but I know it should not be applying any speed boosts.