A bot for the game destinyrpg.com
Long story short. No. The developer does not want automation scripts.
Using this script will get you banned if caught.
You need to install this using tampermonkey or greasemonkey.
Firefox: Greasemonkey
Chrome: Tampermonkey
Once you have installed the extension, Click here to install the script.
The script is incomplete, And will eventually break when the website gets updated or when the developer finds this script and breaks it.
I will NOT be updating this. You are welcome to contribute.
The bot uses button text to detect what to do next. If the text changes you will need to update these values.
These are important for navigating and detecting enemies.
Like bot actions, This dictionary is to detect enemies to attack. The values are used to detect what attacks to use.
See attackString
This function is run every tick, By default it's 1 tick per 1000ms. You can add a temporary delay with bot.delay
If you have a bad connection, I recommend increasing bot.interval
Probably the most important action. This simply checks if an action exists then attempts to click the element on the page.
If the element does not exist it will not fire. Only reason it won't exist is if the page hasn't finished loading or you are on the wrong page.
The main actions of the bot take place here in this order:
- Can we return to patrol?
- Am I low health? Should I run?
- Is my health less than 90%? Should I take cover?
- Are there any enemies in the area? Click Nothing Nearby
- Run away if the enemy is -1
- Use ultra attack
- use heavy attack if ultra is not ready // kick chest
- use special attack if you can't use heavy // smack chest
- use regular attack if you can't use special // hit chest
- If you reach this point the bot is fucked. It should have found something to do already.
Search for the lowest health enemy there is and set it as the current target
Called when a new page loads. Does nothing right now.
Gets xp / glimmer / health ect
Can later be used to calculate time required to level up.
Important function, Gets enemy health / damage / shield.
Used to detect when to use heavy, ultra, special or regular attacks depending on their health and how much damage you output.
Build a dictionary of actions that the bot can click.
Very important function. Is used to get information like health or enemy and player.
Some main functions of the bot will break if this changes, But it's fairly simple to fix.
h = hex, r = rgb, c = color(string), element = tag, io = indexOf
See this for example.
Enjoy.