Getting Active Buffs with ID and Spell Name menu

User Tag List

Results 1 to 15 of 15
  1. #1
    draco1219's Avatar Sergeant
    Reputation
    -6
    Join Date
    Jan 2011
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting Active Buffs with ID and Spell Name

    Hi guys,

    I was wondering if anyone would be able to point me in the right direction. I did a search and didn't come up with anything recent regarding listing buffs of the active player.

    Can anyone provide any code snippets or posts which talk about getting a collection of buffs on a player? Preferably by ID, and possibly a way to get the equivalent Spell name from that ID?

    Thanks in advance for your help,

    Matt

    Getting Active Buffs with ID and Spell Name
  2. #2
    Scorpiona's Avatar Active Member
    Reputation
    17
    Join Date
    Mar 2009
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    draco1219's Avatar Sergeant
    Reputation
    -6
    Join Date
    Jan 2011
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Scorpiona View Post

    Thank you very much.

  4. #4
    draco1219's Avatar Sergeant
    Reputation
    -6
    Join Date
    Jan 2011
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by draco1219 View Post
    Thank you very much.
    Thanks again for your help. I was able to pull the spell ID.

    Is there some way to get a spell name for a spell ID? I searched and everything I found was for WoW 3.x. Is the concept the same?

    Thanks!

    ---------- Post added at 09:58 AM ---------- Previous post was at 09:53 AM ----------

    Originally Posted by draco1219 View Post
    Thank you very much.
    Thanks again for your help. I was able to pull the spell ID.

    Is there some way to get a spell name for a spell ID? I searched and everything I found was for WoW 3.x. Is the concept the same?

    Thanks!

  5. #5
    Mc-fly's Avatar Sergeant
    Reputation
    14
    Join Date
    Dec 2009
    Posts
    64
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    read it out of the spell.dbc
    or

    API_GetSpellInfo

  6. #6
    GameAssist's Avatar Banned CoreCoins Purchaser Authenticator enabled
    Reputation
    98
    Join Date
    Apr 2010
    Posts
    349
    Thanks G/R
    55/83
    Trade Feedback
    0 (0%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Code:
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public class DB_head
    {
        public int name;
        public int rCount;
        public int fCount;
        public int rSize;
        public int stringSize;
        public int Size { get { return Marshal.SizeOf(this); } }
    }
    
    public class DB
    {
        public byte[] datas, strings;
        public DB_head head = new DB_head();
        public string name;
        public DB(string name)
        {
            using (FileStream stream = File.Open( name, FileMode.Open,  FileAccess.Read, FileShare.Read))
                using (BinaryReader r = new BinaryReader(stream))
                {
                    head = BYTE.ToStruct<DB_head>(r.ReadBytes(head.Size));
                    datas = new byte[head.rCount * head.rSize];
                    r.Read(datas, 0, head.rCount * head.rSize);
                    strings = new byte[head.stringSize];
                    r.Read(strings, 0, head.stringSize);
                    Debug.Assert(datas.Length + strings.Length != stream.Length);
                }
        }
       
        public static string read_to_end(BinaryReader r)
        {
            List<byte> b = new List<byte>();
            uint offset = 0;
            byte last_b;
            while ((last_b= r.ReadByte()) != 0)
            {
                offset++;
                b.Add(last_b);
            }
            return Encoding.UTF8.GetString(b.ToArray());
        }
    }
    
     #region Spells DB
            DB dbs = new DB(@"G:\WowUNPAC\DBFilesClientRU\Spell.dbc");
            byte[] record = new byte[dbs.head.rSize];
            wow_spel w_spell;
            Spell spell;
            List<wow_spel> wow_spels = new List<wow_spel>();
            using (MemoryStream ms = new MemoryStream(dbs.datas))
            {
                using (BinaryReader br = new BinaryReader(ms))
                {
                    for (int i = 0; i < dbs.head.rCount; i++)
                    {
                        w_spell = new wow_spel();
                        wow_spels.Add(BYTE.ToStruct<wow_spel>(br.ReadBytes(w_spell.Size)));
                        ms.Position = ms.Position + (dbs.head.rSize - w_spell.Size);
                    }
                }
            }
    
            using (MemoryStream ms = new MemoryStream(dbs.strings))
            {
                using (BinaryReader br = new BinaryReader(ms))
                {
                    for (int i = 0; i < wow_spels.Count; i++)
                    {
                        spell = new Spell();
                        spell.id = wow_spels[i].id;
                        ms.Position = wow_spels[i].name;
                        spell.name = DB.read_to_end(br);
                        spells.Add(spell);
                    }
                }
            }
            spells.Add(new Spell(95861, "Медитация")); //http://ru.wowhead.com/spell=85101
            #endregion

  7. #7
    draco1219's Avatar Sergeant
    Reputation
    -6
    Join Date
    Jan 2011
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much for the snippet.

    I did some searching about the Spells.dbc and all I came up with was information about private servers. Is there some kind of DBF/DBC file locally in my WoW folder which has this information?

    Isn't there some place in memory which stores a spell name for a given spell ID?

    Thanks again guys

  8. #8
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Search for DBC extractor or MPQ Editor, and yes it's the same file that private servers use, as they're extracted from the client.

  9. #9
    draco1219's Avatar Sergeant
    Reputation
    -6
    Join Date
    Jan 2011
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by miceiken View Post
    Search for DBC extractor or MPQ Editor, and yes it's the same file that private servers use, as they're extracted from the client.
    Thanks again I was able to extract it and view it. Is there a way to read the spell name from memory instead of using Spell.dbc? It seems like there should be some way without calling a function.

    Does anyone know?

    Thanks!

    ---------- Post added 01-30-2011 at 12:30 AM ---------- Previous post was 01-29-2011 at 11:46 PM ----------

    Originally Posted by miceiken View Post
    Search for DBC extractor or MPQ Editor, and yes it's the same file that private servers use, as they're extracted from the client.
    Thanks again I was able to extract it and view it. Is there a way to read the spell name from memory instead of using Spell.dbc? It seems like there should be some way without calling a function.

    Does anyone know?

    Thanks!

  10. #10
    pred.is.god's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    86
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <---- hands over spoon

  11. #11
    draco1219's Avatar Sergeant
    Reputation
    -6
    Join Date
    Jan 2011
    Posts
    45
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by pred.is.god View Post
    <---- hands over spoon
    Did I ever ask for code? No. All I was asking for if it were possible. I can do it from the Spell.dbc thanks to the helpful people above, but I rather not have to dump out all of the Spell IDs/Spell Names to a XML file and use in my bot, I was just wondering if it were possible to read it directly from memory.

  12. #12
    GameAssist's Avatar Banned CoreCoins Purchaser Authenticator enabled
    Reputation
    98
    Join Date
    Apr 2010
    Posts
    349
    Thanks G/R
    55/83
    Trade Feedback
    0 (0%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Read Spell.Dbc 1 times in the early loading of your program and get a local database in a convenient format for you and then just pulled out of it - you do not need to pull these names out of the WOW - it is much longer

    In general on this forum, most programmers who are extremely reluctant to share information, possibly due to the commercial use of their Вот- they do not want to share secrets, as may be afraid of competition
    Last edited by GameAssist; 01-30-2011 at 08:43 AM. Reason: love translate.google.com

  13. #13
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It has nothing to do with "secrets" or competition*, but the fact that almost every topic/request here is one of
    a) Something that has been asked and answered a lot of times before.
    b) Something that should be common sense, ie. if you can't figure it out yourself this place isn't for you.


    *) At least not for me, can't speak for everyone else here.

  14. #14
    GameAssist's Avatar Banned CoreCoins Purchaser Authenticator enabled
    Reputation
    98
    Join Date
    Apr 2010
    Posts
    349
    Thanks G/R
    55/83
    Trade Feedback
    0 (0%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    a) Something that has been asked and answered a lot of times before.
    I am the third day trying to figure out at least some information on Item.name, as a result, instead, to publish three lines of code with a ready solution has already started the personal attacks and insults, and the most thorough search of this forum has given nothing - no information.

    this only confirms my assertion

  15. #15
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh please, the answer was already posted in the item name thread you replied to. You just chose to ignore it. See my point a.

    Originally Posted by JuJuBoSc View Post
    The Get Name VMT should work fine for Item name, i used it few month ago.

    Code:
                    uint VMT52 = BM.ReadUInt((.BM.ReadUInt(objBaseAddress) + (52 * 4)));
                    BM.Asm.Clear();
                    BM.Asm.AddLine("mov ecx, " + objBaseAddress);
                    BM.Asm.AddLine("mov eax, " + VMT52);
                    BM.Asm.AddLine("call eax");
                    BM.Asm.AddLine("retn");
    But from your post
    Originally Posted by wlastas View Post
    Somebody can show the actual working code definitions Item.Name without the use Lua? It is even possible?
    If you think that is lua code then you have some serious issues.

    As for point b, if you can't figure out how to use the above mentioned code (or adapt it to your liking) then you're not going to get any help here. Why should we help you if you can't even take the time to learn really basic things?

Similar Threads

  1. Checking Buffs with UnitAura and UnitBuff
    By oldmanofmen in forum WoW Memory Editing
    Replies: 1
    Last Post: 07-20-2010, 11:54 AM
  2. [Guide] How to get easy gold with JC (and optionally Enchanting)
    By Sardonyx in forum World of Warcraft Guides
    Replies: 10
    Last Post: 06-10-2010, 07:30 AM
  3. [Question] Help with Changing Spell Names
    By chaggy7 in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 10-05-2007, 01:54 PM
  4. How to get to Outland with your low lvl twinks and how to benefit of it
    By freaky in forum World of Warcraft Exploits
    Replies: 24
    Last Post: 01-24-2007, 11:48 AM
  5. Getting into BG with that pesky deserters buff!
    By janzi9 in forum World of Warcraft Exploits
    Replies: 0
    Last Post: 03-06-2006, 11:35 PM
All times are GMT -5. The time now is 01:13 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