[CODE] Find buffs / debuffs on a target menu

User Tag List

Results 1 to 7 of 7
  1. #1
    Therrm's Avatar Member
    Reputation
    8
    Join Date
    Feb 2007
    Posts
    83
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [CODE] Find buffs / debuffs on a target

    I was working on this since few days and finally managed to find what I was looking for.

    Here is the function I use to know if my target has a buff or debuff.
    The code is messy, I just wrote this in 2 minutes but it's working. Up to you to change it.

    I know it could be done by using the HasAura LUA function but I didnt want to use that since I quite suck at this...

    So here it is :

    TargetToCheck is the Target Offset (the CurObj) you want to look the buff.
    BuffToCheck is the buff you want to check (for example 48266 is the buff for Blood Presence Blood Presence - Thottbot: World of Warcraft)

    Code:
            public static Boolean HasAura(UInt32 TargetToCheck, int BuffToCheck)
            {
                UInt32 Buff = 1;
    
                UInt32 Adress = TargetToCheck + 0xEBC;
           
                while(Buff != 0)
                {
                    Buff = wow.ReadUInt(Adress);
    
                    if (Buff == BuffToCheck)
                        return true;
    
                    Adress = Adress + 0x4;
                }
                return false;
            }
    Hope it will help some of you.

    [CODE] Find buffs / debuffs on a target
  2. #2
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Adress = Adress + 0x4;

    Adress += 0x4;

    Fyi.

    Also, "Adress" should be "Address".

    Again, Fyi.

  3. #3
    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)
    Very nice, +rep.
    Does anyone have the 3.1 offset for buffcount?

  4. #4
    Therrm's Avatar Member
    Reputation
    8
    Join Date
    Feb 2007
    Posts
    83
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Cypher View Post
    Adress = Adress + 0x4;
    Adress += 0x4;
    Fyi.
    Also, "Adress" should be "Address".
    Again, Fyi.
    You're welcome my dear Cypher

    Miceiken >> Nop sorry

  5. #5
    Pixion's Avatar Member
    Reputation
    59
    Join Date
    Jan 2008
    Posts
    289
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice, I think i'll use it.
    Thanks you very much !

  6. #6
    Tanaris4's Avatar Contributor Authenticator enabled
    Reputation
    148
    Join Date
    Oct 2008
    Posts
    646
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice post - I'd also like to hear about buff count - anyone found this? Seems to have moved

  7. #7
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could always just loop through UnitBuff( "player", i ) until you get nil.

Similar Threads

  1. Raise Ally debuff on another target
    By xHearts in forum World of Warcraft Exploits
    Replies: 8
    Last Post: 08-09-2011, 09:21 AM
  2. Buff/debuff or kill your alt
    By kixer in forum World of Warcraft General
    Replies: 0
    Last Post: 10-19-2010, 07:10 AM
  3. C# Finding buffs
    By Hawker in forum WoW Memory Editing
    Replies: 15
    Last Post: 08-09-2009, 04:25 AM
  4. about buff/debuff 3.0.2
    By snowboom in forum WoW Memory Editing
    Replies: 0
    Last Post: 10-25-2008, 08:26 PM
  5. Finding player debuffs
    By volition in forum WoW Memory Editing
    Replies: 5
    Last Post: 06-09-2008, 03:41 PM
All times are GMT -5. The time now is 07:36 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