SRL Archive - RS3 Outdated / Broken Scripts

Eating Procedure


Dervish

2008-04-24 11:06:13

Okay so I've seen many on the forums that need eating procedures for their scripts…

So I decided to publish a little script that eats for your char when he needs it.

What it will do :
-Detect if the HP number (next to the heart in the upper right corner) is red
-If it is red, then it will eat random food until it is green

[NOTE1 : IF YOU HAVE STUFF IN YOUR INVENTORY THAT IS NOT FOOD : THEN YOU MUST PUT "//" IN FRONT OF THE CORRESPONDING INVENTORY SPOT !!!]

[NOTE2 : of course, if I upload this script… It is for you to use it… Credits would be appreciated]

Here it is :

V1(sux like fux) : [ATTACH]11893[/ATTACH]

V1.5(pretty good i think) : [ATTACH]12551[/ATTACH]

JuKKa

2008-04-24 12:08:04

Heres a bit faster, safer for sure.

Function Eat: Boolean;
Var
T, I, X, Y, Hp: Integer;
Color: String;
Begin
Repeat
Hp := GetMMLevels('hp', Color);
If(Color = 'Orange')Or(Color = 'Yellow')Or(Color = 'Red')Then
Begin
For I:= 1 To 28 Do
Begin
MMouseItem(I);
Wait(50);
If(IsUpText('Eat'))Then
Begin
Getmousepos( X, Y );
Mouse(X, Y, 0, 0, True);
Wait(500+Random(300));
Break;
End;
End;
End;
If(I = 28)Then Exit; //This means .. No food..
If(Not Loggedin)Then Exit;
Until(Color = 'Green');
Result := True;
End;

Returns true when it has green HP.

ShowerThoughts

2008-04-24 12:37:33

From: JuKKa
Heres a bit faster, safer for sure.

Function Eat: Boolean;
Var
T, I, X, Y, Hp: Integer;
Color: String;
Begin
Repeat
Hp := GetMMLevels('hp', Color);
If(Color = 'Orange')Or(Color = 'Yellow')Or(Color = 'Red')Then
Begin
For I:= 1 To 28 Do
Begin
MMouseItem(I);
Wait(50);
If(IsUpText('Eat'))Then
Begin
Getmousepos( X, Y );
Mouse(X, Y, 0, 0, True);
Wait(500+Random(300));
Break;
End;
End;
End;
If(I = 28)Then Exit; //This means .. No food..
If(Not Loggedin)Then Exit;
Until(Color = 'Green');
Result := True;
End;

Returns true when it has green HP.


why not
Result := Color = 'green';
just to be sure :D

JuKKa

2008-04-24 13:52:47

From: Hermpie
why not
Result := Color = 'green';
just to be sure :D

yeah i thought about it when i posted then i thought ah what the hell im not gonna use it ;)

ShowerThoughts

2008-04-24 14:05:36

From: JuKKa
yeah i thought about it when i posted then i thought ah what the hell im not gonna use it ;)


Hrrrm I trust you :D(liar-.-)

JuKKa

2008-04-24 14:06:51

From: Hermpie
Hrrrm I trust you :D(liar-.-)

not a liar.. Im talking the truth here.

ShowerThoughts

2008-04-24 14:08:41

o do you :p

JuKKa

2008-04-24 14:10:08

o actually i do. How about u show us ur eating procedure?

slayerkiller13

2008-04-25 09:14:42

i would add it to my fighting script if i knew how to write one :(

ShowerThoughts

2008-04-25 11:30:50

From: JuKKa
o actually i do. How about u show us ur eating procedure?

i don't have a eating procedure i do have a heal procedure in my monk kilelr + healer script soon releasing :D
From: slayerkiller13
i would add it to my fighting script if i knew how to write one :(


LOL

slayerkiller13

2008-04-25 11:57:34

From: Hermpie
i don't have a eating procedure i do have a heal procedure in my monk kilelr + healer script soon releasing :D


LOL

dont laugh at me i will learn how to script after exams =p

link me to your monk or send it to me please if it is good ?i get you proggys :D
i cbb with chickens anymore i need better thing to train my 2 noobs with at f2p
im try narcle auto fite

ShowerThoughts

2008-04-25 12:02:09

It works pretty good(sorry for thread haijcking) but it has yet to many bugs before release

Dervish

2008-05-20 15:29:20

OK now listen everybody, this SOCKEZ so i updated it… now it's kind of better ;)

NEW ONE IS GR8…

And ppl… plz stop EXPLODING THIS THREAD