SRL Archive - SRL Bugs

GetCurrentTab


Justin

2012-10-24 07:41:54

Hi All.

Since RuneScape just updated, seems they changed the colours for the tabs.

GetCurrentTab is always returning '37' for me.

Can anyone else please see if this is the same case for them?

Thanks

Justin.

Ashaman88

2012-10-24 07:46:34

Haven't tested what it is returning, but it is screwing up

edit:

function GetCurrentTab: Integer;
var
tP: TPoint;
x,y: integer;
begin
Result := -1;
if (not LoggedIn) then exit;

for Result := 0 to (tab_LogOut - tab_Combat)-1 do
begin
tP.X := 535 + Result mod 8 * 30;
tP.Y := 169 + Result div 8 * 298;
if findcolortolerance(x,y,3775974,tp.x-1,tp.y-1,tp.x+1,tp.y+1,15) Then
break;
end;
Result := Result + tab_Combat;
if BankScreen then
Result := tab_Inv;
end;

this works for me