• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Newbie Question

Status
Not open for further replies.

ENJATZ

Emulation Addict
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.

Thanks!
 

Rochet2

Moderator / Eluna Dev
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.
 

ENJATZ

Emulation Addict
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, 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.
 

ENJATZ

Emulation Addict
5.4.8

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).
 

FoxGaming

Exalted Member
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.
 
Status
Not open for further replies.
Top