Download
(44 Kb)
Download
Updated: 12-30-12 02:22 PM
Pictures
File Info
Updated:12-30-12 02:22 PM
Created:12-20-12 10:29 AM
Downloads:165
Favorites:4
MD5:
BankIt
Version: 0.03
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.

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.

You can macro these buttons as /bankit push, /bankit put, /bankit get and /bankit pull.
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 (2)
File Name
Version
Size
Author
Date
0.02
44kB
Wym
12-24-12 08:20 AM
0.01
12kB
Wym
12-20-12 10:29 AM


Post A Reply Comment Options
Old 01-07-13, 04:14 PM  
topiland

Forum posts: 0
File comments: 37
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 04:16 PM.
topiland is offline Report comment to moderator  
Reply With Quote
Old 01-07-13, 12:46 AM  
Wym
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 9
Uploads: 5
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
Old 01-06-13, 04:45 PM  
topiland

Forum posts: 0
File comments: 37
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
Old 12-29-12, 01:46 PM  
twistdshade

Forum posts: 0
File comments: 4
Uploads: 0
woops, posting in wrong addon
Last edited by twistdshade : 12-29-12 at 02:35 PM.
twistdshade is offline Report comment to moderator  
Reply With Quote
Old 12-24-12, 10:14 AM  
Wym
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 9
Uploads: 5
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
Old 12-22-12, 08: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: