I need help with this script that I am making. Just having problems with this one procedure
Simba Code:
program SecretForNow;
{$DEFINE SMART}
{$i SRL\SRL.scar}
Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
with Players[0] do
begin
Name := 'dfgd';
Pass := 'sdfsdf';
Pin := '';
BoxRewards := ['XP','xp','lamp'];
LampSkill := 'Runecrafting';
Active := True;
end;
end;
procedure SetupChar;
begin
SetAngle(True);
MakeCompass('S');
Retaliate(True);
end;
procedure WalkToPad;
Begin
if (HPPercent < 786) then
begin
Mouse(651, 37, 1, 1, True);
End;
End;
Begin
Smart_Server:=35;
SetupSRL;
DeclarePlayers
Repeat
WalkToPad;
Until (false)
End.
I need it so that if it is under the (#) Hp, itll run to the co-ord's but with this script, It will run to the co-ord's even with full hp. I need help, please 
Thank you.