putonajonny
2012-04-12 18:40:04
I have this procedure:
In the debug box I am getting:
when my invent looks like this:
This causes my script to bank every 2 mins :S
The Weird Part:
The code for InvEmpty is
:confused: :confused: :confused: :confused: :confused: :confused: :confused:
edit:
My only guess is lag from pressing the inventory tab before it actually shows it which wouldn't be unheard of for my internet connection:
if(InvEmpty)then
begin
WriteLn('Inventory is empty')
NoMoreFood := True;
end;In the debug box I am getting:
Inventory is emptywhich causes my script to run off to the bankwhen my invent looks like this:
This causes my script to bank every 2 mins :SThe Weird Part:
The code for InvEmpty is
function InvEmpty: Boolean;
var
X, Y: Integer;
begin
GameTab(tab_Inv);
Result := (not FindColor(X, Y, srl_outline_black, MIX1, MIY1, MIX2, MIY2));
end;
//From Globals:
const
MIX1 = 547;
MIY1 = 202;
MIX2 = 737;
MIY2 = 466;
srl_outline_black = 131072;
and when I use the colour picker:Picked colour: 131072 at (619, 228) :confused: :confused: :confused: :confused: :confused: :confused: :confused:
edit:
My only guess is lag from pressing the inventory tab before it actually shows it which wouldn't be unheard of for my internet connection: