Download
(27 Kb)
Download
Updated: 09-22-13 01:03 PM
Pictures
File Info
Updated:09-22-13 01:03 PM
Created:12-20-12 11:29 AM
Downloads:1,669
Favorites:15
MD5:
BankIt
Version: 0.11
by: Wym [More]
This addon is intended for crafters primarily, but can be used by everyone to facilitate moving small quantities of items to the bank.

For every item in your bags, it looks if the same item type is present in the bank already, and if yes, moves the bag items onto the corresponding bank stack.

Standard Usage

The first button moves all items from your bags to the bank if they have a corresponding stack there, even if there's not enough space to empty the bag stack.

The second button moves only those items that will fit into the bank completely.

For example, if you have 75 items of cloth in your bank, and 40 in your bag, the first button will move 24 items, resulting in 99 in the bank and 16 in the bag. The second one will do nothing in this case. If, however, you have 55/40, both buttons will result in 95 items in the bank and an empty bag.

The 3rd and 4th buttons work the other way round - they move items from
the bank to your bags if the same item type is already present there.

Assigning macros

You can macro these buttons as /bankit push, /bankit put, /bankit get and /bankit pull.

Advanced Features

Warning: these features are new in Version 0.10. Use with care. Especially, don't rely on them with guild banks if you don't have access to get items back from the guild bank again, and always double-check if everything worked as it should.


You can tell BankIt not to move certain items, or item categories, at all. For example, if you have some healing potions in your bank, and some in your bags, you might want BankIt not to touch them when pulling items.

Or, you might want to put new planar essences into your 5th bank bag. They don't stack, so you want to tell BankIt "put all planar essences into any empty slot in the 5th bag".

The user interface for this opens when you click the new wrench icon next to the movement icons.
The top part of the configuration screen shows buttons to select your inventory, bank vaults, bank bags, or guild bags, and a bag/page within these categories.
The lower left part shows the slot within that bag, the current designation, the current item in the slot, and the category of the item within the slot.
The lower right part shows a list of items to ignore when moving stuff.

To tell BankIt not to touch a certain item, click the ">" button next to the item name. The item name will appear in the ignore list. Or, press ">" next to an item category to ignore all these items (for example, moving "consumable potion" on the ignore list will ignore all heal potions, mana potions, flasks etc.).

To designate a slot to a certain item, or item type, press the "<" button next to the item name or type. In the future, BankIt will always move this kind of item into the selected slot if that slot is empty.

If you want to remove an item from the ignore list, or un-designate a slot, press the X to clear the entry.

You can designate slots to "ignore", which means BankIt will not move anything to that slot, ever, even if there are mergable stacks of an item. Warning: this is not implemented yet!

To ignore an item type, you can also use /bankit ignore "potion of healing" or /bankit ignore "misc collectible"

To designate a lot of slots at once, use "/bankit designate <type> <frombag> <tobag> <fromslot> <toslot> <item>". <type> is i for inventory, b for bank bag, v for bank vault, or g for guild. See the example below.

Examples

Don't want your healing pots to be moved around? Use /bankit ignore "consumable potion" - mind the quotes because of the blank. If you don't know the type of your item, walk up to your bank, open the config UI, select a slot that has the type of item and press the ">" button next to the category.

Want to put all your rhenium bars into bag 3, slot 7 in your bank, no matter if there are some or the slot is empty? Put some there once (so you have the name in your UI), open the UI, select "Bank bag", "3", and press "<" next to the item in slot 7. Or, type /bankit designate b 3 3 7 7 "rhenium bar".

Want to put all new planar essences into bank bag 5, using all slots? You could put some essences into all slots, then use the UI to designate them, or type /bankit designate b 5 5 1 28 "planar lesser". This sets the designations of all slots (1-28) at once. WARNING: do not designate slots that the corresponding bag doesn't have, or then addon will crash when it tries to move stuff into the non-existing slots.

Your guild has a vault designated to sharing artifacts? First, use /bankit designate g 1 6 1 105 ignore to prevent bankit from moving anything into the guild bank - you don't want to lose your flasks just because your guild has a stash for raids somewhere. Then, use /bankit designate g 3 3 1 105 "misc collectible". Now, if you press the "move to bank" button when the guild bank is open, all your artifacts will be placed in guild vault 3.

And if you're the guild officer who sells the artifacts from time to time, you might want to /bankit designate i 3 5 1 28 "misc collectible". When you pick up stuff from the guild now, BankIt will leave your first 2 bags alone, but fill your bags 3-5 with as many artifacts from the guild as possible.
Version 0.11: (Hopefully) made bank vaults work

Version 0.10: Implemented advanced features: ignore item names/item types, designate slots, config UI

