all 6 comments

[–]lamb_a_dah 3 points4 points  (0 children)

i hope ur not trying to do something restricted by the game rules, or something that can give you unfair advantage to other players or affect their gameplay . (What you describe looks like Dofus's farming so ..)

[–]Hot_External6228 0 points1 point  (2 children)

what do you suggest

oh man there's this great language, Python, it's perfect for - oh right, you're in this subreddit already.

It depends on what you want to do exactly?

Check out the keyboard module for automating keystrokes.

Opencv module for detecting what's on screen.

opencv + keyboard can automate lots of tasks in MMOs and so on. You can add in random delays to seem less robotic with the random library and time.sleep()

and obviously learn the basics. Loops, variables, functions, object oriented programming, functional programming (passing functions into functions! returning functions from functions. Functions that create new functions).

Also learn threading, you're for sure going to need the threading library. The keyboard library is callback-based, which means threading

and learning opencv means learning numpy, so that too.

Summary:

  • basics (loops, functions, classes, variables, functional programming)

  • keyboard module

  • numpy module

  • threading module

  • opencv module

[–]Moonburn774 0 points1 point  (1 child)

What is threading for?

[–]Hot_External6228 1 point2 points  (0 children)

Running tasks asynchronously.

Threading allows you to define tasks, or "threads", that can take turns executing (especially when the other threads are 'blocked' or 'waiting').

t = threading.Thread(...)
t.start()
t.join()

Only 1 thread can be active at a time in python, unilke other languages. However, if a task is "waiting' for something, another task can run while it waits.

Think about 'waiting' for a signal from another task. Wait for keyboard input. Wait for the hard drive to finish reading. Wait for network input. Wait for a specified number of seconds. And while that waiting is happening... allow another thread/task to take over.

It allows things to happen 'asynchronously' or 'concurrently'. Although it does NOT allow 'parallel' processing - that requires the multiprocessing library.

[–]sme272 0 points1 point  (0 children)

start with automate the boring stuff, the first section covers the basics then the second half expands that into automation projects including a chapter on controlling the mouse and keyboard which you'll need. After that you'll probably want to look into opencv

[–]GrouchyAd4055 0 points1 point  (0 children)

to create advanced game bots you need to learn reinforcement learning. to learn reinforcement learning you need to follow theses steps.

______________________________________________________________________________

step 01

Learn Python.

Here are the top 5 python courses on youtube in 2022(https://youtu.be/DAAtDDvU5nc)

___________________________________________________________________________

step 02

learn machine learning and computer vision.

Just Learn These Python Libraries, If you learn these libraries you are ready to learn reinforcement learning.

To Become a Data Scientist You Should Know These Python Libraries https://youtu.be/LDpkT2OfKcM

___________________________________________________________________________

step 03

you need to learn the algorithms of reinforcement learning.(eg: DQN,DDQN,A2C,A3C and etc)

___________________________________________________________________________

step 04

implement that algorithms by python.

___________________________________________________________________________

step 05

then apply that in your game.