671, added a function for bank usage
Posted: Tue Nov 08, 2011 3:49 am
revision 671.
Nothing huge, just added in a function for bank usage.
Usage is as follows.
If you know the slot you want to check then do
for slot 1
If you want to look through bank to find something then
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
--=== Note ===--
I only did slots 1-40, if you own more then 1 tab then we might need to look at it differently, not sure if using slot 41 would work.
It is limited to 40 slots (1 tab) at this stage.
Nothing huge, just added in a function for bank usage.
Usage is as follows.
Code: Select all
local name, id, count, slot = bankItemBySlot(slotnumber)
for slot 1
Code: Select all
local name, id, count, slot = bankItemBySlot(1)
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")
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
--=== Note ===--
I only did slots 1-40, if you own more then 1 tab then we might need to look at it differently, not sure if using slot 41 would work.
It is limited to 40 slots (1 tab) at this stage.