king vash
2008-08-07 02:22:16
I have ItemAmount working for stacks in my inventory but not in my bank.
a := DTMFromString('78DA63EC616060F06740015121210C5C409A1188FF0301E3649020031A6084AB01F36603092F026A5A80442401350D40C21DBF1A00CD7D0990');
b := DTMFromString('78DA630C61626068656440064F1F3E64E002D220D1FF40C0E80654D380AA0624CB045503E67902793D04D4C40079FD04D4240279F5F8D50000B6250B12');
repeat
repeat
wait(100);
until(IsFKeyDown(1));
writeln(IntToStr(ItemAmount('bank', 'dtm', a, [20])) + ' ess in bank: airs in bank ' + IntToStr(ItemAmount('bank', 'dtm', b, [40])));
writeln(IntToStr(ItemAmount('inv', 'dtm', a, [20])) + ' ess in inv: airs in inv ' + IntToStr(ItemAmount('inv', 'dtm', b, [40])));
until falsethis correctly returns number of airs (stacked) in my inventory and the number of ess (not stacked) in inventory but it returns 0 or 1 from anything in my bank. does any one know why or what to you instead?