
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.
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?

Picture of the bug.. See.. It refuses to climb even when the options are there..
I'm using ChooseOptionMulti(['adder', 'up Lad', 'limb-up', 'dder', 'limb', 'mb-up']);
I actually caught it this time.. The thing is, ChooseOption is working 99% of the time.. the other 1% of the time, it gets in an infinite loop where it right clicks, sees the options, n then does nothing.. gets stuck in an infini loops until the menu goes away.. Now for that particular screenie, when it doesn't find the option, it moves the mouse away so that the menu disappears.. then tries again.. and fails for an infinite amount of times until I help it.
This bug is extremely rare and that's why it took me soo long to catch it doing that in a screenie.
For the inventory one with the banking and the lag, if I use:
FindDTM(DTMInteger, X, Y, .............) it'll find the dtm's 100% of the time.. but when I use it in combination with withdrawex, a massive lag happens which might be causing it to fail:
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;
It finds it like 80% of the time and lags extremely hard!! Lags so bad that sometimes I have to restart Simba or my computer.. I get this white outline of smart to the upper left of my screen when it does that.
So instead I just use my own custom functions for withdrawing.
EDIT: I finally caught it with the summoning potion..

That right there is one infinite loop in chooseoptionmulti.. it will not move until i get rid of the menu.. then when the menu is gone, it will right click and drink.. Which it did. It drank after I made menu go away (it right clicked and drank perfectly fine because the option was found :S)