Hi Gucci
I tried this script and evrything works, except for the following:
1)When opening for a trade, it opens the trade window but buys nothing.
2)When opening the depositbox, it banks nothing.
Can you maybe put in some loop to check at the shop if your inventory is full, if not full to repeat the buy, the same with the bank drop, if the inventory is full to once more try and empty the inventory into bank until succesful. In both methods is it possible not to continue onto walking if the inventory is not full or with bank not empty, as it starts to walk even if it is full by the depositbox or empty by the shop
Thanks a lot Gucci.
Ps. I tried to make the changes but as I only started scripting a few days ago, I don`t seem to be able to change these values as yet
Here is my effort:
Simba Code:
procedure Bank;
begin
if (InvFull) then
SPS_WalkPath(ToBox);
begin
Repeat
if FindDTMRotated(DBox, x, y, MSX1, MSY1, MSX2, MSY2, -Pi/4, Pi/4, Pi/60, aFound) or FindObjCustom(x, y, ['eposit', 'box', 'ank'], [5859188, 3687501], 5) then
ClickMouse2(True);
DepositAll;
Until (not(InvFull))
end;
end;
Simba Code:
procedure BuyFlour;
begin
repeat
if (FindDTM(Flour, x, y, MSX1, MSY1, MSX2, MSY2)) or (FindObjCustom(x, y, ['ot', 'lour'], [ 3693185, 3956616, 3627391], 5)) then
ClickMouse2(mouse_right);
ChooseOption('500');
Mouse(499, 20, 0, 0, True);
IncEx(FlourBought, 28);
Until (InvFull)
end;
Can you tell me what I did wrong?
How does the empty of backpack work, with right click or clicking on Empty backpack to Bank?