footballjds
2012-12-14 17:06:27
FTab needs updated. It should no care whether or not the action bar is open. A game update a few weeks ago removed the need for the action bar to be open for FKeys to work. I've confirmed this in game.
If someone could please change FTab from this:
To this:
I was wondering why FTab wasn't working and was defaulting to gameTab and so I took a look.
I'll get git setup on my next laptop no point as it's 10 days till then…
If someone could please change FTab from this:
function FTab(Tab: integer): boolean;
var
T, F: integer;
begin
if (GetCurrentTab = Tab) then
begin
result := true;
Exit;
end;
if not IsActionBarOpen then //F keys disabled when Action Bar not open
begin
Result:= GameTab(Tab);
Exit;
end;
Case Tab of
tab_Inv: F := 1;
tab_Equip: F := 2;
tab_Prayer: F := 3;
tab_Magic: F := 4;
tab_Combat: F := 5;
else
writeln('Tab '+inttostr(tab)+' isn''t a valid option.');
end;
T := GetSystemTime + 618;
Repeat
TypeByte(111+F);
Wait(150+random(100));
Result := GetCurrentTab = Tab;
until Result or (GetSystemTime > T);
if not Result then //F keys sometimes doesn't work properly in EOC, may be a bug on Jagex's part though
Result:= GameTab(Tab); //nevertheless this is a good failsafe
end;To this:
function FTab(Tab: integer): boolean;
var
T, F: integer;
begin
if (GetCurrentTab = Tab) then
begin
result := true;
Exit;
end;
Case Tab of
tab_Inv: F := 1;
tab_Equip: F := 2;
tab_Prayer: F := 3;
tab_Magic: F := 4;
tab_Combat: F := 5;
else
writeln('Tab '+inttostr(tab)+' isn''t a valid option.');
end;
T := GetSystemTime + 618;
Repeat
TypeByte(111+F);
Wait(150+random(100));
Result := GetCurrentTab = Tab;
until Result or (GetSystemTime > T);
if not Result then //F keys sometimes doesn't work properly in EOC, may be a bug on Jagex's part though
Result:= GameTab(Tab); //nevertheless this is a good failsafe
end;I was wondering why FTab wasn't working and was defaulting to gameTab and so I took a look.
I'll get git setup on my next laptop no point as it's 10 days till then…