[wotlk][client] Reading all unit auras. menu

User Tag List

Results 1 to 3 of 3
  1. #1
    tutrakan's Avatar Contributor
    Reputation
    134
    Join Date
    Feb 2013
    Posts
    175
    Thanks G/R
    124/52
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [wotlk][client] Reading all unit auras.

    I'm curious how you guys do read all valid unit auras (as aura structs, ex. std::vector<Aura*>) of given unit in the wotlk client.
    Code:
    typedef struct
    {
    	uint64 CreatorGuid;
    	int AuraId;
    	AuraFlags Flags;	//byte
    	byte Level;
    	uint16 StackCount;
    	int Duration;
    	int EndTime;
    }AuraRec;
    I just REMOVED ALL the subtle bugs from my aura reading logic ("reading logic": really?!?) and i found it not easy.
    So, from there is my curiosity - if anyone else had to struggle with it - how he made it.
    Last edited by tutrakan; 07-23-2017 at 12:02 PM.

    [wotlk][client] Reading all unit auras.
  2. #2
    squiggy's Avatar Active Member
    Reputation
    66
    Join Date
    Aug 2007
    Posts
    45
    Thanks G/R
    40/23
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well i havent touched wtlk myself but i believe that there are two tables with auras in that client, are you handling that?

  3. #3
    tutrakan's Avatar Contributor
    Reputation
    134
    Join Date
    Feb 2013
    Posts
    175
    Thanks G/R
    124/52
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The trick is to do it like in CSimpleUI::CreateTooltip():
    Code:
    ...
    v9 = 0;
    if ( CGUnit_C::GetAuraCount(v150) )
    {
    	do
    	{
    		v11 = CGUnit_C::GetAura(v150, v9);
    		if ( ClientDb::GetLocalizedRow(&g_SpellDB, v11->AuraId, &row) )
    		{
    			// read safely (sigh^^) aura here
    		}
    		++v9;
    	}
    	while ( v9 < CGUnit_C::GetAuraCount(v150) );	
    }
    ...
    Last edited by tutrakan; 07-24-2017 at 04:34 PM.

Similar Threads

  1. [wotlk] sydney wotlk client 8926!!!!
    By Anthonyrox8 in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 09-17-2008, 04:49 PM
  2. WotLK client help
    By heymyname in forum World of Warcraft General
    Replies: 6
    Last Post: 08-06-2008, 12:42 AM
  3. [ didnt know where to post this ]WoTlK client downloader and More
    By zeshu in forum World of Warcraft Exploits
    Replies: 6
    Last Post: 08-05-2008, 06:29 PM
  4. US,GB,DE,FR Wotlk client downloader here.
    By ElDupa in forum World of Warcraft General
    Replies: 60
    Last Post: 07-23-2008, 12:15 PM
  5. Mmoglider detected warning read ALL
    By Premium-mmo in forum World of Warcraft General
    Replies: 11
    Last Post: 07-26-2007, 03:05 AM
All times are GMT -5. The time now is 05:59 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search