Why C#? menu

User Tag List

Thread: Why C#?

Results 1 to 6 of 6
  1. #1
    JohnnyG's Avatar Private
    Reputation
    1
    Join Date
    May 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why C#?

    Hello,
    I just wanted to ask if there is any specific reason why the majority of you guys use C#/VB.NET for your WoW-Bots etc.
    Isn't C++ much easier to handle detoured functions, hide injected DLLs etc?

    Sry, but I am a complete newb to WoW-Engine( I have been coding CoD-Series Hacks for a while )
    and I have no idea of how all this Bots work.
    Do you research WoW-Apis via the internet, open up OllyDbg and search for the functions ( for example via LF "Usage:" strings ) and then, lets say,
    call these functions within a remote thread or just within injected DLLs?
    Or do most of the Bots simulate "keypresses" and move or cast abilites that way?

    As I have been looking through this forum I could most likely only find some offset posts or some code example with ( for me ) unknown
    classes and member functions etc.

    Since I am very interested into starting to code a WoW-Bot/Hack/whatever, I am very happy of any answer

    Thanks in advance
    Last edited by JohnnyG; 05-31-2012 at 06:38 AM.

    Why C#?
  2. #2
    miceiken's Avatar Contributor Authenticator enabled
    Reputation
    209
    Join Date
    Dec 2007
    Posts
    401
    Thanks G/R
    7/9
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code cleaves best cleaves

  3. #3
    Xelper's Avatar ★ Elder ★
    Reputation
    1024
    Join Date
    Mar 2007
    Posts
    860
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It really is personal preference... that is all. I already knew C# before I started doing any reverse engineering, so I stayed with C#. There are also libraries like fasm and BlackMagic that a lot of people use that make working with external processes far easier in .NET.

    On your question of how we find things... Just look at the InfoDump thread. Long story short, Blizzard accidentally released a debug build a couple times on PTR and in alpha so we have a decent list of functions... both their name and addresses.

    http://www.ownedcore.com/forums/worl...mp-thread.html ([WoW][4.3.4.15595] Info Dump Thread)

    Obviously other ways to do things, but this makes it far easier.
    Last edited by Xelper; 05-31-2012 at 09:38 AM.

  4. #4
    JohnnyG's Avatar Private
    Reputation
    1
    Join Date
    May 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Xelper View Post
    It really is personal preference... that is all. I already knew C# before I started doing any reverse engineering, so I stayed with C#. There are also libraries like fasm and BlackMagic that a lot of people use that make working with external processes far easier in .NET.

    On your question of how we find things... Just look at the InfoDump thread. Long story short, Blizzard accidentally released a debug build a couple times on PTR and in alpha so we have a decent list of functions... both their name and addresses.

    http://www.ownedcore.com/forums/worl...mp-thread.html ([WoW][4.3.4.15595] Info Dump Thread)

    Obviously other ways to do things, but this makes it far easier.
    Crazy shit, I was like WTF when I saw the InfoDump thread... I thought someone would reverse the offsets and then collect them all together!
    But thanks for clearing me up

    Just one more question:
    I see people coding their bots with Autoit and I see them talking about some Glieder profiles or w.e.... Do they do math calculations (e.g. with sin, cos, and tan) in order to calculate the difference between "Target" and "current aimvecs"(kinda how a Aimbot works) and then let the Player look into the direction ( e.g. Mining ) or do they send scripts to the WoW-Engine and let WoW do all the stuff by just passing the e.g. Mine or some waypoints to a WoW-Function?

    Thanks in advance

  5. #5
    Xelper's Avatar ★ Elder ★
    Reputation
    1024
    Join Date
    Mar 2007
    Posts
    860
    Thanks G/R
    0/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    More than one way to do things...

    A lot of bots use click to move to make the character move, you simply pass the coordinates to WoW then set some flag in the CTMStruct and the game attempts to move to those coordinates. There are smoother ways to do this, and if you don't handle this right your bot will look like a bot.
    Some of them call the interact function directly (whatever that may be)
    Some of them set the mouseover GUID offset to what they want to interact with then send the hotkey for interact with mouseover.

    For more 'complex' bots where you want to face an object like for example PVP you will just need to calculate yaw/facing using atan2. Nothing major.

    If you aren't experienced with WoW's DBC/map files you will probably want to go with a hardcoded waypoint system before you tackle pathfinding.

    Chances are very high that if you need to know about any one topic a bit of searching will find a discussion on it somewhere on this forum or elsewhere.

  6. #6
    JohnnyG's Avatar Private
    Reputation
    1
    Join Date
    May 2012
    Posts
    5
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you

Similar Threads

  1. Why Pay for WOW Hacks?
    By LeGeNdZ in forum World of Warcraft Exploits
    Replies: 72
    Last Post: 04-12-2007, 04:57 AM
  2. Why my server is better than yours (a screenshots thread)
    By Liania in forum World of Warcraft General
    Replies: 15
    Last Post: 02-14-2007, 11:00 PM
  3. This is why we are all being banned
    By Kru2 in forum World of Warcraft General
    Replies: 23
    Last Post: 01-05-2007, 08:10 PM
  4. There is no good hacks anymore why?
    By cirko in forum World of Warcraft General
    Replies: 5
    Last Post: 08-31-2006, 07:59 PM
  5. Whats your favorite instance and why?
    By Bossman4 in forum Community Chat
    Replies: 11
    Last Post: 07-12-2006, 05:49 PM
All times are GMT -5. The time now is 02:08 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