Reading spells from bars... menu

Shout-Out

User Tag List

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

    Reading spells from bars...

    Hello all

    Here is how I enumerate spells on action bars:

    ...
    UINT32 i = m_nModulBaseAddress + BarManager_startBar;

    for( int nBar = 1; nBar < 7; nBar++ )
    {
    cMsg.Format( "--- Bar %d---\n\n", nBar );
    fl.WriteString( cMsg );

    for( int j = 0; j < 12; j++, i += sizeof( UINT32 ) )
    {
    UINT32 nSpellID = m_wowMem.ReadUINT32( i );
    CString cSpellName = GetSpellName( nSpellID );
    CString cDefineName( GetPlayer()->GetClass() + "__" + cSpellName );
    cDefineName.MakeUpper();
    cDefineName.Replace( 32, '_' );
    cDefineName.Replace( ':', '_' );

    cMsg.Format( "#define %s\t\t%d\t\t // %s \n", cDefineName, nSpellID, cSpellName );
    fl.WriteString( cMsg );
    }
    fl.WriteString( "\n" );
    }
    ...

    Funny thing is that is works for Hunter, Mage, Warlock, etc... but not for Warrior.
    Any1 has same problem ?

    Kajko

    Reading spells from bars...
  2. #2
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Something about them being in stances? If you have the same problem with a druid in bear/cat form, its stances.
    Also, parsing spell.dbc might be easier.

  3. #3
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first action bar is a special bar, the spell is stored somewhere else according to the action bonus bar (it's called something like that):

    Code:
    ActionBarBonus = 0x00A8C60C,                // 4.1.0 14007
    if it's > 0, I read it like that :

    Code:
    Int32 BarSize = 0x30;
    UInt32 ActionId = Memory.ReadUInt((uint)Resources.Offsets.ActionBar.ActionBarFirstSlot + (0x4 * Slot) + (uint)BarSize * 6 + (((uint)ActionBarBonus - 1) * (uint)BarSize), "Wow.exe");
    It's old code, but I'm sure it will help u to figure out.

  4. #4
    kajko's Avatar Member
    Reputation
    4
    Join Date
    Oct 2009
    Posts
    48
    Thanks G/R
    3/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot, this works now.

Similar Threads

  1. Delete spell from DB
    By Royalaty in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 05-04-2009, 06:20 AM
  2. Link the Kill Bill reference Spell from BRD
    By gryphons53 in forum World of Warcraft Exploits
    Replies: 16
    Last Post: 10-30-2008, 01:11 PM
  3. Transfering spells from one character to another.[With database access]
    By Equ1N0X in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 01-14-2008, 12:45 PM
  4. All the spells from the PTR
    By Fishy80 in forum World of Warcraft Model Editing
    Replies: 0
    Last Post: 04-20-2007, 02:32 PM
All times are GMT -5. The time now is 09:04 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