TW Pro+ (for v1.33) [SOM]

By Zyphir Last update Dec 19, 2011 — Installed 873,181 times.

Script Summary: TW Pro+ for The West v1.33 [SOM release] [Multilingual].



Version: 3.1.0.8

Thumb Thumb

Important: this script is for The-West v1.33.

Language pack:
Please visit this page to learn how to use or to make your own language pack :
http://userscripts.org/scripts/show/94133

Some language pack works will be available here : http://userscripts.org/scripts/discuss/94133


Enjoy ;)


to Zyphir
-------------------------
to Userscripts.org


Changelog:

// @history 3.1.0.8|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,
Zyphir
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 3.1.0.8|19/12/2011 Profile stats fixed (thx to Narulez for the fix).
// @history 3.1.0.8|19/12/2011 Greenhorn Set bonuses updated (reported 2 month ago by AnaDoro, sorry for the late ;))
// @history 3.1.0.8|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 3.1.0.7|23/10/2011 Workaround regarding script loading too fast (Beta world issue).
// @history 3.1.0.6|22/10/2011 Collector Set fix (Bluep again).
// @history 3.1.0.5|20/10/2011 Quick fix for TW v1.33.1 (thx to Bluep again ;)).
// @history 3.1.0.4|11/10/2011 Quick fix on clickable reports in chat for TW v1.33.
// @history 3.1.0.3|10/10/2011 Forum smiley links improved.
// @history 3.1.0.2|08/10/2011 Collector Set hot fix (thx to Bluep for the code!).
// @history 3.1.0.1|25/09/2011 Forum smiley fix.
// @history 3.1.0.0|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 3.1.0.0|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 3.1.0.0|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 3.1.0.0|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 3.1.0.0|23/08/2011 Bug fix when overwriting or updating IndexedDB cache in Chrome (was a Chrome bug actually).
// @history 3.1.0.0|23/08/2011 Storage space required when caching Fortbattle combinations has been reduced.
// @history 3.1.0.0|23/08/2011 Other various bug fixes & code improvements.
// @history 3.1.0.0|23/08/2011 Note for translators : language file updated. See the changes here
// @history 3.0.0.8|04/08/2011 Bug fix when the market is empty.
// @history 3.0.0.7|03/08/2011 Dancer's Set updated.
// @history 3.0.0.6|28/07/2011 Dancer & Indian's Sets updated for Beta worlds.
// @history 3.0.0.6|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 3.0.0.5|20/07/2011 Improved error handling when a new job is added in the game.
// @history 3.0.0.4|19/07/2011 Added new job "Palisade bauen" for Amchitka server (beta2) (thx to Bluep & Darius II for the data).
// @history 3.0.0.4|19/07/2011 Handling error when a new job is added in the game.
// @history 3.0.0.4|19/07/2011 Cookies storage improved for users with a large number of accounts on the same server.
// @history 3.0.0.4|19/07/2011 Note for translators : language file updated. See the changes here
// @history 3.0.0.3|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 3.0.0.3|17/07/2011 Browser tab will now blink when Safe mode process is completed.
// @history 3.0.0.3|17/07/2011 Advanced item popup and item highlighting are working now in reports too.
// @history 3.0.0.3|17/07/2011 Activities which are not unlocked by the item are now shown in red in the merchant popups.
// @history 3.0.0.3|17/07/2011 Bug fix on Recipe highlighting in Collector mode.
// @history 3.0.0.3|17/07/2011 Live mode in/out inventory analysis improved (By "Live mode", I mean cache disabled).
// @history 3.0.0.3|17/07/2011 Minor fix on Fortbattle combinations (tags were not displayed correctly in the inventory popups on job selection).
// @history 3.0.0.3|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 3.0.0.3|17/07/2011 Note for translators : language file updated. See the changes here
// @history 3.0.0.2|09/07/2011 New "Safe mode" feature. Slower calculation process, but hang, freeze and crash proof for your browser!
// @history 3.0.0.2|09/07/2011 Added calculation stats in the inventory window.
// @history 3.0.0.2|09/07/2011 Added "Attributes" in custom job settings.
// @history 3.0.0.2|09/07/2011 New Set Items added for Beta worlds (thx to Bluep for the data).
// @history 3.0.0.2|09/07/2011 Chat colors and whisper compatibility improved (thanks to Danosaure for his work on the code).
// @history 3.0.0.2|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 3.0.0.2|09/07/2011 Added option to discard changes & force cache status to OK (green button).
// @history 3.0.0.2|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 3.0.0.2|09/07/2011 Improved tags for the Fortbattle combinations.
// @history 3.0.0.2|09/07/2011 Some fixes on item highlighting at merchants.
// @history 3.0.0.2|09/07/2011 Bug fix on item popups at merchants when using cache (attributes on items were ignored in the bonus calculation).
// @history 3.0.0.2|09/07/2011 Job values updated on inventory window refresh when skills changes are detected by the cache.
// @history 3.0.0.2|09/07/2011 Fix on speed value accuracy for the Dueller class.
// @history 3.0.0.2|09/07/2011 Other various bug fixes & code improvements.
// @history 3.0.0.2|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 3.0.0.2|09/07/2011 Note for translators : language file updated. See the changes here
// @history 3.0.0.0|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 3.0.0.0|26/06/2011 But also:
// @history 3.0.0.0|26/06/2011 New "split fortbattle combinations" feature.
// @history 3.0.0.0|26/06/2011 Added "Collector mode".
// @history 3.0.0.0|26/06/2011 Added "Show all jobs on map" feature.
// @history 3.0.0.0|26/06/2011 Added cell coordinates in the minimap.
// @history 3.0.0.0|26/06/2011 Added health points information for every activities in the dropdown menu.
// @history 3.0.0.0|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 3.0.0.0|26/06/2011 Updated layout for the TW Pro settings windows.
// @history 3.0.0.0|26/06/2011 Items in the inventory are not higlighted anymore if you already wear them
// @history 3.0.0.0|26/06/2011 Fixed Sets filters for Opera
// @history 3.0.0.0|26/06/2011 Fix on fortbattle settings with zero-priority on health
// @history 3.0.0.0|26/06/2011 Tequila boom boom fix on regen HP ;)
// @history 3.0.0.0|26/06/2011 Second issue fixed when opening crafting page, using equipment manager & eating usable items.
// @history 3.0.0.0|26/06/2011 Bug fix on bag statistics popup
// @history 3.0.0.0|26/06/2011 Updater improved when userscript.org is down.
// @history 3.0.0.0|26/06/2011 Note for translators : language file updated. See the changes here
// @history 2.0.1.7 Updater updated for the next update :D
// @history 2.0.1.7 TW Pro+ 3.0 is coming soon (probably this weekend), so stay tuned...
// @history 2.0.1.6 Clickable reports conversion in the Chat
// @history 2.0.1.6 Forum BBCode bar updated + added smileys :)
// @history 2.0.1.6 PM BBCode bar removed (enabled natively in TW1.31)
// @history 2.0.1.6 Bug fix when opening crafting page, using equipment manager & eating usable items.
// @history 2.0.1.5 Quick fix for beta & german worlds (not really well tested, but I hope it works ^^).
// @history 2.0.1.4 Language pack fix for Firefox 4.
// @history 2.0.1.3 "Recept" items are now filtered (beta worlds only).
// @history 2.0.1.3 Added TW Times itemset.
// @history 2.0.1.2 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 2.0.1.1 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 2.0.1.0 Multisales feature is now available through the Trader too
// @history 2.0.1.0 Added "Total sales value" when using multisales
// @history 2.0.1.0 Support of Gender & Level requirements in merchants highlighting + new highlighting colors
// @history 2.0.1.0 Bug fix when using fortbattle settings
// @history 2.0.0.9 Highlighting with popup details is now possible with the new box (see the TW Pro settings)
// @history 2.0.0.9 Note for translators : language file updated. See the changes here
// @history 2.0.0.8 New feature: highlighting of useful items for every activities
// @history 2.0.0.8 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 2.0.0.8 Note for translators : language file updated. See the changes here
// @history 2.0.0.7 Exclusive Chat features especially made for TW Pro+ by aka Y. [SOM]
// @history 2.0.0.7 Note for translators : language file updated. See the changes here
// @history 2.0.0.6 Scrolling to Player or Town will keep now the mini-map opened if you pin it on.
// @history 2.0.0.5 Market highlighting fix for Chrome (Chrome doesn't like bold style in select menu ^^).
// @history 2.0.0.4 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 2.0.0.4 Automatic refresh of all the opened merchant/market windows when you select another activity in TW Pro.
// @history 2.0.0.4 Bug fix & code optimization when changing weared items (will go faster)
// @history 2.0.0.3 Inventory & Merchants popup improvements (on items affected by a Set in calculations).
// @history 2.0.0.3 Weapons popup improvements (on fort battle & duel activities).
// @history 2.0.0.3 Hotel feature fixed for .ru servers (and maybe others) // Thx to Phago for reporting and town invitation
// @history 2.0.0.3 Note for translators : language file updated. See the changes here
// @history 2.0.0.2 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 2.0.0.1 Advanced item popup (with job bonuses) works now in the market too
// @history 2.0.0.0 A nice update ;)
// @history 2.0.0.0 Fortbattle calculations improved // Thx to Y. for the original idea and basic formulas & Tanes and others SOM members for beta tests and adjustments.
// @history 2.0.0.0 New tab with preferences in the TW Pro Settings window
// @history 2.0.0.0 Added HP priority settings in Fortbattle calculations
// @history 2.0.0.0 Added Battle unit type settings in Fortbattle calculations
// @history 2.0.0.0 Default sorting option
// @history 2.0.0.0 Added average damages on weapons
// @history 2.0.0.0 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 2.0.0.0 Set filters buttons improved
// @history 2.0.0.0 Bugfix on Duel & Fort weapons suggestions
// @history 2.0.0.0 Corrections on Speed, Regen, Construction & Worker class xp values
// @history 2.0.0.0 Jobranking settings adjustment (gives less importance to LP's affected values, like Wage & Luck)
// @history 2.0.0.0 Some bug fixes & code improvements
// @history 2.0.0.0 New script version number structure (Chrome compatible)
// @history 2.0.0.0 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 ;)