GOTA Extender

Game of Thrones Ascent Extender

目前為 2014-12-23 提交的版本,檢視 最新版本

作者
Panayot Ivanov
評價
0 0 0
版本
5.8
建立日期
2014-07-31
更新日期
2014-12-23
尺寸
49.8 KB
授權條款
WTFPL (more at http://www.wtfpl.net/)
腳本執行於

Description
Script that integrates several options at user disposal for direct tweaking. Screenshots:
Queueing item, Enqueue upgrade

// --> IMPORTANT
After a script update you should reload your game for the extender to inject/use updated auxiliary libraries.

// --> Send all ptp
In the dialog where you select an action against a player a button will be displayed after a few seconds right next to the back button on the top left of the dialog (similar to send All in adventures). This button sends all your sworn swords to the current target, but it's context is configurable from options. In the options you can specify for the extender to do different attacks when this button is clicked. You can send only friendly attacks (which means your sworn swords with best attack to be either aid, bribe or barter), hostile attacks (which are sworn swords with all other specialties: fight, harass, spy, sabotage, steal and swindle). Note that you can send only 3 hostile attacks against a specific player for 24 hours and it will raise an error from the server saying "too_many_attacks" afterwards. If any error arises while sending a sworn sword, the sending chain will fail and others won't be sent. There are also two other useful configurations for the button: Selected action and Throw everything. The latter will send ALL your sworn swords with their BEST attack against the player. Using the selected action option however you can send ALL your sworn swords with the currently selected action in the dialog with the button. Note here that this requires a selection first and with opening the dialog, fight is selected by default.

// --> Screen darkens
If after a dialog or some action that darkens your screen and after the dialogs closing the dark area persist and you can't do anything hit the ESC key. NOTE that this happens regardless of the extender.

// --> Claim daily
Claim daily on load and close the dialog when claimed. Claim a quartermaster key also.

// --> web service interruption
Firefox can't establish a connection to the server at ws://ws.pusherapp.com/app/cbd21870bea0e10365b9?protocol=5&client=js&version=1.12.7&flash=false.
The connection to ws://ws.pusherapp.com/app/cbd21870bea0e10365b9?protocol=5&client=js&version=1.12.7&flash=false was interrupted while the page was loading.

This is observed a lot in the game. As to the current moment I cannot establish with certainty if the extender has any influence of the recurrence of this error.

// --> Sell bulk option
In the shop where you sell items, when you click on an item (to the left) and view it's stats (to the right) a small box and a button will appear benath the stat view after a few seconds. Now since the game doesn't really allow you to sell your shit bulk (sell many things with 1 request) this function sends as many requests as the amount to sell, so as always - use with caution. Let's say for an average response time of 500 miliseconds, which is half a second, you'll need an average of 8 ~ 10 minutes to sell 1000 of some item and that counts if you have a solid internet connection. Aside from that you should know that the server becomes irresponsive during that time, which means any request, such as adventures sending, shop, pvp, quests etc. will not be served, but QUEUED after the selling is complete. Most of the time such requests will summon the spinner and it'll time out your client, asking you to reload, which will surrely interrupt the selling procces.

// --> Unlocked quests
Do quests regarding of the time of day or fealty. Currently the warning will popup, but the script will disregard it and open the action dialog. Note that you still cannot do quests that are for level higher than yours, which isn't recommended even if you could: the dialog will appear, but the defender stats will be empty and the adventure itself will be undefined, so in short, don't do adventures which require higher level than yours. No other peculiarity observed with this feature.

// --> Prevent adventure on 4 wounds
The script will prevent an adventure if your sworn sword is about to die. Note that this is valid only for adventures. Quests, adventure parties and pvp are not included in this feature.

// --> User script commands
The script registers two options. For instant transition to debug mode, which enables alerts too and a home button, which redirects to the extender greasyfork page.

// --> Options
NOTE that options are saved for current tab only.

// --> Base delay
Specify the base waiting time for any functionality that is implemented with a waiting time.

// --> Finish all button
Useful when you left the game and a lot of buildings finished production. Fires finish on all buildings one by one. Extender will notify when it's finished.

// --> Debug mode and Use alerts
Basic console and alert information for developers. Use alerts uses the basic javascript alert function which STOPS execution of javascript and is potentially not wise to use if you don't know what you're doing.

NOTE that these features are disabled by default. If you have any problems with the extender, or if it doesn't show up entirely, you can enable them by clicking the greasemonkey icon on the top right of your browser and then selecting DEBUG from User Script Commands...

// --> Reloading option
Disabled when 0. It'll reload your window. Tests showed that running the game for too long, or upgrading many buildings at once (the case is not clarified as of the moment) can slow down or even crash your browser. Reload cleans this mess up and also saves the queue for using after you reloaded. This doesn't mean the queue will be persisted if you manually reload. If you wish to persist the queue on a manual reload, go to options on the queue tab and save. The queue will be saved alongside the options selected.

// --> Collect interval
Collects your silver from the counting house on the specified amount of minutes.

// --> Never spend gold option
will disable ALL gold spending.

// --> Sorting
currently you can sort player inventory and shop items by two criterias. NOTE, shop items will always be sorted by gold, descending. Items may appear to be sorted incorrectly when sorting on silver. That's because some items have not only gold, but also a price in silver, although you cannot purchase them with silver only.

// --> Queue
remains the same compared to previous versions. The base delay utilization is improved, all items are produced with a small amount of delay between speeding up, finishing and picking up new item for production. The try production interval is not mandatory, but helpful if the production queue drops a lot, disable it if you do not encounter dropping or any other odd behavior by setting it to 0. As always you can delete item queued for production by clicking on it's respective row. Superior materials option disables the dialog that prompts you to confirm letting go of your superior item. You can persist queue if you have the queue tab opened and click save.

// --> Search alliance
A basic search box is embedded in your alliance war map, which can search alliance by keywords and then displays the results in the grid bellow. No rank, victory points or diplomacy stance are displayed (you can view them when you click Go), but it can inform you of the alliance members count.

// --> Enhanced player to player dialog
On the incoming tab a click on a players name will take you to his character's dialog. A click on the alliance (if any) will take you to the alliance dialog (I don't know if this is a bug or something, but the alliance dialog always displays for me 0 members. NOTE that this is not caused from the extender)

