Hammerfall RPG Helper

By Dusty Last update Jun 27, 2009 — Installed 2,217 times. Daily Installs: 0, 0, 0, 2, 2, 3, 1, 0, 1, 5, 2, 1, 0, 3, 2, 2, 0, 1, 1, 1, 1, 0, 1, 0, 1, 1, 0, 2, 0, 2, 0
Script Summary:
Hammerfall RPG Helper modifies parts of the user interface to make it easier to use. There are "auto-play" buttons that perform actions for you if you wish (all default off). In addition, if you can code, you can expand this pretty much any way you want.

Script homepage

Review Summary
5 stars
3 reviews (3)
4 stars
1 reviews (1)
3 stars
0 reviews (0)
2 stars
0 reviews (0)
1 star
0 reviews (0)

this script has 4 reviews

==========
If you wish to help with the development of this script, go to http://github.com/dustywilson/Hammerfall-RPG-Helper/ and make a fork. Commit changes to your fork of the project. Send a push request to me. That's it! See the discussion forum topic "Help make improvements!".
==========

This is a Hammerfall RPG Helper script for Greasemonkey. If you don't use the "helper" parts, it at least makes the interface look better. Give it a shot. Let me know your thoughts, likes, dislikes, ideas, etc.

This script modifies some parts of the user interface to make them nicer. It also adds in some "Auto Play" buttons to allow for repeated actions while you step away for awhile. In the fight screen, there are buttons to auto-fight, auto-heal, auto-energy, etc. Feel free to use or not use any of these options.

If you're a decent JavaScript programmer, feel free to modify the code to suit your needs. You'll find a bunch of commented-out code in the file. All of that code should work just fine if you uncomment it (I wouldn't recommend using it all at once though!). You can add in you own code (see existing code for example usage) to perform complex actions. For example, maybe you want to farm a certain set of items for awhile and then travel a few hops away to a quest to perform some action. Anything with a job id (that would be everything in the game!) can be automated this way. All inventory is tracked programmatically, which means that you can perform certain events when certain items have reached a certain quantity (at, below, over, etc). You can correlate activities based on whether or not a certain job id is located where you are (maybe you need to do a different quest/etc before it opens up) or the name of your current location. You can do a lot with this if you know how to code a bit of JavaScript. This code is usable without modification and does a lot, but if you want a framework to build your own custom actions, this code is well-built and tracks a large number of variables. It's easy to code your own actions into this code. If you make something cool with it, share your greatness on the discussion forums.

The above script is for Greasemonkey for Firefox 3. I don't promise it works in anything other than that. Only tested in Linux. It should work in everything else, in theory. It's intended for the Facebook users, but it might work elsewhere (with path adjustments).

I wrote every line of it. It's also messy. It's also (seemingly) quite reliable. It's a "get myself back into JavaScript" project. It started as "I'm irritated that I have to farm this crap" and ended up where it is now.

To change the rate of stamina/energy/health gain, click on the "+1 in 123 secs" thing. It doesn't set it automatically. I haven't figured out what the rate is based on yet. I have added some code to automatically set your stamina increment, but I haven't yet made anything to set your health/energy increments. You'll have to set those yourself. And no, setting it to some random number won't magically make the game give you that many health/energy/stamina points. This is just to help you watch your levels between page refreshes.

To initialize the inventory or if it goes out of sync for some reason, just go to your inventory page and it'll fix itself. If you buy something at a store, the script doesn't track it automatically (yet). Just go to your inventory to sync it back up.

When using autoplay on a job that requires something that starts with a number, it'll complain that it doesn't have enough stamina. That's because the number that starts the item name mashes into the stamina. For example "10 point catch" with a requirement of 3 stamina would look like "310 stamina" to the script. I'll fix it sometime. It's not big enough of a deal to fix right away. Just about everything else seems to work fine.

Check this site for updates. There is no auto-update feature in the script. Might add something for it someday.