im pretty sure SRL's constant for the black outline has changed i will look into it more and let you people know
EDIT: i have added 15 to the y1 part of my search to fix the problem ou mentioned, i can not take credit for that, it was boreas and without his tutorial/post a while back i wouldnt hve known about them
EDIT 2: i fixed the problem, it was because SRL's black outline was not correct, or i set up runescape wrong, but i also had to rewrite the function am making to withdraw it
Simba Code:
function Withdraw_Clay: Boolean;
var
i, h,l, Max_Time, x, y: Integer;
Bank_Slot: TBox;
SlotsIn: array of Integer;
begin
if (not LoggedIn) then Exit;
if (not In_Bank) then Exit;
Max_Time := GetSystemTime + (2 * 60 * 1000); // Max time of 2 minutes.
Open_Bank(WHICH_BANK);
while (not(Result)) and (GetTimeRunning < Max_Time) do
begin
Count_Items(CLAY_BLACKCOUNT, 1, 50, SlotsIn)
OutputArray(SlotsIn, 'CLAY_BLACKCOUNT in Bank slots');
h:= High(SlotsIn);
l := Length(SlotsIn);
if (l > 0) then
begin
for i:=0 to h do
begin
Bank_Slot := BankIndexToMSBox(SlotsIn[i]);
MouseBox(Bank_Slot.X1, Bank_Slot.Y1, Bank_Slot.X2, Bank_Slot.Y2, 3);
wait(500);
if WaitUpTextMulti(['Withdraw-1 c', 'w-1 Clay', 'lay'], 1000) then
GetMousePos(x,y);
Mouse(x, y, 0, 0, false);
WaitOption('All', 1000);
Players[CurrentPlayer].Integers[CLAY_BANKSLOT] := SlotsIn[i];
writeln('Player ' + IntToStr(CurrentPlayer) + ' has clay in bankslot '+ inttostr(Players[CurrentPlayer].Integers[CLAY_BANKSLOT]));
exit;
end;
end else
writeln('SlotsIn Array = 0');
Result := False;
end;