This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] [QUESTION] Problems with Custom Spell  (Read 2470 times)

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
[SOLVED] [QUESTION] Problems with Custom Spell
« 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:



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
« Last Edit: March 28, 2013, 06:44:40 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #1 on: March 28, 2013, 09:39:41 am »
Look for a column containing 49. Look for the column of energy in the documentation.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #2 on: March 28, 2013, 11:49:58 am »
Concerning Cataclysm, we don't mod cataclysm, so we don't know it's behavior.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #3 on: March 28, 2013, 12:18:57 pm »
@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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #4 on: March 28, 2013, 12:32:26 pm »
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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Mordred

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #5 on: March 28, 2013, 01:09:33 pm »
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

which most likely contains the cost of 49 energy and 100% usage.
also these are the cataclysm DBCs:
Cataclysm
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Burn in fire of righteousness!
Easy Loginscreen

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #6 on: March 28, 2013, 01:18:06 pm »
Quote from: "schlumpf"
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #7 on: March 28, 2013, 01:20:02 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #8 on: March 28, 2013, 01:23:17 pm »
Quote from: "schlumpf"
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.wowdev.wiki/index.php?title=Spell.dbc
Scroll down to 12340 build.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #9 on: March 28, 2013, 02:10:58 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #10 on: March 28, 2013, 02:34:21 pm »
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #11 on: March 28, 2013, 04:02:32 pm »
You can send it to me if you want.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #12 on: March 28, 2013, 04:09:59 pm »
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.

Code: [Select]
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:

Code: [Select]
uint32      ManaCostPercentage;                             // 204      m_manaCostPct
Gun requirement is not attribute based it's:

Code: [Select]
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.

Code: [Select]
uint32      Targets;                                        // 16       m_targets
http://www.wowdev.wiki/index.php ... bc/Targets

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 =

Code: [Select]
  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 =

Code: [Select]
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 =  

Code: [Select]
SPELL_ATTR3_DEATH_PERSISTENT                 = 0x00100000, // 20 Death persistent spells
AttEx4 =

Code: [Select]
SPELL_ATTR4_TRIGGER_ACTIVATE                 = 0x00000200, //  9 initially disabled / trigger activate from event (Execute, Riposte
   SPELL_ATTR4_USABLE_IN_ARENA                  = 0x00020000, // 17

AttEx5 =

   
Code: [Select]
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #13 on: March 28, 2013, 05:26:01 pm »
I fixed it.
« Last Edit: March 28, 2013, 06:44:05 pm by Admin »

Vortalex

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 253
    • View Profile
Re: [QUESTION] Problems with Custom Spell
« Reply #14 on: March 28, 2013, 05:43:42 pm »
Problem solved, thanks.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »