Page 1 of 1

Interact with Bank, Possible?

Posted: Mon Nov 07, 2011 9:06 pm
by imaginethat
Hi
I have been looking around the forums for a way to interact with the Bank, and its looking like its not easy at best.
Are there ways to add remove items from the Bank?
I see there is a

Code: Select all

RoMScript("PickupBankItem("..x..")") -- x is the bank slot number

to get item from specific bankslot and another

Code: Select all

RoMScript("PickupBagItem("..toslot.BagId..")"
to place it in a specific bagslot.

Snippets from here: http://solarstrike.net/phpBB3/viewtopic ... 477#p23405

I am wanting to know if there are other options for finding items in the bank like you can find items in your bags, and maybe countitems, so you can build up a picture of what is in the bank, and then take items and/or deposit items.

Re: Interact with Bank, Possible?

Posted: Tue Nov 08, 2011 3:42 am
by lisa
I decided I liked what I wrote and that the bot could use some easier usage for bank. Added it to revision 671.

Usage is as follows.

Code: Select all

local name, id, count, slot = bankItemBySlot(slotnumber)
If you know the slot you want to check then do
for slot 1

Code: Select all

local name, id, count, slot = bankItemBySlot(1)
If you want to look through bank to find something then

Code: Select all

tokencount = 0
for slotnumber = 1,40 do
local name, id, count, slot = bankItemBySlot(slotnumber)
if id == 204874 then -- phirius tokens
tokencount = tokencount + count
end
end
print("Total tokens in bank "..tokencount.."\n")
That will print to MM window exactly how many phirius tokens you have in your bank, regardless of where you are in the world.
With this info you could do a check and if enough to buy a purified fusion stone then you can go to the bank and remove all the tokens to your bag and then buy a puri.

Anyway that is just 1 example

http://www.solarstrike.net/phpBB3/viewt ... =30&t=3142