ensingm2 / SteamMonsterGameScript

A Javascript automator for the 2015 Summer Steam Monster Minigame
78 stars 29 forks source link

SteamMonsterGameScript

A Javascript automator for the 2015 Summer Steam Monster Minigame

DISCLAIMER: I take no responsibility for the use of this program, or any negative effects that may result in using it!

ATTENTION: Before spamming me with "I don't see anything therefore it's not working wtf" messages, please read the Notes and Testing sections of the readme.

Links:

How To Use:

UserScript via Greasemonkey or Tampermonkey (Preferred Method, allows slave windows):

  1. Download the relevent addon if you don't already have it
  2. Install the script by visiting this link and pressing 'Install'
  3. The script will now automatically load whenever you visit http://steamcommunity.com/minigame/towerattack/
  4. Enjoy!

Javascript Only Version (No slave window support)

To load the script, copy/paste the code from either automator.user.js or minified.js or into your browser console or userscript plugin, and hit return to run it.

Parts:

Any of the additions can be started or stopped individually:

Slave Window Manager (created by ags131):

There are buttons that get added to the bottom of the game page that toggle these functions for your convenience

Variables:

Feel free to edit any variables to suit your needs

Main

Item Use

Slave Window Settings (NOT CURRENTLY ACCESSABLE)

Notes:

This script does not output particles for clicks, so you will not see damage output from the autoclicker. This is intended, as it reduces lag and removes a fairly large memory leak in the base game. You will however see the output from the attacks made by any auto-fire cannons or your own manual clicks, as we haven't altered that code. See the Testing section of this readme if you want to make sure things are working.

Testing:

If you would like to test the script, you have a few options

Using code from this in your own script?

Yeah, you're welcome to. It'd be nice of you to give some type of credit to whoever originally added that feature though. Don't worry about it if you're forking from this, in that case there's a trail leading back so people can see the original committers.

TODO:

Contributors:

(Listed alphabetically)