Page 1 of 1

put to bank

Posted: Sat Jan 04, 2014 2:39 am
by kuripot
guys please help me to find the right thread.. i try forum search and read all related to my search but i found nothing in what i need...
i just want to put the item from my bag to portable bank and i will get back the item later

Re: put to bank

Posted: Sat Jan 04, 2014 5:46 am
by rock5

Code: Select all

-- Find the item in bags
local item = inventory:findItem("item name","bags") -- Change "item name" to the item name or id.

-- Move to bank (bank should already be open)
if item then 
    item:moveTo("bank")
end

-- Find the item in bank (bank should already be open)
local item = inventory:findItem("item name","bank") -- Change "item name" to the item name or id.

-- Move to bags
if item then 
    item:moveTo("bags")
end

Re: put to bank

Posted: Sat Jan 04, 2014 4:32 pm
by kuripot
rock5 wrote:

Code: Select all

-- Find the item in bags
local item = inventory:findItem("item name","bags") -- Change "item name" to the item name or id.

-- Move to bank (bank should already be open)
if item then 
    item:moveTo("bank")
end

-- Find the item in bank (bank should already be open)
local item = inventory:findItem("item name","bank") -- Change "item name" to the item name or id.

-- Move to bags
if item then 
    item:moveTo("bags")
end

if finding item in bank I,II,III,IV,V?? just like this??

Code: Select all

inventory:findItem("item name","("bankI","bankII","bankIII","bankIV","bankV")")
and also

Code: Select all

item:moveTo("bankI","bankII","bankIII","bankIV","bankV")

Re: put to bank

Posted: Sat Jan 04, 2014 11:46 pm
by rock5
No it doesn't use roman numerals :P

But you can use "bank1", "bank2", "bank3", etc.