Use SIMBA tags man….he already said that, but try this? I don't have the include soooo
program Cow_Killer;
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
//{$I P07Include.Simba}
var
x, y: Integer;
Test: Tstringarray;
procedure DeclarePlayers;
Begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='pcapp5';
Players[0].Pass :='paul5';
Players[0].Nick :='capp';
Players[0].Active:=True;
End;
procedure Kill_Cow;
Begin
repeat
//If P07_FindObjCustom (x,y, ['ow'], [1848381, 11975615],3) then
ClickMouse2(Mouse_left);
Wait(4500)
until(HPPercent <10);
End;
Procedure Eat_Food;
Begin
Repeat
If (HPPercent <10) then
P07_FindObjcustom(x,y ['rout'], [7238283], 2)
Clickmouse2(True);
End;
begin
SetupP07Include;
DeclarePlayers;
P07_LoginPlayer;
Repeat
Kill_Cow;
Until(false);
end.
Also you had a random then somewhere which shouldn't be. Just remove the //