Trying to learn by making small function
so I 'm Trying to send some wood into a bag at the bank. Find some documentation and trying to get this to work.
I build a list into Orion assistant , no error is present when i run it. Any idea what I'm dong wrong.
var runebook = "0x429C9158"
var bankbag = "0x40CF7E6A"
function LootToBank()
{
Orion.Say('Bank');
var sorttobag = Orion.FindList('Loot', 'backpack', '1');
if(sorttobag.length) {
var sort = sorttobag.length;
for (i = 0; i < sort; i++) {
Orion.MoveItem(sorttobag[i], 0, bankbag);
Orion.Wait(600);
}
}
}