[C#][Copy/Pasta] Macros menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    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)

    [C#][Copy/Pasta] Macros

    This little code allow you to dump all player macro id, name, body and icon and check if it's character specific macro or not.

    Thanks to Tanaris4 for the specific macro mask

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace WowMacro
    {
        class Program
        {
            static void Main(string[] args)
            {
    
                Magic.BlackMagic BM = new Magic.BlackMagic();
                BM.OpenProcessAndThread(Magic.SProcess.GetProcessFromProcessName("Wow"));
    
                UInt32 Offset_nbGeneralMacros = 0x00BEAF50;
                UInt32 Offset_nbSpecificMacros = 0x00BEAF54;
                UInt32 Offset_Base = 0x00BEAF74;
                UInt32 Offset_Next = 0x10;
                UInt32 Offset_Name = 0x20;
                UInt32 Offset_Icon = 0x60;
                UInt32 Offset_Body = 0x160;
                UInt32 Mask_IsCharSpecific = 0x1000000; // Tanaris4
    
                Int32 nbGeneralMacros = BM.ReadInt(Offset_nbGeneralMacros);
                Int32 nbSpecificMacros = BM.ReadInt(Offset_nbSpecificMacros);
    
                Console.WriteLine("Found " + nbGeneralMacros + " general macros !");
                Console.WriteLine("Found " + nbSpecificMacros + " specific macros !");
    
                UInt32 Macro = BM.ReadUInt(Offset_Base);
    
                while ((Macro & 1) == 0)
                {
    
                    UInt32 Id = BM.ReadUInt(Macro);
                    String Name = BM.ReadASCIIString(Macro + Offset_Name, 16);
                    String Body = BM.ReadASCIIString(Macro + Offset_Body, 255);
                    String Icon = BM.ReadASCIIString(Macro + Offset_Icon, 255);
                    Boolean IsSpecific = false;
    
                    if ((Id & Mask_IsCharSpecific) != 0)
                        IsSpecific = true;
    
                    Console.WriteLine("Id : " + Id + " Name : " + Name + " Body : " + Body + " Icon : " + Icon + " IsSpecific : " + IsSpecific);
    
                    Macro = BM.ReadUInt(Macro + Offset_Next);
    
                }
    
                Console.ReadLine();
    
            }
        }
    }

    [C#][Copy/Pasta] Macros

Similar Threads

  1. [C#][Copy/Pasta] Skills Rank Informations
    By JuJuBoSc in forum WoW Memory Editing
    Replies: 5
    Last Post: 09-04-2010, 06:05 AM
  2. [C#][Copy/Pasta] Keybindings
    By JuJuBoSc in forum WoW Memory Editing
    Replies: 2
    Last Post: 08-18-2010, 04:06 PM
  3. [C#][Copy/Pasta] Out of process DBC reading
    By Apoc in forum WoW Memory Editing
    Replies: 51
    Last Post: 08-16-2010, 02:19 PM
  4. Replies: 47
    Last Post: 03-09-2010, 11:25 AM
All times are GMT -5. The time now is 07:15 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