bearkillerPT / pokeMMOFarmBoye

4 stars 0 forks source link

This is a tool for pokeMMO automated farm! Built with fun in mind :))

PokeGame

This class has many utility functions for manipulating the game's input:

Farm.py

Farm Abras funtion

This was the very first function developed for this bot and it's not very easy to setup but it's a good example of how to use the bot! It has a walking function that's random but tries to keep itself in the lower right and preferes to walk up and down since the farm area in kanto is around 3*15. It's programmed to use sleep powder in the first move so that you can throw at least 2 poke balls! Watch it sped up!

Shiny Detection

This was the hardest function to implement requiring a bit of research! The best way i found to detect shinies was to use opencv and pytesseract! Checkout pokeGame.py's check_for_shiny(self)! The idea is to extract color using HSV decomposition and then pytesseract to accuratly detect the text name of pokemons in battle! Since pokemmo writes Shiny in the name of the pokemon if it is one! Keep in mind that IF YOU USE ANY CUSTOM STRINGS make sure to remove any alteration to the name of shiny pokemons! Billy's string put two white squares around the name.

Push notifications

I've implemented a push notification system using the gotify api! You should download the gotify server on github and run the exe. This will create a server on port 80 and you can access a web ui through your browser on localhost. Login with the default credentials: Username: admin Password: admin Setup an application and copy the token to the code. Download the gotify app on your phone and use your local network ip to connect to the server. You should now be able to receive notifications on your phone!
Remember to always turn on the server before running the bot!

I love doing openCV bots for my favorite games since if you don't abuse the amount of time the bot is running there's no real danger of being bannned! Hopefully this will be of use for you!