Giter Site home page Giter Site logo

dindo-bot's Introduction

logo Dindo Bot

Python GTK OS

Farming bot for Dofus game written in python & GTK.

🚧 version 3 is work in progress, you can test it or contribute on the v3-alpha branch.

screenshot

What's a bot?

A bot is a software that emulates a real game client in order to automate some tasks. Dindo is a pixel bot, which means that it uses screen pixels (+ your mouse & keyboard) to emulate actions & keep tracking the progress in game.

⚠️ Better know that this bot is only available on Linux for now.

Features

  • Easy control: play, pause/resume or stop the bot like if you were using your favorite music player.
  • Smart bot: Dindo knows when your connection turns off and will wait for it to get back before proceeding or will automatically pause itself if it takes a long time.
  • Multi accounts management: you don't have to worry about switching between your accounts, Dindo can handle that for you 😉.
  • Integrated Path & Maps builder: easily create your own custom paths & farming maps.
  • Keyboard shortcuts.

Use Cases

  • Auto-connect to your Dofus account(s).
  • Move around the map & save time for long dungeon paths, paths pull requests are welcome 🙏.
  • Farming & jobs (:construction: this part still needs to be improved, also, the bot cannot handle fights yet :warning:).
  • Automated actions like flood 💬.

Installation

First, clone this repository using git or just download & unzip it:

git installation
  sudo apt install git
git clone https://github.com/AXeL-dev/Dindo-Bot.git

Then, open a terminal & launch the installation script as below:

cd /path/to/bot
chmod +x install.sh
sudo ./install.sh

Once installed, you can run the bot from your app launcher or using the command below:

dindo-bot

Tutorials

To Know

  • You cannot use your computer for something else while Dindo is running.
  • Since the bot simulates normal human behavior, you have less chances to get spotted by the Anti-bot (less is not 0).

Tips: For more safety, try changing bot paths from time to time.

  • The main goal of this bot is to simplify repetitive tasks and reduce boredom during your gameplay.
  • We do not encourage multi-boting and do not support it anyway (it destroys the server economy 😬).
  • Windows & Mac OS are not yet supported #1 #8.

Version History

Contributing

Want to contribute? Check the todo list. You may also read the contributing guidelines.

License

Dindo-bot is licensed under the MIT license.

dindo-bot's People

Contributors

axel-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dindo-bot's Issues

[Question] How does the bot look for resources?

Hello friend!

Would you help me? I don't understand anything about python hehehehe

What do you use to make the bot look for the resource?

I currently have a selfbot that searches for the entire image of the resource (I use it in mines). The biggest difficulty is that frequently (3/4 months) some images stop matching and I have to take prints again...

From the videos it looks like you use color matching and that the bot looks specifically in the area that you clicked on to store the data. That's right?

Dofus 1.29

Hello,

This bot seems amazing and it designed only for Linux :)
It's customizable for dofus 1.29 ?

creating on windows

hi , m tryining to create a bot on windows using python , I v seen this project and pixus bot m asking if there any way to send fake clicks to the client like on pixus bot using python i actually work with pyautogui but the windows must be focused .

screen always None

screen = Wnck.Screen.get_default() # returning always NoneType

Wnck-WARNING **: 09:51:38.037: libwnck is designed to work in X11 only, no valid display found

Debian Buster

I want to use this bot on windows 10

Yo AXel , I'm a moroccan guy who is really passionate about dragodinde breeding , i want to use this bot for automatisation of the tasks of dragodinde breeding , if you find time please help me .

My regards

Bot freezes up and does not collect resources

Moving from map to map works fine for me when running the bot, but when it gets to the collect action it freezes up.

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/home/jae/Desktop/Dindo-Bot/threads/bot.py", line 42, in run
    self.interpret(instructions)
  File "/home/jae/Desktop/Dindo-Bot/threads/bot.py", line 102, in interpret
    self.collect(instruction['map'], instruction['store_path'])
  File "/home/jae/Desktop/Dindo-Bot/threads/job.py", line 39, in collect
    screen = tools.screen_game(self.game_location)
  File "/home/jae/Desktop/Dindo-Bot/lib/tools.py", line 96, in screen_game
    raw = root.get_image(x, y, width, height, X.ZPixmap, 0xffffffff)
  File "/usr/lib/python2.7/dist-packages/Xlib/xobject/drawable.py", line 266, in get_image
    plane_mask = plane_mask)
  File "/usr/lib/python2.7/dist-packages/Xlib/protocol/rq.py", line 1369, in __init__
    self.reply()
  File "/usr/lib/python2.7/dist-packages/Xlib/protocol/rq.py", line 1389, in reply
    raise self._error
BadMatch: <class 'Xlib.error.BadMatch'>: code = 8, resource_id = 294, sequence_number = 13, major_opcode = 73, minor_opcode = 0

