Quote:
Originally Posted by
Coh3n
Oh wow, didn't know there was a function like that, but I only looked in bank.simba. You'd think that's where all the banking functions would be. :p
So, you're saying using that function it doesn't always find the DTM, but when you use your function, it always works? Can you post the code you're using to test?
Simba Code:
Pouch := DTMFromString('m1gAAAHic42JgYDjIxMBwjAlC70PCIP4RKD4JxJyMDAxcQMwLxSA+GxIGiXEAcWFJPENxeSKDv78tGOcXxzIUlMQxFJUlMGSkhYDFyqqSGbiAdhODGYnECAAAECwT5g==');
NOBC:= ItemAmount('inv', 'dtm', Pouch, []);
while ((NOBC < NOB) or (Tries < 5)) do
begin
if (NOBC < NOB) then
if FindDTM(Pouch, X, Y, MBX1, MBY1, MBX2, MBY2) then
begin
MMouse(X, Y, 0, 0);
if (WaitUptextMulti(['yip pouch', 'unyip', 'Bunyip pouch', 'yip po'], 1200)) then
begin
BP:= MSTPointToBankPoint(Point(X, Y));
WithdrawEx(BP.X, BP.Y, NOB, ['yip pouch', 'unyip', 'Bunyip pouch', 'yip po']);
end;
end;
Inc(Tries);
T:= 0;
MarkTime(T);
while (TimeFromMark(T) < 2000) and (ItemAmount('inv', 'dtm', Pouch, []) < NOB) do
wait(1);
NOBC:= ItemAmount('inv', 'dtm', Pouch, []);
if (NOBC >= NOB) then
break;
end;
Tries:= 0;