Recently in javascript Category

Hammerfall RPG Helper

By Dusty on April 26, 2009 5:55 AM · No Comments
hammerfall_rpg_helper.user.js

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.

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 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.

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.

Take a look at the area around line 604 and 626.  Those define some monsters and food/potion items.  These things define your auto-fight.  If you don't want any auto-fight, remove all of the "jobReq" and "invInfo" items in that area.  If you want to add new ones, just use the same format.

If you're really into scripting, take a look at the messy autoPlay area around line 160 through line 440.  You can programmatically assign the autoPlay feature instead of using the buttons in the UI.  You can see that you can do some good stuff.  If you come up with anything cool, let me know.  If you're not a programmer, you won't want to mess with that area.

Check back here for updates (http://www.dustywilson.com/hammerfall/).  There is no auto-update feature in the script.