Version 0.053: Hopefully fixed all bugs that would make BankIt stop in the middle of moving things. Added a stop icon, and the /bankit stop command, to stop it while it's moving.

Version 0.052: Fixed various bugs, should be much more stable now.

Version 0.04: BankIt works with guild banks as well now, for people who share their crafting mats with the guild, or have their own private guild to share stuff with their alts. Also, BankIt waits for each item move now, which should hopefully fix some bugs with double move requests.


Version 0.03: If you had an unstackable item, like a bag or some piece of armor, in the bank, and the same type of item in one of your bags, you'd get an error when pressing one of the buttons. This should be fixed now.


Version 0.02: Changed the way the bank and bags are compared, to prevent performance warnings. Now, just 10 bank items per frame are compared with bags, instead of doing everything in a single frame. Also, while comparison/movement is running, you get a window showing what's done at the moment.
An undocumented command "/bankit perframe <n>" can be used to change the number of items per frame depending on the speed of your PC. If you still get addon performance warnings, use "/bankit perframe 5" or even "/bankit perframe 1", if you have a very fast PC you might want to try "/bankit perframe 20" or a higher number.
Optional Files (0)


Archived Files (7)
File Name
Version
Size
Author
Date
0.10
58kB
Wym
08-27-13 02:13 PM
0.053
19kB
Wym
07-05-13 11:22 AM
0.052
50kB
Wym
07-01-13 01:34 PM
0.04
45kB
Wym
06-09-13 02:14 PM
0.03
44kB
Wym
12-30-12 03:22 PM
0.02
44kB
Wym
12-24-12 09:20 AM
0.01
12kB
Wym
12-20-12 11:29 AM


Post A Reply Comment Options
Unread 09-10-14, 02:01 PM  
twistdshade
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Are there any plans to update this?
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 01-21-14, 03:00 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 285
Uploads: 6
Re: Re: Re: Re: Vaults beyond one

