[C#] Getting started with making bots menu

User Tag List

Results 1 to 12 of 12
  1. #1
    Aethon's Avatar Private
    Reputation
    3
    Join Date
    Dec 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C#] Getting started with making bots

    I've been a leecher on these forums for a while now and I've seen that quite a whole lot of people are interested in making bots for world of warcraft.

    So I thought I'd make a guide on how to get started.

    Requirements
    • MVS 2010
    • BlackMagic


    Start off by creating a new C# project (.NET Framework 3.5)

    And add the 2 BlackMagic DLL's as reference.

    The Code
    Start of with the following code
    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Magic;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                
            }
        }
    }
    Notice the "Using Magic;" this is the BlackMagic library.

    Now let's call the DLL, followed by finding the process and checking if the process was found. If it is found then print a "successful" message else print a error message.

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Magic;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                BlackMagic BMagic = new BlackMagic();
                if (BMagic.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow")))
                {
                    Console.WriteLine("Found and Attached the World of Warcraft Process!");
                }
                else
                {
                    Console.WriteLine("The World of Warcraft Process was not found!");
                    Console.ReadLine();
                }
            }
        }
    }
    Now let's get World of Warcrafts Base Address and read the player name as well as print it.

    Code:
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Magic;
    
    namespace ConsoleApplication1
    {
        class Program
        {
            static void Main(string[] args)
            {
                BlackMagic BMagic = new BlackMagic();
                if (BMagic.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow")))
                {
                    Console.WriteLine("Found and Attached the World of Warcraft Process!");
                    IntPtr BaseWoW = BMagic.MainModule.BaseAddress;
                    string pName = BMagic.ReadASCIIString((uint)BaseWoW + 0x99B077, 256); //4.3.0 [15005]
                    Console.WriteLine("Character name is " + pName);
                    Console.ReadLine();
                }
                else
                {
                    Console.WriteLine("The World of Warcraft Process was not found!");
                    Console.ReadLine();
                }
            }
        }
    }
    And that's all there is too it.

    Have a good one.
    Last edited by Aethon; 12-26-2011 at 04:25 AM.

    [C#] Getting started with making bots
  2. #2
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    208
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is more of a tutorial rather then a release. What are the 2 BlackMagic DLLs and why does it have to be .NET 3.5?

  3. #3
    gaxton's Avatar Private
    Reputation
    1
    Join Date
    Dec 2011
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A real good guide for a newbee just like me!

  4. #4
    Aethon's Avatar Private
    Reputation
    3
    Join Date
    Dec 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by miceiken View Post
    This is more of a tutorial rather then a release. What are the 2 BlackMagic DLLs and why does it have to be .NET 3.5?
    This was originally posted in the Bots & Programs section which required a prefix.

    And I trust that people know how Google works.

  5. #5
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This won't really help anyone make a bot... Guides teaching about the object manager, ADT file format, and the lua engine will help people make bots. Being able to read your character's name is rather useless, especially if you're not using the virtual methods to retrieve it.

  6. #6
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    208
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by lanman92 View Post
    This won't really help anyone make a bot... Guides teaching about the object manager, ADT file format, and the lua engine will help people make bots. Being able to read your character's name is rather useless, especially if you're not using the virtual methods to retrieve it.
    Exactly my point. Your "release" is vague and inaccurate, and it's useless. By spending 10 minutes in these forums, you should find all the code you need to make a bot.

  7. #7
    Hyssop's Avatar Member
    Reputation
    1
    Join Date
    Dec 2011
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From a quick glance, I don't think it will even compile, as the following line appears to be wrong:
    Code:
    string pName = BMagic.ReadASCIIString((uint)BMagic + 0x99B077, 256); //4.3.0 [15005]
    BMagic is an instance of a class, not the base address.

  8. #8
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1584
    Join Date
    May 2010
    Posts
    1,829
    Thanks G/R
    188/531
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Sorry but this is nothing new... Repeating what you see is not really contributing back to the community. This is a slimmed down version of http://www.ownedcore.com/forums/worl...g-writing.html ((Tutorial) Starting WoW-Memory Reading/Writing)
    I know its fun to discover new things and you want to share what you have learned, but if its just a repost plz keep it to your self. I mean it in the nicest way... As you will be criticized for not reading at the rules.
    Announcements - WoW Memory Editing

  9. #9
    namreeb's Avatar Legendary

    Reputation
    658
    Join Date
    Sep 2008
    Posts
    1,023
    Thanks G/R
    7/215
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    The path to hell...

  10. #10
    s2h's Avatar Member
    Reputation
    1
    Join Date
    Apr 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    string pName = BMagic.ReadASCIIString((uint)BMagic + 0x99B077, 256);
    wrong here, should be string pName = BMagick.ReadASCIIString((uint)BaseWoW + 0x99B077, 256);

  11. #11
    Aethon's Avatar Private
    Reputation
    3
    Join Date
    Dec 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the reason I didn't post it in this section to begin with. I knew it was to vague to be accepted of any knowledgeable person in this section. But at the same time it would be appreciated by someone who doesn't spend that much time in this section.

  12. #12
    fortiZ's Avatar Contributor
    Reputation
    144
    Join Date
    Dec 2011
    Posts
    143
    Thanks G/R
    18/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's the thought that counts.

Similar Threads

  1. Getting started with bots.
    By GodRubin in forum Neverwinter
    Replies: 3
    Last Post: 10-14-2021, 11:04 PM
  2. [Release] [C#] Getting started with making bots
    By Aethon in forum World of Warcraft Bots and Programs
    Replies: 0
    Last Post: 12-25-2011, 05:04 PM
  3. Replies: 47
    Last Post: 03-09-2010, 11:25 AM
  4. [Need Help] get started with C#
    By 96engvall in forum Programming
    Replies: 6
    Last Post: 07-22-2009, 10:09 PM
  5. [Question] Getting started with modelediting?
    By Ezelaap in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-03-2009, 12:37 PM
All times are GMT -5. The time now is 03:44 AM. 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