r/botting • u/willoucqfd • 15h ago
General Learning to code a bot for a Unity-based MMORPG: what's your setup?
Hello,
I'd like to learn how to code my own bot to automate the most repetitive parts of a Unity-based MMORPG, like grinding, resource gathering and daily routines. It's mainly a learning project: I want to understand how it works, not just download a ready-made tool.
What I've researched so far:
- The most beginner-friendly approach seems to be computer vision: reading the screen and simulating mouse and keyboard input, rather than reading game memory or network packets.
- Python stack: OpenCV for template matching, PyAutoGUI for input, Tesseract for OCR.
- Resources: *Automate the Boring Stuff with Python* and the Learn Code By Gaming YouTube channel, which covers OpenCV game bots.
Where I'd love your input:
- Is Python and OpenCV still the best starting point, or would you recommend C# or something else?
- How do you handle the logic once detection works: state machines, behavior trees, something else?
- Any tips for making template matching reliable when the UI changes, with different resolutions, animations or overlays?
- What usually gets bots flagged by anti-cheat systems, and how do you deal with that?
- AI-assisted development: I'd like to use an AI coding assistant to help me along, but commercial models tend to refuse this kind of project. Which model and harness do you use for this? Local models, specific coding tools, anything that works well for you?
- Any other tutorials, GitHub repos or communities you'd recommend?
I'd really appreciate your recommendations on your setup and workflow, so I can get started on the right foot and avoid asking too many naive questions.
Thanks in advance!