// --> Enhanced character dialog
In the characters dialog now you can see right from the characters portrait his battle, intrigue and trade stats as well as his level. An improved function will now attempt to view the stats of his equipment, and the stats of equipment all around the game that previously could not be displayed with item stats mini view hopefully now will.

// --> Send all button for adventures
When you choose action for a sworn sword on an adventure now, a button labeled Send all will be shown after a small delay. This button will send ALL of your AVAILABLE sworn sword on this particular adventure, taking their prefered attack or highest stat.

// --> Permanent items tab
An additional tab in your Storage inventory will keep track of you permanent items. ANY items NOT listed there will NOT PERSIST through reincarnation or restart.

Old Features

  • The script should now be able to run on Chrome's Tampermonkey
  • Queue items will be checked on a configurable amounnt of time to ensure there's no dropping.
  • Auto collect money on a cycle (configurable from options)
  • Queue items for production:
  • - You now can queue 5 items.
    - You now can queue upgrades.
  • Extender overrides some web page functions:
  • - buildTimerUpdate: uses instant speed ups (5 mins which is free) and finishes build, production or upgrade;
    - doCollect: closes dialog after collecting;
    - claimDaily: closes dialog after success; (function visually turns gold and silver amount into undefined; collect to update them)
    - doProduction: tracks if superior materials are required (configurable from options);
    - doFinishProduction: starts a timer to ensure the next item from that building is produced (or applied as for upgrade);
    - doInstantSpeedUp: checks if the speed up does require money (gold), if true - exit;
    - doLog: no console logging.
  • Collects daily reward on initialization.
  • Options available for configuration through the user interface:
  • - User Alert: use built in display of alerts when interacting with the extender (default: true);
    - Debug Alert: informs developers for things that happen in the extender (default: false);
    - Enable auto-collect: initiates an auto-collect loop on the given amount of time in minutes (default: true);
    - Use superior materials: instructs extender to disregard superior materials dialog when producing (default: true) (requires reload);
    - Auto-collect interval: specify the time interval in minutes to perform a money collect (default: 60);
    - Production queue table: view your queued production items and upgrades - click on a row to remove it from the production queue;
        elements start from 0 and are executed in reversed order (last element from the table is next to be executed)
  • Improved performance, styling and bug fixes.

Known issues:
- Production queue won't be persisted if you reload the page.
- Various bugs including certain test scenarios.
- Please provide feedback for bugs.