Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Malkorak on February 05, 2014, 01:03:32 pm

Title: [Require Help] - Flags for Cast Time on Spells.
Post by: Malkorak on February 05, 2014, 01:03:32 pm
Greetings.

I'm pretty new here and I'm seeking some help.

I'm trying to change the Heroic Strike from Warrior. I want to change the spell cast time from "Next Melee" to "Instant", anyone have any idea what column in Spell.DBC can that be? I cannot figure out. It would be great if someone would be able to guide me.

Thanks a lot.
Title: Re: [Require Help] - Flags for Cast Time on Spells.
Post by: Skarn on February 05, 2014, 08:42:17 pm
Here are some information.
http://www.pxr.dk/wowdev/wiki/index.php ... .3.5.12340 (http://www.pxr.dk/wowdev/wiki/index.php?title=Spell.dbc#3.3.5.12340" onclick="window.open(this.href);return false;)
http://www.pxr.dk/wowdev/wiki/index.php ... tTimes.dbc (http://www.pxr.dk/wowdev/wiki/index.php?title=SpellCastTimes.dbc" onclick="window.open(this.href);return false;)
These two tables must be exactly what you need.

Regards, Skarn.
Title: Re: [Require Help] - Flags for Cast Time on Spells.
Post by: deep6ixed on February 05, 2014, 09:36:05 pm
Next melee is one of the attribute flags, can't remember off the top of my head which one it is, and to make it cast time of 0, I believe the spellcasttime index is 0.  But I don't have my notebook in front of me
Title: Re: [Require Help] - Flags for Cast Time on Spells.
Post by: Milly on February 05, 2014, 09:56:46 pm
The ID for instant cast is 1. Set that to column 12 (or 13, or whatever column comes after the hexadecimal entries)

Also if deep6ixed is right, you'll probably be okay deleting all of the attribute flags if you just want it for visual purposes.
But always keep backups of your work just in case :)
Title: Re: [Require Help] - Flags for Cast Time on Spells.
Post by: deep6ixed on February 06, 2014, 07:55:47 am
Looking at this spell using SpellWork, (Spell 78: Heroic Strike) Changing it from Next Melee Attack to Instant cast would break the function of the spell.  It adds 11 to the next swing of the weapon, shifting it to an instant cast would mean it only does 11 damage, ever.  you would have to add a second effect to actually deal the normal weapon damage.

But to change it from an instant cast, change the Attributes column from 0x50014 to 0x50010, this will make it a stand alone spell.