Gamerium / Dindo-Bot

:robot: Farming bot for Dofus game
MIT License
113 stars 31 forks source link

Dofus 1.29 #7

Closed YannickCardini closed 4 years ago

YannickCardini commented 4 years ago

Hello,

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

AXeL-dev commented 4 years ago

Hello,

Hey :)

This bot seems amazing and it designed only for Linux :)

Yes, unfortunately, i stopped using windows & because no volunteer developers shows their interest to help on developing the windows version i'm not really planning to make a support for windows or mac os.

This said, If you are searching for a windows compatible bot, you can try pixus bot but keep in mind that it's no longer maintained.

It's customizable for dofus 1.29 ?

I didn't really try it, but it should work on Dofus Retro/1.29 (you can also try the first version which may work fine too).

YannickCardini commented 4 years ago

Very well, thanks for your answer, I only use Linux between. I didn't succeed to make it run on Dofus Retro but if you confident about it I will try again with the first version or accomodate it to make it work.

AXeL-dev commented 4 years ago

Very well, thanks for your answer, I only use Linux between. I didn't succeed to make it run on Dofus Retro but if you confident about it I will try again with the first version or accomodate it to make it work.

:thinking: what didn't work exactly? if you just couldn't see the game window name in the choice list then it should be related to the game instance name of Dofus Retro (check the part of the code below)

https://github.com/AXeL-dev/Dindo-Bot/blob/2c20ddaef23d06909b743b824a5f13b14276a48f/lib/tools.py#L29

You could simply get the instance name of the opened game window from your system monitor (for example) & change the value in the line above.

YannickCardini commented 4 years ago

You could simply get the instance name of the opened game window from your system monitor (for example) & change the value in the line above.

if instance_name == 'dofus' Thanks he did work, the window is now focused and I can make some custom jobs :) As excepted I can't automate the moving part (is not the same system to go from one cell map to another one in dofus retro). I don't really get how the job farming work , do you have the rgb color of each resource in an array (wheat color, wood color, coal color ect ...) ?

AXeL-dev commented 4 years ago

As excepted I can't automate the moving part (is not the same system to go from one cell map to another one in dofus retro).

Simply use the click action (the one with a mouse icon) & combine it with the Wait (Monitor game screen) action, this way you could easily simulate a move action in Dofus Retro.

I don't really get how the job farming work , do you have the rgb color of each resource in an array (wheat color, wood color, coal color ect ...) ?

Yes, i store the position (x & y pixel position) + the color (rgb) in an array, & then check if the pixel have the right color before clicking on it, however, you can disable the color check from the bot settings (only in v2 i guess) & then the bot will always click on all pixels even if the pixel color don't match.

Adonist commented 4 years ago

Does it need to be compiled? Also, does it work with private servers as well or just original?

Thanks

Baumanar commented 4 years ago

@YannickCardini How do you run retro on linux ? do you use wine ?

AXeL-dev commented 4 years ago

Does it need to be compiled?

No, python is an interpreted language so there is no need for a compiler. The compilation runs during the execution of the program => JIT (Just In Time).

Also, does it work with private servers as well or just original?

I didn't really try it, i stopped dofus since version 2.48 so i'm not really sure which versions of the game still work, so just test it by yourself :wink:

Adonist commented 4 years ago

Sorry my bad,

I saw that on the mobile phone and I had a limited view from and didn't see the code or any of the instructions. It worked fine here on Linux anyway.

Thanks