Bionicle
2010-02-01 19:39:26
Well I fixed the procedure GetCurrentTab, I have not tested any other broken functions (I have tested with one, see below), but if I am right, it should fix a chain of broken functions.
Ran this:
:)
E: InvFull is what was breaking in my script, so I ran this:
Mwahaha :p
{*******************************************************************************
function GetCurrentTab: Integer;
By: ZephyrsFury
Description: Returns current tab.
*******************************************************************************}
function GetCurrentTab: Integer;
var
tP: TPoint;
begin
if (not LoggedIn) then exit;
for Result := 1 to 16 do
begin
tP.X := 535 + (Result - 1) mod 8 * 30;
tP.Y := 169 + (Result - 1) div 8 * 298;
if (GetColor(tP.X, tP.Y) = 3775974) then
Break;
end;
result := result + 20; //SO IT ACTUALLY WORKS WITH THE TABS KTHX
end;Ran this:
program New;
{.include SRL/srl.scar}
begin
ClearDebug;
SetupSRL;
ActivateClient;
Wait(5000);
If GetCurrentTab=25 Then
Writeln('Found it!');
end.SRL Compiled in 16 msec
Found it!
Successfully executed:)
E: InvFull is what was breaking in my script, so I ran this:
program New;
{.include SRL/srl.scar}
begin
ClearDebug;
SetupSRL;
ActivateClient;
Wait(5000);
If InvFull Then
Writeln('Inv full!');
end.SRL Compiled in 15 msec
Inv full!
Successfully executedMwahaha :p