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