Thanks for the good explanation Rock. So then what I am looking for would be something like this?
Code: Select all
function move_to_bank()
for i, v in pairs(bankitems) do
itemObj = inventory:findItem(v)
if itemObj then
itemObj:moveTo("bank")
end
end
end
Another question... In a separate table I'll be using to mail items to a different character, I list mostly IDs of items I want to mail, but some of the items in the table, I only list name because there are so many different variations of the same item (such as Random Fusion Stones). Will the UMM_SendByNameOrId("Charname",mailitems) be ok if the table is mixed between ID's and Names? Here's a portion of my table:
Code: Select all
520582, -- Advance II
520622, -- Block II
521092, -- Ferocity II
"Fusion Stone",
"Random Fusion Stone",
205821, -- Temporary Mount Use Voucher
205818, -- Royal Furniture Recipe Collection Box
There are like 8 or so different IDs in runesdatabase for Random Fusion Stone so I figured I'd use the Name for that one instead. would that be ok to mix strings and numbers in that table if being used by your mailing function?