/auto-bank

Primary LanguageJavaScript

Auto-Bank

A script that auto merges inventory items to bank if same item exists in bank/special storage/wardrobe/guild bank/etc.'s tab.

Usage

  1. Use command autobank/ab to toggle banking.
  2. Open bank or click on bank tab to begin.
  3. That's it. It will automatically check all pages in the bank you've open, and once it ends, it will close the bank for you.

Commands

All commands start with autobank or ab as alternative.

  • autobank or ab + open storage space (bank/extra storage or wardrobe, etc) ~ Starts the auto-banking process.

  • ab bl <add/rem/reset/clear> ~ Manages blacklist.
    • ab bl <add/+/-/remove>:
      • There are 3 different ways to blacklist or unblacklist an item:
        1. Followed by writing the id of item(s), if more than one, use space as separation between each, e.g.

        ab bl add 1 2 3 4 5
        ab bl rem 1 2 3 4 5

        1. Followed by linked items (ctrl+left click), any amount of items, if more than one, spacing doesn't matter here (you may add space or not).

        ab bl ad <item1> <item2> <item3>
        ab bl rm <item1> <item2> <item3>

        1. If you omit arguments, it will enable (un)blacklisting;

        ab bl + ~ Toggles blacklisting.
        ab bl rmv ~ Toggles unblacklisting.

        • Open bank, then try add that item to bank to (un)blacklist it.
          • Note: Item will not be banked while this enabled.

        ○ Additionally; If you want to blacklist entire pocket tab, say you want to keep superior items there, don't want them to get banked at all, no matter if they exist in bank or blacklist or not, you can do that using: (case-insensitive)

        ab bl + pocket1 PocKet2 pocket3
        ab bl - pocKET1 pocket2 pocket3

    • ab bl <reset/default>:
    • ab bl <clear/empty>:
      • This will empty up the entire blacklist, to have 0 blacklisted items.
    • ab bl list:
      • Lists all the items that are currently blacklisted. (The items in blue are clickable links, you can click it to show the item.)

  • autobank <guild/g> toggles banking to guild bank. Default Off.

Blacklist

If no blacklist.json file was found, it will be using the default blacklist.

  • Editing/modifying the blacklist using blacklisting commands will be saved into the blacklist.json file.
  • You can get the id of any item from this site.
Default blacklist

Capability

  • Should work on any proxy.
  • 1 dependency;
    • tera-game-state
      • If you're using Caali's proxy(toolbox), you don't have to do anything, as this comes along-with by default.
      • If you're using Pinkie's proxy, you will have to get it, via this LINK & place it in your mods folder ([proxy dir]/mods/).

Additional information

It will also send a warning if the same exact item is available in more than one page (i.e. Duplicate) in your storage space. (the warning will include a blue clickable links, you can click it to show the item).

  • FAQ
    • ? It have banked an item for me, and now I can't withdraw it with "That item isn't in your bank" error.
      • A: This is unrelated to script, simply you have same item, but 2 different time remaining, so make sure you don't withdraw with quantity or by right clicking on wrong stack of that item.
    • ? It have banked all the way until full page and continued in next page.
    • ? It have banked same item in 2 different pages.
      • A: Its impossible, script will never bank an item in different page, even if page is full. (Make sure you don't already have that item in different pages, aka see duplication log).
    • ? It moved my items from pocket/inventory to other pockets or to inventory.
      • A: Its client behaviour, works only for ¹stacked items. If a stacked item has more amount in slot than the other slot, and you banked it; the less amount one will be moved from the 'other slot' to get in place of the banked one. ¹Unstackable items are unaffected.

Proof of concept

img