d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Learning To Create *bots* So To Speak
Add Reply New Topic New Poll
Member
Posts: 4,609
Joined: Mar 9 2008
Gold: 2,937.00
Jul 21 2012 10:14pm
I have always been interested in how others create programs to use the information given from the game to do certain tasks.

Say I wanted to bot on Skyrim to lockpick a chest over and over and when I am out of lockpicks, to go to a designated vendor and buy more lockpicks and continue.

I wanted to know what language to start in. I am very well versed in C, C++, Java and a little Python. I wanted to know how I get the information from the game and relay it to the running program to check for conditions and then to move the mouse events to do certain tasks no matter what resolution my computer is on to find the correct spot.

A tutorial website and or link would be nice or a good book to get me started.

Thank you jsp
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jul 21 2012 10:43pm
obviously not well versed enough. google code/dll injection. you basically have to hook the games process and functions to get your required info.
Member
Posts: 4,609
Joined: Mar 9 2008
Gold: 2,937.00
Jul 21 2012 11:10pm
So I would have to find the dll files that controll certain actions or relay information from the game to me that says this item is "silver"

So I can inject my code into those files and run from there?
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jul 21 2012 11:13pm
Quote
Say I wanted to bot on Skyrim to lockpick a chest over and over and when I am out of lockpicks, to go to a designated vendor and buy more lockpicks and continue.


thats pretty complex for someone who's never done it before. you might want to have short term goals instead.
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Jul 21 2012 11:24pm
Quote (carteblanche @ Jul 22 2012 01:13am)
thats pretty complex for someone who's never done it before. you might want to have short term goals instead.


this.

you have to locate the process and then inject your code/dll into the process or hook the functions via other methods. i would start off on smaller games or hell even code your own. make a simple rpg where a player has to enter a certian number to cast an normal attack or a spell which deals a random damage to an computer opponent that does the same. from there learn how to inject your code from outside the process and to manipulate that processes functions from outside the application itself.

id just tell you to give up now if you want to try to "create a bot" for any game that has been produced within the last 15 years. most of them have anti debuggers as well as other methods to prevent code from being injected into its process.
Member
Posts: 4,609
Joined: Mar 9 2008
Gold: 2,937.00
Jul 21 2012 11:24pm
Quote (carteblanche @ Jul 22 2012 01:13am)
thats pretty complex for someone who's never done it before. you might want to have short term goals instead.


Do you know a place for tutorials?
Member
Posts: 2,736
Joined: Nov 28 2009
Gold: 34.00
Jul 22 2012 06:07am
Quote (NamelessPrince @ 22 Jul 2012 07:24)
Do you know a place for tutorials?


Try The Internet
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll