The West - Job Equip

By ArmEagle Last update Feb 10, 2011 — Installed 7,974 times.


Script Summary: Eases equipping the right equipment suggested by The West Insider. Only works on Firefox 3.5+, using GreaseMonkey.

Version: 0.10b

Thumb

This is a script adding features to the webbrowser game The West on multiple levels.

In the game itself you can click the "The West" header in the center top of the game window to open a window that lets you store job locations.
The Inventory window has some new additions. These allow you to store and equip item sets. This works together with third party tools TheWestInsider.com and WestCalc.info. On the website of the first it will turn all the lists of "Your Best Items" into links. Clicking on them will store that as a set, so it can be used in the The West Inventory window again for easy equipping. Similar functionality exists for WestCalc.
Thirdly this script sets some default values in job/activity windows (2 hour duration) and the town Hotel window (most expensive room).

Requires Firefox 3.5+ [Using localStorage (falling back to globalStorage) and GM_set/getValue].
Suggested to use together with The West Extra Tools - Modified (http://userscripts.org/scripts/show/74678), so you have an easy button to open the The West Insider Job Calculator.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License by Alex Haan (http://creativecommons.org/licenses/by-nc-sa/3.0/)

Changelog:
version 0.10:
The West updated to version 1.30 changing the Inventory window. The extra UI elements for this script are now placed in the Inventory window title, moving the 'Inventory' text to the left.
Everything should work again now, if not, I hope I find it myself and fix it soon. Else feel free to let me know.
version 0.9:
- New feature: Storing of job locations.
In every job window a 'Store' button is added which will store the current job location and set amount of labor hours.
When you click on the "The West" header in the center top of the game window a popover will open listing all stored jobs for easy access.
Since I added the 'Store' button anyway, I made the Labor Duration drop-down default to 2 hours (and the hotel sleeping to the most expensive room).
version 0.8.4:
- TWI was changed yet again, though it should have worked but it didn't seem to do so consistently. Maybe a stray 'console.log' was to blame.
version 0.8.3:
- TWI changed the script to run in JavaScript. I hacked around to make this script load after the table is filled
version 0.8.2:
- Made compatible with TheWestInsider reduced calculator.
version 0.8.1.a:
- Removed a debug line
version 0.8.1:
- TWI was changed back, so changing the script to just find the right column now.
version 0.8:
- TWI was updated, moving the Luck column to the right-hand side. Changed this script accordingly.
version 0.7.2:
- Changed a very small thing to make script cooperate with another script I wrote: TheWestInsider Compare Labor | http://userscripts.org/scripts/show/76638
version 0.7.1:
- Changed the equip script. The old one didn't like stacks of items if one of those needed to be equipped.
version 0.6.1:
- Added an autoupdater script (I hope it works ok :P)
version 0.6.1:
- Closing or canceling the prompt popup asking for a set name would add an entry named 'null'. Doing this a second time would lead to an infinite loop of canceling, forcing to choose a temporary name to exit the loop.
version 0.6:
- Added support for westcalc.info's job calculator (supporting fort battle item calculations).
- Slightly changed layout of the equip elements in the inventory window.
version 0.5:
- On the West Insider job calculator page sometimes there's an extra whitespace after an item name. This prevented that item from being equipped.
version 0.4:
- Better filtering on item names ("Gray bow" will not be equipped when "Gray bow tie" is supposed to be).
version 0.3.1:
- Requiring Firefox 3.5 as minimum again now. It's too much hassle to make it work in older versions.
version 0.3:
- Supporting Firefox 3+ now by falling back to globalStorage when localStorage (introduced with FF3.5+) is not available.
version 0.2:
- Added saving, recalling and deleting (currently equipped) sets. Moved the equip button for that.
- Will count down the amount of items that still have to be equipped (shown by amount of dots reducing in the equip button).