Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Miscellaneous => Topic started by: Vortalex on March 28, 2013, 05:27:06 am
-
I've made custom spells in the past, and have never had any problems, especially not like this. I've been at it for hours now trying to get just one spell to work correctly, and no matter what I do it won't function properly.
So my question is, has PXR.DK updated their Attribute pages to Cataclysm? Everytime I change the Attribute columns, some new random properties occur, so I'd imagine that this is the source of the problem. Here is an example of a random property:
(http://i45.tinypic.com/2isxt79.png)
With the attributes I put in, I should have got NOTHING like that. So what's the deal.
Btw, if you want to check, my Attributes are (in order):
Att • 210012
AttEx • 219
AttEx2 • 0
AttEx3 • 100000
AttEx4 • 20200
AttEx5 • 20
AttEx6 • 0
AttEx7 • 0
-
Look for a column containing 49. Look for the column of energy in the documentation.
-
Concerning Cataclysm, we don't mod cataclysm, so we don't know it's behavior.
-
@schlumpf
There is no column containing 49. The manacost is set to 25 like I want it, and the energy type is set to 3. No reason it should cost 49, it has got to do with the attributes.
@Ascathos
I'm not editing cata, I'm editing 3.3.5, I was asking if PXR updated to Cata attributes instead, be ause putting in the attributes based on their page gives me this random nonsense you see in the preview.
-
The 49 obviously can't come out of nowhere and it surely is not because of some attribute. It seems like you are editing the file based on wrong documentation. Which column are you editing for mana cost?
-
If you're modding Cataclysm, then you're doing it wrong:
14 PowerID iRefID
so you used the ID 25 of the DBC:
SpellPower.dbc (http://www.pxr.dk/wowdev/wiki/index.php?title=SpellPower.dbc)
which most likely contains the cost of 49 energy and 100% usage.
also these are the cataclysm DBCs:
Cataclysm (http://www.pxr.dk/wowdev/wiki/index.php?title=Category:DBC_Cataclysm)
-
The 49 obviously can't come out of nowhere and it surely is not because of some attribute. It seems like you are editing the file based on wrong documentation. Which column are you editing for mana cost?
Column 42
-
Counting from 0 or 1?
If you're counting from 0, either the documentation is completely wrong -- which should not be the case -- or you're doing something wrong / looking at the wrong spell or something.
-
Counting from 0 or 1?
If you're counting from 0, either the documentation is completely wrong -- which should not be the case -- or you're doing something wrong / looking at the wrong spell or something.
Starting from 0.
The page: http://www.pxr.dk/wowdev/wiki/index.php?title=Spell.dbc (http://www.pxr.dk/wowdev/wiki/index.php?title=Spell.dbc" onclick="window.open(this.href);return false;)
Scroll down to 12340 build.
-
I know about that wiki, article etc; I wrote major parts of it myself..
It should be correct, as it is even verified by trinity core as well as the official variable names from blizzard. No idea what you're doing wrong.
-
If you'd like, I can send you a copy of my spell.dbc and you can take a look at the row? It can't be too trivial, I'm just a bit inexperienced.
-
You can send it to me if you want.
-
I have made 100's of custom spells for many many many different effects and purposes, even added some things to the spell.dbc on WoWDev myself, it is accurate, you are just doing something wrong.
uint32 powerType; // 41 m_powerType
uint32 manaCost; // 42 m_manaCost
uint32 manaCostPerlevel; // 43 m_manaCostPerLevel
powerType is your mana, manaCost and manaCost per level are NOT what make the cost, or atleast they appear to be over-written by:
uint32 ManaCostPercentage; // 204 m_manaCostPct
Gun requirement is not attribute based it's:
int32 EquippedItemClass; // 68 m_equippedItemClass (value)
int32 EquippedItemSubClassMask; // 69 m_equippedItemSubclass (mask)
The range probably isn't showing up because your Targets is probably set wrong.
uint32 Targets; // 16 m_targets
http://www.pxr.dk/wowdev/wiki/index.php ... bc/Targets (http://www.pxr.dk/wowdev/wiki/index.php?title=Spell.dbc/Targets" onclick="window.open(this.href);return false;)
Uses 100% energy looks like a description but could very well be a SpellEffect. Need more info on it.
I don't even know where to start on the attributes...
AttEx0 =
SPELL_ATTR0_REQ_AMMO = 0x00000002, // 1 on next ranged
SPELL_ATTR0_ABILITY = 0x00000010, // 4 client puts 'ability' instead of 'spell' in game strings for these
SPELL_ATTR0_NOT_SHAPESHIFT = 0x00010000, // 16 Not while shapeshifted
SPELL_ATTR0_IMPOSSIBLE_DODGE_PARRY_BLOCK = 0x00200000, // 21 Cannot be dodged/parried/blocked
AttEx1 =
SPELL_ATTR1_DISMISS_PET = 0x00000001, // 0 for spells without this flag client doesn't allow to summon pet if
SPELL_ATTR1_CANT_BE_REDIRECTED = 0x00000008, // 3
SPELL_ATTR1_UNK4 = 0x00000010, // 4 stealth and whirlwind
SPELL_ATTR1_MELEE_COMBAT_START = 0x00000200, // 9 player starts melee combat after this spell is cast
AttEx3 =
SPELL_ATTR3_DEATH_PERSISTENT = 0x00100000, // 20 Death persistent spells
AttEx4 =
SPELL_ATTR4_TRIGGER_ACTIVATE = 0x00000200, // 9 initially disabled / trigger activate from event (Execute, Riposte
SPELL_ATTR4_USABLE_IN_ARENA = 0x00020000, // 17
AttEx5 =
SPELL_ATTR5_SINGLE_TARGET_SPELL = 0x00000020, // 5 Only one target can be apply at a time
All round those attributes spell; wtf...?
What exactly is your spell meant to do?
EDIT: Also, everything listed is 0 based.
-
I fixed it.
-
Problem solved, thanks.