There is a bug in the Rift API to do with vaults and Event.Item.Update (I reported it here: http://forums.riftgame.com/technical...ml#post4642113)

Essentially the vault slot passed to the event is lower by one than it should be - and if the update is in vault 1, you get no update at all.

The upshot of this, is that if you are waiting on an update for something in one of these slots, you wont get it and the move process hangs.

I have patched my local copy of BankIt with a workaround:

Add two new local tables:

Code:
local vaultupdates = {}
local vaultslots = {}
Modify the systemUpdate function:

Code:
local function systemUpdate(handle)
	if next(vaultupdates) then
		local id = Inspect.Item.Detail(vaultupdates)
		if id then
			for k,v in pairs(id) do
				if vaultupdates[k] and v.stack ~= vaultupdates[k] then
					moveComplete2({[k]=true})
					vaultupdates[k] = nil
				end
			end
		end
	end
	if next(waitingForUpdate) ~= nil then return end

...

					elseif modetodo==2 then		-- move bag to bank if bank stack has enough space to take bag stack
						if bkitem.stack + bgitem.stack <= bkitem.stackMax then
							print (L("Moving ")..bkitem.name..L(" from ")..bgslot..L(" to ").. bkslot)
							if vaultslots[bkslot] then
								vaultupdates[bkslot] = bkitem.stack
							end		
							Command.Item.Move(bgslot, bkslot)
							bkitem.stack = bkitem.stack + bgitem.stack
							bgitem.stack = 0
							waitingForUpdate={[bgslot]=true}
							if banktype ~= "guild" then waitingForUpdate[bkslot]=true end
							return
						end
And also the BankIt.swap function:

Code:
			for bk=1,6,1 do
				for bki = 1,32,1 do
					bkslot=Utility.Item.Slot.Vault(bk, bki)
					bkitem=Inspect.Item.Detail(bkslot)
					vaultslots[bkslot] = true
					table.insert(bankstodo, { bkslot, bkitem })
					table.insert(desigtodo, { bkslot, bkitem })
				end
			end
Essentially what we are doing is noting if an update target is a vault slot, and then handling it specifically.

Note - I only modified the move stuff from bag to bank if it will go condition, since that is what I mostly do that causes the hang.
adelea is offline Report comment to moderator  
Reply With Quote
Unread 10-19-13, 03:59 PM  
Fogyak

Forum posts: 0
File comments: 2
Uploads: 0
Re: Re: Re: Vaults beyond one

Quote:
Originally Posted by Dentatus
Just tried out 0.11 and bumped into an odd little problem. The addon now successfully scans for items to be transferred, transfers the first item found, then halts after moving the stack. Hitting 'stop' causes it to finish a scan, perform no action and exit. It should be noted that the addon will now move stacks to vault 2 and presumably 2-5, though with the way it's pausing for me after each transfer I'm having difficulty fully testing that.
I was getting this almost every time I did it, but I haven't gotten it since 0.11 I don't think. I'll pay more attention.
Fogyak is offline Report comment to moderator  
Reply With Quote
Unread 10-19-13, 03:57 PM  
Fogyak

Forum posts: 0
File comments: 2
Uploads: 0
A couple suggestions

Hey, I use your addon all the time. I have three suggestions though:

1. Could you make it compress bags and banks, too? What I mean is, if I have two small stacks of something in my inventory, they would be merged.

2. Command only mode that doesn't watch for the bank to be open, so uses like 0 CPU. I haven't tried it, but I recall there are commands for doing all the bank merge business.

3. Is there a way to kick Rift to dump your bag overflow into the bags? With gathering my bags are often full and I find myself with overflow. Often I'm waiting for the overflow after bankit though.
Last edited by Fogyak : 10-19-13 at 03:57 PM.
Fogyak is offline Report comment to moderator  
Reply With Quote
Unread 09-26-13, 12:15 PM  
Dentatus

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: Vaults beyond one

Just tried out 0.11 and bumped into an odd little problem. The addon now successfully scans for items to be transferred, transfers the first item found, then halts after moving the stack. Hitting 'stop' causes it to finish a scan, perform no action and exit. It should be noted that the addon will now move stacks to vault 2 and presumably 2-5, though with the way it's pausing for me after each transfer I'm having difficulty fully testing that.
Last edited by Dentatus : 09-26-13 at 12:16 PM.
Dentatus is offline Report comment to moderator  
Reply With Quote
Unread 09-22-13, 01:08 PM  
Wym
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 8
Re: Vaults beyond one

Quote:
Originally Posted by Dentatus
Brilliant little mod, this one. Unfortunately it only seems to function for my first bank vault. As a collectorphile, I have five bank vaults unlocked. Can the mod be made to work with vaults two through five inclusive also? Should it already and I have a bug somewhere?

Edit: After doing some more RTFM I discover that yes, it should work with my extra vaults. I select 'vault' from the top of the config though and attempt to chose anything from two through five inclusive and no number lights up red. Only the first one. Halp? I -really- want this mod to work as advertised.

Another Edit: Just thought to use '/bankit designate' to designate my vaults, but.. Which type corresponds to vaults? I for inventory, B for bags and G for guild. V for Vault returns the short help blurb. I'm missing something obvious, aren't I...
Rift 2.4 says it supports bank vaults now, so i included everything needed into BankIt. Now, i don't need more than one vault, and i don't want to spend real money on a feature i don't use, so i wasn't able to test with more than one vault. (The way Trion changed the bank API makes me think that, if it works with the 1st one, it should work with all, but you never know ...) So, i'd be grateful if you tried out version 0.11, especially if you use more than one vault, and tell me if it works, or how it fails if it doesn't.
Wym is offline Report comment to moderator  
Reply With Quote
Unread 09-07-13, 03:43 AM  
Wym
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 8
Unhappy Re: Vaults beyond one

Quote:
Originally Posted by Dentatus
Brilliant little mod, this one. Unfortunately it only seems to function for my first bank vault. As a collectorphile, I have five bank vaults unlocked. Can the mod be made to work with vaults two through five inclusive also? Should it already and I have a bug somewhere?

Edit: After doing some more RTFM I discover that yes, it should work with my extra vaults. I select 'vault' from the top of the config though and attempt to chose anything from two through five inclusive and no number lights up red. Only the first one. Halp? I -really- want this mod to work as advertised.

Another Edit: Just thought to use '/bankit designate' to designate my vaults, but.. Which type corresponds to vaults? I for inventory, B for bags and G for guild. V for Vault returns the short help blurb. I'm missing something obvious, aren't I...
Unfortunately ...

i'm not able to support bank vaults right now. When Vaults were introduced with Rift Version 2.3, ZorbaTheHut (the guy who does the addon API) said he'd get support for multiple vaults in soon. Since then, i'm waiting for it to appear. So, when i designed the UI for vaults, i already prepared for them, but, right now, there's just no way for me to access them. Sorry for that. As soon as the API allows, i'll add multiple vaults, and yes, V is going to be the letter i'm going to use
Wym is offline Report comment to moderator  
Reply With Quote
Unread 09-02-13, 01:28 PM  
Dentatus

Forum posts: 0
File comments: 6
Uploads: 0
Vaults beyond one

Brilliant little mod, this one. Unfortunately it only seems to function for my first bank vault. As a collectorphile, I have five bank vaults unlocked. Can the mod be made to work with vaults two through five inclusive also? Should it already and I have a bug somewhere?

Edit: After doing some more RTFM I discover that yes, it should work with my extra vaults. I select 'vault' from the top of the config though and attempt to chose anything from two through five inclusive and no number lights up red. Only the first one. Halp? I -really- want this mod to work as advertised.

Another Edit: Just thought to use '/bankit designate' to designate my vaults, but.. Which type corresponds to vaults? I for inventory, B for bags and G for guild. V for Vault returns the short help blurb. I'm missing something obvious, aren't I...
Last edited by Dentatus : 09-06-13 at 10:43 PM.
Dentatus is offline Report comment to moderator  
Reply With Quote
Unread 01-07-13, 05:14 PM  
topiland

Forum posts: 0
File comments: 45
Uploads: 0
ok i found what make it

i have 1 rhenium bar in bag and have 2 rhenium bar pack in bank which is not full
the addon prob move the bar for both stack, perhaps will fail on second move
23:14:53: [BankIt] Moving Rhenium Bar from si01.001 to sb05.019
23:14:54: [BankIt] Moving Rhenium Bar from si01.001 to sb08.021

error come here next
Last edited by topiland : 01-07-13 at 05:16 PM.
topiland is offline Report comment to moderator  
Reply With Quote
Unread 01-07-13, 01:46 AM  
Wym
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 8
Sounds like the bank became unavailable - did you close the bank window before BankIt was finished moving stuff?


Quote:
Originally Posted by topiland
Error: Incorrect function usage.
Parameters: "si01.007", "sb08.021"
Parameter types: slot, slot
Function documentation:
Moves an item from one location to another. This cannot move items directly between equipment, wardrobe, or guild bank - you'll have to stop off in the inventory first.
If interacting with an item in the player bank, requires the "bank" interaction flag to be set. If interacting with an item in the guild bank, requires the "guildbank" interaction flag to be set.
This function is subject to the "global" command queue.
Command.Item.Move(source, destination) -- item, slot
Command.Item.Move(source, destination) -- slot, slot
Parameters:
destination: The location to move the item. May attempt to stack or swap if there is already an item here.
source: The item to move. Must be a slot specifier that refers to an actual item.
In BankIt / systemUpdate, event Event.System.Update.Begin
stack traceback:
[C]: in function 'Move'
BankIt/main.lua:105: in function <BankIt/main.lua:78>
Wym is offline Report comment to moderator  
Reply With Quote
Unread 01-06-13, 05:45 PM  
topiland

Forum posts: 0
File comments: 45
Uploads: 0
Error: Incorrect function usage.
Parameters: "si01.007", "sb08.021"
Parameter types: slot, slot
Function documentation:
Moves an item from one location to another. This cannot move items directly between equipment, wardrobe, or guild bank - you'll have to stop off in the inventory first.
If interacting with an item in the player bank, requires the "bank" interaction flag to be set. If interacting with an item in the guild bank, requires the "guildbank" interaction flag to be set.
This function is subject to the "global" command queue.
Command.Item.Move(source, destination) -- item, slot
Command.Item.Move(source, destination) -- slot, slot
Parameters:
destination: The location to move the item. May attempt to stack or swap if there is already an item here.
source: The item to move. Must be a slot specifier that refers to an actual item.
In BankIt / systemUpdate, event Event.System.Update.Begin
stack traceback:
[C]: in function 'Move'
BankIt/main.lua:105: in function <BankIt/main.lua:78>
topiland is offline Report comment to moderator  
Reply With Quote
Unread 12-29-12, 02:46 PM  
twistdshade
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
woops, posting in wrong addon
Last edited by : 12-29-12 at 03:35 PM.
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 12-24-12, 11:14 AM  
Wym
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 16
Uploads: 8
BankIt

Quote:
Originally Posted by Eloora
Getting this and similar errors every time I click any of the buttons:
Code:
Error: BankIt/main.lua:76: attempt to compare two nil values
    In BankIt / BankIt.pull:LeftUp
stack traceback:
	BankIt/main.lua:76: in function 'swap'
	BankIt/BankItUI.lua:55: in function <BankIt/BankItUI.lua:54>
Hi Eloora,
i didn't get your specific error, but i did get errors relating to performance when i had a lot of filled bags, so i changed a lot of stuff concerning how comparison and item movement is handled. Could you please download version 0.02 and try again?

Ty,
Wym.
Wym is offline Report comment to moderator  
Reply With Quote
Unread 12-22-12, 09:45 AM  
Eloora
Zombie

Forum posts: 2
File comments: 10
Uploads: 0
Getting this and similar errors every time I click any of the buttons:
Code:
Error: BankIt/main.lua:76: attempt to compare two nil values
    In BankIt / BankIt.pull:LeftUp
stack traceback:
	BankIt/main.lua:76: in function 'swap'
	BankIt/BankItUI.lua:55: in function <BankIt/BankItUI.lua:54>
Eloora is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: