Script Summary: TW Pro+ for The West v1.33 [SOM release] [Multilingual].
Important: this script is for The-West v1.33.
Please visit this page to learn how to use or to make your own language pack :
Some language pack works will be available here : http://userscripts.org/scripts/discuss/94133
// @history 220.127.116.11|19/12/2011 Announcement:
This is probably one of the last updates I do for TW Pro.
The future version of The West (v1.34) will represent too much work to upgrade the script and unfortunately I do not have enough free time from now to get into that work.
However, the good news is that the TW-DB team is currently working on a new equipment calculator.
A working beta version is already available here and is very promising.
Good job guys, keep it up!
For my part, it was a pleasure to improve TW Pro during 1 year and I hope you enjoyed my work.
I would like to especially thank all the beta testers from the SOM team: Gzahab, Dun, Y., Tanes, TontonJohn, Milly, Roland Gamelle, Ren33, Mariache320, Danosaure, Blacklimber, Tungunska ... and also Bluep (.de) for his regular feedbacks and ideas.
Thanks also to Nexton (.de), the original script author of TW Pro, and to Lekensteyn (.nl) for his awesome work in 2010.
And finally thank you to everyone who encouraged me and thanked me during this year!
Best wishes for 2012 and see you soon,
PS for InnoGames:
Feel free to thank me at the last minute in any way you want. Even a simple word would have made me happy during this year... but maybe you just don't like scripts :p
// @history 18.104.22.168|19/12/2011 Profile stats fixed (thx to Narulez for the fix).
// @history 22.214.171.124|19/12/2011 Greenhorn Set bonuses updated (reported 2 month ago by AnaDoro, sorry for the late ;))
// @history 126.96.36.199|19/12/2011 Workaround to avoid errors on Beta server version 1.34 (you will keep some TW Pro features on Beta but the main part of the script will be disabled).
// @history 188.8.131.52|23/10/2011 Workaround regarding script loading too fast (Beta world issue).
// @history 184.108.40.206|22/10/2011 Collector Set fix (Bluep again).
// @history 220.127.116.11|20/10/2011 Quick fix for TW v1.33.1 (thx to Bluep again ;)).
// @history 18.104.22.168|11/10/2011 Quick fix on clickable reports in chat for TW v1.33.
// @history 22.214.171.124|10/10/2011 Forum smiley links improved.
// @history 126.96.36.199|08/10/2011 Collector Set hot fix (thx to Bluep for the code!).
// @history 188.8.131.52|25/09/2011 Forum smiley fix.
// @history 184.108.40.206|23/08/2011 Probably the final step regarding calculation process improvements. From now, updating the cache or changing settings (in Live mode & Cache mode) will only request to compute the affected activities. Note: Please regenerate your cache once after upgrading to this version.
// @history 220.127.116.11|23/08/2011 Improved error handling when a new job is added in the game (new jobs will be added in the red cache button).
// @history 18.104.22.168|23/08/2011 Health points for each job are now displayed in red when they are lower than your current HP (thx to Bluep for the idea).
// @history 22.214.171.124|23/08/2011 Bug fix regarding the cache button that was disappearing in special cases (Thx to Mariache320, Ren33 & Bluep for the numerous tests that helped me find this repeated bug).
// @history 126.96.36.199|23/08/2011 Bug fix when overwriting or updating IndexedDB cache in Chrome (was a Chrome bug actually).
// @history 188.8.131.52|23/08/2011 Storage space required when caching Fortbattle combinations has been reduced.
// @history 184.108.40.206|23/08/2011 Other various bug fixes & code improvements.
// @history 220.127.116.11|23/08/2011 Note for translators : language file updated. See the changes here
// @history 18.104.22.168|04/08/2011 Bug fix when the market is empty.
// @history 22.214.171.124|03/08/2011 Dancer's Set updated.
// @history 126.96.36.199|28/07/2011 Dancer & Indian's Sets updated for Beta worlds.
// @history 188.8.131.52|28/07/2011 Dancer's Set unlocked in the Itemsets manager since male characters can wear 2 items from this Set (don't forget to disable/enable this Set manually from now!)
// @history 184.108.40.206|20/07/2011 Improved error handling when a new job is added in the game.
// @history 220.127.116.11|19/07/2011 Added new job "Palisade bauen" for Amchitka server (beta2) (thx to Bluep & Darius II for the data).
// @history 18.104.22.168|19/07/2011 Handling error when a new job is added in the game.
// @history 22.214.171.124|19/07/2011 Cookies storage improved for users with a large number of accounts on the same server.
// @history 126.96.36.199|19/07/2011 Note for translators : language file updated. See the changes here
// @history 188.8.131.52|17/07/2011 Safe mode improved. Process will still run even if another browser tab is focused (with FF, it should even run faster in this case).
// @history 184.108.40.206|17/07/2011 Browser tab will now blink when Safe mode process is completed.
// @history 220.127.116.11|17/07/2011 Advanced item popup and item highlighting are working now in reports too.
// @history 18.104.22.168|17/07/2011 Activities which are not unlocked by the item are now shown in red in the merchant popups.
// @history 22.214.171.124|17/07/2011 Bug fix on Recipe highlighting in Collector mode.
// @history 126.96.36.199|17/07/2011 Live mode in/out inventory analysis improved (By "Live mode", I mean cache disabled).
// @history 188.8.131.52|17/07/2011 Minor fix on Fortbattle combinations (tags were not displayed correctly in the inventory popups on job selection).
// @history 184.108.40.206|17/07/2011 Some fixes for Firefox 3.6 users (Cache & Chat links). However, I really recommend to upgrade to FF5, because 3.6 is really really slow. Moreover, TW Pro Cache & Safe mode won't run as smoothly as it should. To get a good experience on these new features, I really encourage you to use a recent browser (Firefox, Chrome, Opera, or even Safari).
// @history 220.127.116.11|17/07/2011 Note for translators : language file updated. See the changes here
// @history 18.104.22.168|09/07/2011 New "Safe mode" feature. Slower calculation process, but hang, freeze and crash proof for your browser!
// @history 22.214.171.124|09/07/2011 Added calculation stats in the inventory window.
// @history 126.96.36.199|09/07/2011 Added "Attributes" in custom job settings.
// @history 188.8.131.52|09/07/2011 New Set Items added for Beta worlds (thx to Bluep for the data).
// @history 184.108.40.206|09/07/2011 Chat colors and whisper compatibility improved (thanks to Danosaure for his work on the code).
// @history 220.127.116.11|09/07/2011 Cache status button improved (Inventory items you can wear after a level up will be now considered as new items. Therefore, these items will also switch the cache button to red).
// @history 18.104.22.168|09/07/2011 Added option to discard changes & force cache status to OK (green button).
// @history 22.214.171.124|09/07/2011 Pilgrims Sets unlocked in the Itemsets manager since we can wear 3 items from the Set of the opposite sex (don't forget to disable/enable these Sets manually from now!)
// @history 126.96.36.199|09/07/2011 Improved tags for the Fortbattle combinations.
// @history 188.8.131.52|09/07/2011 Some fixes on item highlighting at merchants.
// @history 184.108.40.206|09/07/2011 Bug fix on item popups at merchants when using cache (attributes on items were ignored in the bonus calculation).
// @history 220.127.116.11|09/07/2011 Job values updated on inventory window refresh when skills changes are detected by the cache.
// @history 18.104.22.168|09/07/2011 Fix on speed value accuracy for the Dueller class.
// @history 22.214.171.124|09/07/2011 Other various bug fixes & code improvements.
// @history 126.96.36.199|09/07/2011 NOTE: If you encounter problems with your TW Pro cache after upgrading to this version, try: - to disable/enable the cache - to empty the cache.
// @history 188.8.131.52|09/07/2011 Note for translators : language file updated. See the changes here
// @history 184.108.40.206|26/06/2011 TW Pro+ version 3.0 introducing a new caching system. Do not fear anymore to refresh your page, now you can! ;)
// @history 220.127.116.11|26/06/2011 But also:
// @history 18.104.22.168|26/06/2011 New "split fortbattle combinations" feature.
// @history 22.214.171.124|26/06/2011 Added "Collector mode".
// @history 126.96.36.199|26/06/2011 Added "Show all jobs on map" feature.
// @history 188.8.131.52|26/06/2011 Added cell coordinates in the minimap.
// @history 184.108.40.206|26/06/2011 Added health points information for every activities in the dropdown menu.
// @history 220.127.116.11|26/06/2011 Added highlighting and popup info in the activities management menus.When calculations are done, the "Enabled" list is now sorted as your dropdown menu.
// @history 18.104.22.168|26/06/2011 Updated layout for the TW Pro settings windows.
// @history 22.214.171.124|26/06/2011 Items in the inventory are not higlighted anymore if you already wear them
// @history 126.96.36.199|26/06/2011 Fixed Sets filters for Opera
// @history 188.8.131.52|26/06/2011 Fix on fortbattle settings with zero-priority on health
// @history 184.108.40.206|26/06/2011 Tequila boom boom fix on regen HP ;)
// @history 220.127.116.11|26/06/2011 Second issue fixed when opening crafting page, using equipment manager & eating usable items.
// @history 18.104.22.168|26/06/2011 Bug fix on bag statistics popup
// @history 22.214.171.124|26/06/2011 Updater improved when userscript.org is down.
// @history 126.96.36.199|26/06/2011 Note for translators : language file updated. See the changes here
// @history 188.8.131.52 Updater updated for the next update :D
// @history 184.108.40.206 TW Pro+ 3.0 is coming soon (probably this weekend), so stay tuned...
// @history 220.127.116.11 Clickable reports conversion in the Chat
// @history 18.104.22.168 Forum BBCode bar updated + added smileys :)
// @history 22.214.171.124 PM BBCode bar removed (enabled natively in TW1.31)
// @history 126.96.36.199 Bug fix when opening crafting page, using equipment manager & eating usable items.
// @history 188.8.131.52 Quick fix for beta & german worlds (not really well tested, but I hope it works ^^).
// @history 184.108.40.206 Language pack fix for Firefox 4.
// @history 220.127.116.11 "Recept" items are now filtered (beta worlds only).
// @history 18.104.22.168 Added TW Times itemset.
// @history 22.214.171.124 New set items added. Sorry again for the late, I have some personal worries at the moment but it will get better soon. Many thanks to Bluep who provides me the new items code for an easy & quick copy/paste. I'm really not aware of the game's novelties for the moment, so it helps a lot ! ;)
// @history 126.96.36.199 Temporary fix for TW v1.31. It seems there is a new job available called "Pick Indigo", but not yet fully implemented in game. (Btw, sorry for the late, I was not available last week and I will be not available this week neither. I hope everything will still work fine so far ;))
// @history 188.8.131.52 Multisales feature is now available through the Trader too
// @history 184.108.40.206 Added "Total sales value" when using multisales
// @history 220.127.116.11 Support of Gender & Level requirements in merchants highlighting + new highlighting colors
// @history 18.104.22.168 Bug fix when using fortbattle settings
// @history 22.214.171.124 Highlighting with popup details is now possible with the new box (see the TW Pro settings)
// @history 126.96.36.199 Note for translators : language file updated. See the changes here
// @history 188.8.131.52 New feature: highlighting of useful items for every activities
// @history 184.108.40.206 Bugfix on merchants highlighting when 2 items have the same name in their inventories (However, be aware that a wrong item may be highlighted in the market instead of his twin, because I can't get around this issue easily at this location. Imo 2 items with the same name should never happen and should be fixed by Inno.)
// @history 220.127.116.11 Note for translators : language file updated. See the changes here
// @history 18.104.22.168 Exclusive Chat features especially made for TW Pro+ by aka Y. [SOM]
// @history 22.214.171.124 Note for translators : language file updated. See the changes here
// @history 126.96.36.199 Scrolling to Player or Town will keep now the mini-map opened if you pin it on.
// @history 188.8.131.52 Market highlighting fix for Chrome (Chrome doesn't like bold style in select menu ^^).
// @history 184.108.40.206 Highlighting of usefull items in the merchants/market (depends on the selected activitiy OR runs on all activities if none is selected).Tip: doublons are not highlighted in the trader/merchants, so the order in which you open the windows is important (I would recommend: Trader - Own Stores - Allied Stores - Foreign Stores).
// @history 220.127.116.11 Automatic refresh of all the opened merchant/market windows when you select another activity in TW Pro.
// @history 18.104.22.168 Bug fix & code optimization when changing weared items (will go faster)
// @history 22.214.171.124 Inventory & Merchants popup improvements (on items affected by a Set in calculations).
// @history 126.96.36.199 Weapons popup improvements (on fort battle & duel activities).
// @history 188.8.131.52 Hotel feature fixed for .ru servers (and maybe others) // Thx to Phago for reporting and town invitation
// @history 184.108.40.206 Note for translators : language file updated. See the changes here
// @history 220.127.116.11 Announcement: This is not an update but just a message to tell you about a new script available: The Wardrobe script revised and coded by Dun [SOM]. Works with Firefox & from now Chrome, specially made to be compatible with TW Pro+ and a really nice "Buffalo Bill" feature (surprise!). (Note: Wardrobe script may be banned on some servers, enquire before using it).
// @history 18.104.22.168 Advanced item popup (with job bonuses) works now in the market too
// @history 22.214.171.124 A nice update ;)
// @history 126.96.36.199 Fortbattle calculations improved // Thx to Y. for the original idea and basic formulas & Tanes and others SOM members for beta tests and adjustments.
// @history 188.8.131.52 New tab with preferences in the TW Pro Settings window
// @history 184.108.40.206 Added HP priority settings in Fortbattle calculations
// @history 220.127.116.11 Added Battle unit type settings in Fortbattle calculations
// @history 18.104.22.168 Default sorting option
// @history 22.214.171.124 Added average damages on weapons
// @history 126.96.36.199 Automatic mini-map job selection improvements: unavailable jobs will be displayed now on both map & mini-map if you select them in TW Pro // Thx to Bluep for the idea & Puli for his nice script "Show All Jobs" ;)
// @history 188.8.131.52 Set filters buttons improved
// @history 184.108.40.206 Bugfix on Duel & Fort weapons suggestions
// @history 220.127.116.11 Corrections on Speed, Regen, Construction & Worker class xp values
// @history 18.104.22.168 Jobranking settings adjustment (gives less importance to LP's affected values, like Wage & Luck)
// @history 22.214.171.124 Some bug fixes & code improvements
// @history 126.96.36.199 New script version number structure (Chrome compatible)
// @history 188.8.131.52 Note for translators : language file updated. See the changes here
// @history 1.004n Compatibility with the new popup comparator system
// @history 1.004n Auto-updater corrections
// @history 1.004m The selected job is now always displayed first in the merchants pop-up list, even if he receives less bonus than other jobs.
// @history 1.004l Added temporary bug fix on telegrams for fr. worlds (until Inno fix this ^^)
// @history 1.004l Added automatic room selection in hotels (checks the best free room or the cheapest one)
// @history 1.004l Improved highliting & compatibility between Set filters, Search box & Jobs list
// @history 1.004l New features & speed improvements, thanks to the Lekensteyn script.
// @history 1.004k Added Set filters
// @history 1.004k Inventory statistics improvements
// @history 1.004k Automatic updater is now Chrome compatible
// @history 1.004j Added Christmas Sled
// @history 1.004i Merry Christmas !
// @history 1.004h Added Italian & Romanian language
// @history 1.004g TW version checker included in the script himself (From now, TW Pro FR 1.29 & Pro+ 1.30 can be both installed at the same time on all servers, so you don't need to tamper with script permissions during transition period)
// @history 1.004f Fixed level check on belts & pants
// @history 1.004f All values are now displayed and sorted in the job list, even if you can't do the job (use "hide jobs" for filtering)
// @history 1.004f Filter "Hide jobs I can't do" runs now instantly (calculation is not rerun anymore)
// @history 1.004f Added danger values and jobrank % in the job list
// @history 1.004f New color coding for the LP box
// @history 1.004e Some code improvements
// @history 1.004e Minor layout changes
// @history 1.004e Forum BBCode bar is back
// @history 1.004e Added Hungarian language
// @history 1.004d Added all job values (xp, wages, luck, danger) // I hope I didn't make any mistake
// @history 1.004d Sets work duration to maximum by default // Lekensteyn code, thx ;)
// @history 1.004c Chrome small fix (LP display box)
// @history 1.004b Greenhorn set added
// @history 1.004b Updated design for TW 1.30
// @history 1.004a Emergency release for TW 1.30 // It looks bad but it works ;)