Getting Spellname from ID menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting Spellname from ID

    Hello OC,
    right now I am working on making my bot for Vanilla (1.12.1) more user independent.
    Currently the user has to register the spell name, the corresponding button to trigger it and the cooldown in the custom class.
    Also the CC has to contain ID's for the buffs and debuffs the custom class is working with.

    Since I want to get rid of it I started to work on a new solution. I know that I could handle the whole fight system easily with lua but I think my programming knowledge isnt good enough at this point (working on getting away from c# to c right now).

    Right now I can read the spell ID of every spell listed in the spellbook aswell the spell ID of a spell which is placed on a specific actionbar button.
    Since most spells have different ranks and I dont want the user to list thousand ID's just for one spell I have to find a way to get the name by the ID.

    Right now I read all IDs in the spellbook and query http://www.aowow.org/?spell=XXXXX for every entry I get to retrieve the spellname and cost. After every run I save the retrieved data into a local file.
    It works but its just not the best way. Since I couldnt find a better way until now I just would like to ask if anyone could push me in the right direction.

    My next guess is to read the dbc files but I think there should be something more simple.
    Last edited by Corthezz; 03-29-2013 at 06:54 AM.

    Getting Spellname from ID
  2. #2
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  3. #3
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thought about using this before but like mentioned above I would need Lua DoString to get the return values.

  4. #4
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or you can read it from Spell.dbc

  5. #5
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or you can read it from Spell.dbc
    I took a look at the spell.dbc file before but couldnt find any name. just a bunch of numbers but I think this will be the best way so I will dig deeper.

  6. #6
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Corthezz View Post
    I took a look at the spell.dbc file before but couldnt find any name. just a bunch of numbers but I think this will be the best way so I will dig deeper.
    http://www.pxr.dk/wowdev/wiki/index....=Spell.dbc#Old

    "124-132 sRefName String + Loc Names different then your clients localization will appear as null terminated strings "

  7. #7
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    public struct SpellDBEntry
        {
            public int SpellId;
            public uint pName;
            public uint pSubName;
            public uint pDescription;
            public uint pAuraDescription;
            public int SpellRuneCostId;
            public int SpellMissileId;
            public int SpellDescriptionVariableId;
            private int Unk20;
            public int SpellScalingId;
            public int SpellAuraOptionsId;
            public int SpellAuraRestrictionsId;
            public int SpellCastingRequirementsId;
            public int SpellCategoriesId;
            public int SpellClassOptionsId;
            public int SpellCooldownsId;
            public int SpellEquippedItemsId;
            public int SpellinterruptsId;
            public int SpellLevelId;
            public int SpellReagentsId;
            public int SpellShapeshiftId;
            public int SpellTargetRestrictionsId;
            public int SpellTotemsId;
            public int ResearchProjectId;
            public int SpellMiscId;
    }
    current Spell.dbc

  8. #8
    Frosttall's Avatar Active Member
    Reputation
    64
    Join Date
    Feb 2011
    Posts
    261
    Thanks G/R
    16/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JuJuBoSc View Post
    Code:
    public struct SpellDBEntry
        {
            public int SpellId;
            public uint pName;
            public uint pSubName;
            public uint pDescription;
            public uint pAuraDescription;
            public int SpellRuneCostId;
            public int SpellMissileId;
            public int SpellDescriptionVariableId;
            private int Unk20;
            public int SpellScalingId;
            public int SpellAuraOptionsId;
            public int SpellAuraRestrictionsId;
            public int SpellCastingRequirementsId;
            public int SpellCategoriesId;
            public int SpellClassOptionsId;
            public int SpellCooldownsId;
            public int SpellEquippedItemsId;
            public int SpellinterruptsId;
            public int SpellLevelId;
            public int SpellReagentsId;
            public int SpellShapeshiftId;
            public int SpellTargetRestrictionsId;
            public int SpellTotemsId;
            public int ResearchProjectId;
            public int SpellMiscId;
    }
    current Spell.dbc
    He is on 1.12.1...

  9. #9
    Robske's Avatar Contributor
    Reputation
    305
    Join Date
    May 2007
    Posts
    1,062
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at the function I posted earlier in your favorite disassembler to figure out how WoW does it, then do it yourself..
    "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - Martin Golding
    "I cried a little earlier when I had to poop" - Sku

  10. #10
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Robske View Post
    Look at the function I posted earlier in your favorite disassembler to figure out how WoW does it, then do it yourself..
    I will. Oh forgot ... I got like zero knowledge about disassembling but I will take a look.
    Juju: No name in spell.dbc:

    https://i.imgur.com/6ILaYQ9.jpg
    Last edited by Corthezz; 03-29-2013 at 10:22 AM.

  11. #11
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Frosttall View Post
    He is on 1.12.1...
    I should have read the post entirely ..

  12. #12
    TOM_RUS's Avatar Legendary
    Reputation
    914
    Join Date
    May 2008
    Posts
    699
    Thanks G/R
    0/52
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Corthezz View Post
    I will. Oh forgot ... I got like zero knowledge about disassembling but I will take a look.
    Juju: No name in spell.dbc:

    https://i.imgur.com/6ILaYQ9.jpg
    You doing it wrong. Spell name is in Spell.dbc for sure.

  13. #13
    Natrist's Avatar Member
    Reputation
    11
    Join Date
    Mar 2013
    Posts
    146
    Thanks G/R
    9/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TOM_RUS View Post
    You doing it wrong. Spell name is in Spell.dbc for sure.
    The problem is in the software you're using. Download MyDBCEditer --and yes, it is spelled right.

  14. #14
    Master674's Avatar Elite User
    Reputation
    487
    Join Date
    May 2008
    Posts
    578
    Thanks G/R
    2/23
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Natrist View Post
    The problem is in the software you're using. Download MyDBCEditer --and yes, it is spelled right.
    Nope he is just not defining the types properly.

  15. #15
    Sacred's Avatar Contributor
    Reputation
    207
    Join Date
    Dec 2007
    Posts
    152
    Thanks G/R
    3/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dump spells from the game, then store it in plain text format (for example 122;Frost Nova), at runtime read it to dictionary where id is key and name is value. You'll never need to update this data, because you'll never have a new patch for the game.

    Btw, for 1.12.1 Spellname field is 120 in Spell.dbc.
    Last edited by Sacred; 03-29-2013 at 01:53 PM.

Page 1 of 2 12 LastLast

Similar Threads

  1. get HKs from horde while AV is over! 3
    By myojinyahiko in forum World of Warcraft Exploits
    Replies: 10
    Last Post: 12-28-2006, 03:25 PM
  2. How to get unbanned from the test realm.
    By Sillientra in forum World of Warcraft Exploits
    Replies: 4
    Last Post: 09-25-2006, 07:54 PM
  3. Getting down from REALLY high places
    By RichyG in forum World of Warcraft Exploits
    Replies: 7
    Last Post: 08-10-2006, 05:41 PM
  4. Way to get money from DM - Hunters only.
    By Rendman in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 07-07-2006, 07:28 PM
All times are GMT -5. The time now is 02:27 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search