Buffs menu

User Tag List

Thread: Buffs

Results 1 to 4 of 4
  1. #1
    Arutha532's Avatar Contributor
    Reputation
    227
    Join Date
    Jun 2010
    Posts
    193
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Buffs

    I have been trying to dump the player buffs but it has turned out to be a bit random if i receive valid results.

    Code:
    internal enum UnitAuras : uint
    {
    	CGUnit_Aura = 0x00556E10,                   // 3.3.5a 12340
    	AURA_COUNT_1 = 0xDD0,                       // 3.3.5a 12340
    	AURA_COUNT_2 = 0xC54,                       // 3.3.5a 12340
    	AURA_TABLE_1 = 0xC50,                       // 3.3.5a 12340
    	AURA_TABLE_2 = 0xC58,                       // 3.3.5a 12340
    	AURA_SIZE = 0x18,                           // 3.3.5a 12340
    	AURA_SPELL_ID = 0x8                         // 3.3.5a 12340
    
    } ;
    
     public List<int> GetBuffs()
    {
    	List<int> auras = new List<int>();
    	try
    	{
    		int auraCount = ObjectManager.Memory.ReadInt(BaseAddress + (uint)Offsets.UnitAuras.AURA_COUNT_1);
    		uint auraTable = ObjectManager.Memory.ReadUInt(BaseAddress + (uint) Offsets.UnitAuras.AURA_TABLE_1);
    		if (auraCount == -1)
    		{
    			auraCount = ObjectManager.Memory.ReadInt(BaseAddress + (uint) Offsets.UnitAuras.AURA_COUNT_2);
    			auraTable = ObjectManager.Memory.ReadUInt(BaseAddress + (uint) Offsets.UnitAuras.AURA_TABLE_2);
    		}
    		int SpellID;                
    		for (uint i = 0; i < auraCount; i++)
    		{
    			SpellID = ObjectManager.Memory.ReadInt(auraTable + ((uint) Offsets.UnitAuras.AURA_SIZE*i) +
    											 (uint) Offsets.UnitAuras.AURA_SPELL_ID);
    			if (SpellID > 0)
    			{
    				auras.Add(SpellID);
    			}
    		}
    		return auras;
    	} catch (Exception e)
    	{
    		Console.WriteLine("Exception: GetBuffs: " + e);
    		return auras;
    	}
    }
    If i enter my level 80 i can get it to return valid results if i play a bit.
    If i create a new level 1 char i cannot get it to return anything valid.

    Any help would be very much appreciated.
    Last edited by Arutha532; 07-21-2010 at 06:34 PM.

    Buffs
  2. #2
    Cheatz0's Avatar Member
    Reputation
    14
    Join Date
    May 2009
    Posts
    36
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are plenty of info on how to do it in this very section, but w/e. Have a look on how WoW does it internally:
    Code:
    int __thiscall CGUnit_C__GetAura(int this, unsigned int a2)
    {
      unsigned int v2; // edx@2
      int result; // eax@6
    
      if ( *(_DWORD *)(this + 0xDD0) == -1 )
        v2 = *(_DWORD *)(this + 0xC54);
      else
        v2 = *(_DWORD *)(this + 0xDD0);
      if ( a2 >= v2 )
      {
        result = 0;
      }
      else
      {
        if ( *(_DWORD *)(this + 0xDD0) == 0xFFFFFFFF )
          result = *(_DWORD *)(this + 0xC58) + 24 * a2;
        else
          result = this + 24 * a2 + 0xC50;
      }
      return result;
    }
    First argument is the pointer to the object you wish to get the aura from, and the second one is the "slot" to read from in the buff array.
    Edit: Maybe I should also add (tho quite obvious) that the above returns the pointer to the buff. You can then do whatever, like read (pointer + AURA_SPELL_ID) to get spell id.
    Last edited by Cheatz0; 07-21-2010 at 06:40 PM.

  3. #3
    MaiN's Avatar Elite User
    Reputation
    335
    Join Date
    Sep 2006
    Posts
    1,047
    Thanks G/R
    0/10
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Am I the only one who is baffled like this.. It kind of looks like WoW uses a union here, doesn't it?
    [16:15:41] Cypher: caus the CPU is a dick
    [16:16:07] kynox: CPU is mad
    [16:16:15] Cypher: CPU is all like
    [16:16:16] Cypher: whatever, i do what i want

  4. #4
    Arutha532's Avatar Contributor
    Reputation
    227
    Join Date
    Jun 2010
    Posts
    193
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Found the bug....
    Code:
    uint auraTable = ObjectManager.Memory.ReadUInt(BaseAddress + (uint) Offsets.UnitAuras.AURA_TABLE_1);
    Should be:
    uint auraTable = BaseAddress + (uint) Offsets.UnitAuras.AURA_TABLE_1;
    Thank you for the help.

Similar Threads

  1. Queue in AB or WSG with deserter buff on
    By Matt in forum World of Warcraft Exploits
    Replies: 0
    Last Post: 04-07-2006, 07:28 AM
  2. No deserter buff for Holy Priests
    By Matt in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 04-06-2006, 10:53 AM
  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:17 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