Reading buffs menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    dottie's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Reading buffs

    Seems that my buff code quits working. It's been working fine for a while but just realized today that it's off and on.

    Any thoughts on what I might be doing wrong? I searched and it seems my offsets are current.

    Code:
        enum BuffOffsets
        {
            AURA_COUNT_1 = 0xDD0,
            AURA_COUNT_2 = 0xC54,
            AURA_TABLE_1 = 0xC50,
            AURA_TABLE_2 = 0xC58,
            AURA_SIZE = 0x18,
            AURA_SPELL_ID = 0x8
        };
    
       public bool HasBuff(Buffs buff)
        {
            uint auraTable = this.BaseAddress + (uint)BuffOffsets.AURA_TABLE_1;
            IntPtr _auraCountPtr = new IntPtr((long)(this.BaseAddress + (long)BuffOffsets.AURA_COUNT_1));
            uint auraCount = (uint)mem.ReadUInt(_auraCountPtr);
    
            if (auraCount > 80)
            {
                IntPtr _tmp1 = new IntPtr((long)(this.BaseAddress + (uint)BuffOffsets.AURA_TABLE_2));
                auraTable = mem.ReadUInt(_tmp1);
                IntPtr _tmp2 = new IntPtr((long)(this.BaseAddress + (uint)BuffOffsets.AURA_COUNT_2));
                auraCount = mem.ReadUInt(_tmp2);
            }
    
            for (int i = 0; i <= auraCount; i++)
            {
                IntPtr _tmp3 = new IntPtr(auraTable + (uint)BuffOffsets.AURA_SIZE + i + (uint)BuffOffsets.AURA_SPELL_ID);
                int spellId = mem.ReadInt(_tmp3);
    
                if (spellId == (int)buff)
                {
                    return true;
                }
    
            }
    
            return false;
        }
    I found other posts that use different checks than auraCount > 80 to determine the actual buffbase such as:

    Code:
                IntPtr _varIntPtr = new IntPtr((long)(this.BaseAddress + 0xC58));
                uint _buffBase = (uint)mem.ReadInt(_varIntPtr);
                if (_buffBase == 0) ...
    And neither seems to be working for me now. Any help on what i might be doing wrong?

    Thanks!

    Reading buffs
  2. #2
    EmilyStrange's Avatar Active Member
    Reputation
    34
    Join Date
    Jul 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your offsets are correct.

    The way you read the second aura table is not.

    If you copy & pasted this code from your project, rather than transcribed it by hand, it could never have worked because the calculation of the aura pointer in your loop is incorrect.

    * Trying very hard not to spoon feed.
    Last edited by EmilyStrange; 01-11-2010 at 01:47 AM. Reason: Fixed typo

  3. #3
    Flowerew's Avatar Master Sergeant
    Reputation
    72
    Join Date
    Oct 2009
    Posts
    134
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is C#! *300 voice*

  4. #4
    EmilyStrange's Avatar Active Member
    Reputation
    34
    Join Date
    Jul 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It could be LOLCat for all I care, the pointer calculation is still incorrect.

  5. #5
    dottie's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Right this is c#. It only worked when the buff was the first buff due to my now obvious error. I can't tell you the number of times I looked at this code and didn't notice the pointer error. Thanks for the help! Must be my blonde moment for the week.

Similar Threads

  1. Create AHK that Reads Buffs?
    By SpaceGuy119 in forum PoE Bots and Programs
    Replies: 4
    Last Post: 08-13-2015, 12:27 PM
  2. Reading buffs from memory
    By oliman in forum SWTOR Bots and Programs
    Replies: 0
    Last Post: 02-10-2012, 02:22 PM
  3. Sunfruit STACKS for insane Strength Buff
    By Matt in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 04-02-2006, 03:12 AM
  4. AFK Out of BG without deserter buff
    By Matt in forum World of Warcraft Exploits
    Replies: 0
    Last Post: 03-29-2006, 09:51 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 05:28 PM. 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