This is the error that shows up in terminal, I also have tried disabling Check resources color.
Thanks for replying! This is a really cool project you are working on.

How do you get the ID from an account

Hello, I don´t know too much about this. I just wanted to know how bots can get instantly the account ID when spam you on PM.
I only know how to get it on the website, not in-game.
Thanks.

How do I configure to collect resources in different maps?

I'm having issues to collect resources in different maps, I can create one map file ( in bot) and one path file, but how can I set up to change the map after the resources's over , change the map and then collect the resources of this other map ?

HOW TO INSTALL

I'm sorry to bother you, but I'm having trouble executing the command

chmod +x install.sh

This is the error:

Package python-gi is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python-gi' has no installation candidate
E: Unable to locate package python-xlib
E: Unable to locate package python-pil

could you help me fix it?
thanks for your availability and for your great work

win

lu, je voulais savoir s'il y aura une version ou le bot sera compatible avec windows dans le futur ?

Game Window

How to use the "Game window" option?, because you do not select

Xlib.protocol.request.QueryExtension

Distro: devuan jessie (debian jessie based)
When: when opening the bot with python bot.py
Error:
Xlib.protocol.request.QueryExtension Traceback (most recent call last): File "bot.py", line 11, in <module> bot = BotWindow() File "/home/bot/Desktop/Dindo-Bot/gui/main.py", line 30, in __init__ self.create_header_bar(title) File "/home/bot/Desktop/Dindo-Bot/gui/main.py", line 162, in create_header_bar preferences_button = Gtk.ModelButton(' Preferences') File "/usr/lib/python2.7/dist-packages/gi/module.py", line 320, in __getattr__ return getattr(self._introspection_module, name) File "/usr/lib/python2.7/dist-packages/gi/module.py", line 139, in __getattr__ self.__name__, name)) AttributeError: 'gi.repository.Gtk' object has no attribute 'ModelButton'

Thanks.

Issue during collecting

Why do I have this error during collecting wheat ?

File "/home/name/Desktop/Dindo-Bot-master/lib/parser.py", line 115, in parse_color
if color.startswith('(') and color.endswith(')'):
AttributeError: 'tuple' object has no attribute 'startswith'

Mac OS support

Hello,

I can see on the screenshot from the README a MacOS interface what are the part of the code that have to be changed to have support on MacOS when I tried sudo ./install.sh of course apt isnt available on mac so I modified the script using Homebrew. But there is still error the install.sh doesnt work...

How did you manage to make it work on MacOS (screenshot read me)

MAC OS support

This is a reminder for MAC OS support lack. To help you'll find below a list of things that may need or not to be changed.

Things already supported on MAC:

  • pyautogui, but still need to be fully tested
  • the GTK part

Things that absolutely need to be changed:

  • gui: i'm not talking about the GTK code here 'cause it should be compatible, but some other code in the gui was only designed for linux
  • some libs are also only crafted for linux, don't forget to find equivalent packages for xlib & any other linux only packages, on windows the Windows API python package should do the trick, but i have no idea about MAC OS
  • may also need to check threads (even if the most of threads use functions from libs)

ValueError: Namespace Wnck not available for version 3.0

For problems with manjaro I installed Antergos and throw the next error:

`
Traceback (most recent call last):
File "bot.py", line 9, in
from gui.main import BotWindow
File "/home/gambl3r/Descargas/Dindo-Bot-master/gui/main.py", line 7, in
from lib import tools, logger, data, parser, settings, accounts, maps
File "/home/gambl3r/Descargas/Dindo-Bot-master/lib/tools.py", line 8, in
gi.require_version('Wnck', '3.0')
File "/usr/lib/python3.7/site-packages/gi/init.py", line 131, in require_version
(namespace, version))
ValueError: Namespace Wnck not available for version 3.0

`

Not recognizing

Let's start of by thanking you for your work! it works amazing!.
I only ran in the issue that it does not work for me with iron and nettles. Is this a known issue or is there something I can do to fix this?

My python skills are not that great yet but maybe in the future I can help develop some things.

Any help for collect resources

Hello,

I started using DIndo-Bot for collecting resources on only one map.
I have selected resources, save, create a path for collecting, however there is only on click to select the resource but none to perform the action.

Any ideas on how can we do it ?

Regards,

Can't find Game Window

Hello Axel,
I wanted to try your bot but I can't seem to ding my game window. How do you configure it ?

Bug: game window resizing

As @ghost saids in #16 :

The bot inconsistently resizes the game window both using window decoration height option and automatic resizing. This does not affect farming, however, it does cause the pod bar percentage to be inaccurate.

I am wondering if this is because the bot resizes to the middle of the screen and my laptop resolution is not large enough (the bottom of the bot is slightly hidden)

How to download?

Hey, I don't completely understand how to download this bot. Could you please explain it to me? My discord is SღFié♥ #3321

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.