SRL Archive - RS3 Script Requests

Food Eater


Riteaz

2012-02-12 01:14:06

Not sure how to go about asking this but I think I am doing right thing here, could someone please write a script that eats food when your hp is at 50%.

The script would be really useful at A.F.K. trainign spots such as Bandits, Giant Spiders…the list goes on.

The food could be anything from shrimp to rocktails.

Thanks everyone!

laakerules

2012-02-12 02:38:27


Program Eater;
{$i SRL/srl.simba}
{$i SRL/SRL/skill/fighting.simba}

Function Eat(What: String): Boolean;
var
I: Integer;
begin
Result := False;
If Not LoggedIn then Exit;
if (HPPercent < 50) then
If InvEmpty then Logout
else
for i := 1 to 28 do
begin
if ExistsItem(i) then
InvMouse(I, 3);
if IsUpText(What) then
begin
ClickMouse2(True);
Wait(RandomRange(350, 525));
Result := True;
Exit;
end else
end;
end;




Begin
Repeat
Eat('Eat');
until (Not LoggedIn);
end.

there that should work1 :P

Riteaz

2012-02-12 02:43:35

Thank you for making that for me, I really apreciate it.

I am about to test it out, what food does it eat?

laakerules

2012-02-12 02:44:48

Anything with the uptext Eat,

I was just thinking you could use this against like jad just have keep going and check post again i updated it, i forgot the repeat! :P

Riteaz

2012-02-12 02:49:27

thank you very much, this will be very useful to me and the community im sure! This actually kind of made my night in a way lol

Riteaz

2012-02-12 03:10:33

How do I set it up?