Results 1 to 12 of 12
  1. #1
    athrun200's Avatar
    Join Date
    May 2019
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0

    Which language should I use to write bots for games as a beginner?

    Hi all, it's my first post on this forum.
    I have 1 year python programming mainly for scientific computations.

    Today, I suddenly wanna do something fun with my coding skills, and I found this forum.
    I want to do some coding projects during my free time for fun, and it seems writing a bot is the most interesting thing to me at the moment.

    I would like to beginning with something simple, for example, a bot that deals with mouse clicks for browser games.
    Once I get enough experience, I would like to develop some trainers that can read memories and do different actions according to the values (For example, if HP is less than 50, heal the character).

    Can anyone suggest me some directions? After doing web searching for several hours, people keep talking about different languagues such as VB, VC, AutoIT and even Python. Since there's so many choices, I really have no idea where to begin.

    Any comments are welcome!
    Last edited by athrun200; 05-16-2019 at 12:45 AM.

  2. #2
    MikeRohsoft's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Santos
    Posts
    797
    Reputation
    593
    Thanks
    26,317
    To simulate clicks, i would use AutoIT or AHK, but for a Browsergame Bot, you write for ussual a seperate Program, which simulates the Requests and not the clicks ^^. Such a Project is maybe too much to begin with. Start straight with the Trainer, you don't need coding experiences for it, you only need "Cheat Engine" for it. Solve it's build in Tutorial and you are good to go

  3. #3
    athrun200's Avatar
    Join Date
    May 2019
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    I see. I always think that writing a bot is easier than making a trainer.
    As for cheat engine, I tried it last week, and it's super awesome.
    For offline games, I can simply search and modify the memory values to make my character super strong.

    But what I am trying to do is to make a program for online game, that can read the memory and do different things for me.
    For example in Diablo, I want to have a program that monitors my HP, when it is lower than a certain value, it sends the key press to heal my character.
    Or even better, writing a program to automatically kill monsters. When the HP potion is used up, go back to the city.
    I am not sure if it is called a trainer anymore. But it is basically the direction that I want to go.

    You can say it's a tiny assistant for online games?

  4. #4
    MikeRohsoft's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Santos
    Posts
    797
    Reputation
    593
    Thanks
    26,317


    You just imaginate it easier, then it is ^^
    You want to Monitor your HP and if it's lower, it sends a key to heal = totally easy and possible with cheat engine
    Create a new Interval Method in LUA, check there if the HP is lower then X and use the function 'doKeyPress' if it's true

    A Program to automaticly kill monsters ist MUCH more complicated, you need the HP and Coordinates of every Units in the Game AND your program need Path's or it needs Meshdata of the Map, to find paths by itself. This is in anycase not "tiny" anymore

  5. #5
    athrun200's Avatar
    Join Date
    May 2019
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    I see. Looks like LUA is the place for me to start.
    I wonder if they have similar function for mouse click such as doMouseClick(X,Y), so that I can pass in the X and Y coordinates of the screen to emulate mouse click?

    I think I will just learn it step by step, and write a bigg

  6. #6
    Snkrs2's Avatar
    Join Date
    Mar 2018
    Gender
    female
    Location
    freaking texas
    Posts
    18
    Reputation
    10
    Thanks
    2
    My Mood
    Twisted
    Quote Originally Posted by MikeRohsoft View Post


    You just imaginate it easier, then it is ^^
    You want to Monitor your HP and if it's lower, it sends a key to heal = totally easy and possible with cheat engine
    Create a new Interval Method in LUA, check there if the HP is lower then X and use the function 'doKeyPress' if it's true

    A Program to automaticly kill monsters ist MUCH more complicated, you need the HP and Coordinates of every Units in the Game AND your program need Path's or it needs Meshdata of the Map, to find paths by itself. This is in anycase not "tiny" anymore
    dead ass didnt even think how hard it'll be lol.

  7. #7
    warrishere10's Avatar
    Join Date
    May 2019
    Gender
    male
    Posts
    15
    Reputation
    26
    Thanks
    1
    It depends on the game, in general you can't go wrong with C++.

  8. #8
    scriptkiddz007's Avatar
    Join Date
    Jun 2019
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    you can go pretty far with cheatengine and the python libary "pywin32" since u already know some py

  9. #9
    GRegeargaergergergh's Avatar
    Join Date
    Feb 2019
    Gender
    female
    Location
    123
    Posts
    26
    Reputation
    24
    Thanks
    3
    Python is a good starting point

  10. #10
    becksss's Avatar
    Join Date
    Jul 2019
    Gender
    male
    Posts
    14
    Reputation
    10
    Thanks
    0
    My Mood
    Fine
    depends on the game but start learn python

  11. #11
    sharpMouse's Avatar
    Join Date
    Feb 2019
    Gender
    male
    Posts
    7
    Reputation
    10
    Thanks
    4
    You can keep using Python.

    It has PIL library which allows you to capture screen. You can also send key and mouse events by using libraries with Win32 API wrappers.

  12. #12
    PhluxMedia's Avatar
    Join Date
    Jul 2019
    Gender
    male
    Location
    The Cloud
    Posts
    107
    Reputation
    10
    Thanks
    4
    My Mood
    Bashful
    I would suggest using C# most don't think to use it anymore for game bots but it's a very stable language and dependable as well.

Similar Threads

  1. vb.net | how to make hack tools / bots for facebook game
    By Lautanapi in forum Visual Basic Programming
    Replies: 3
    Last Post: 01-07-2014, 11:02 AM
  2. Having Trouble Running This Program
    By Orteez in forum Homework & Learning Section
    Replies: 7
    Last Post: 11-06-2010, 09:19 PM
  3. [SOLVED]How Do I start writing my Own Mods?
    By MrAnderson in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 09-01-2010, 08:04 AM
  4. [SOLVED] Does anyone have a good Proxy program?
    By ☣ WhySoSerious? ☣ in forum CrossFire Help
    Replies: 5
    Last Post: 08-10-2010, 11:00 PM
  5. HELP: i have some gp hacks but how to deactivate hackshield???
    By petrusman in forum Combat Arms Europe Hacks
    Replies: 13
    Last Post: 07-11-2009, 11:59 AM