SRL Archive - Help

How can i do the script to repeat an accion for ever?


Gaston7eze

2011-12-22 09:57:30

Thanks.

RISK

2011-12-22 09:58:24


repeat
// ...
until(False);

Gaston7eze

2011-12-22 09:59:25

From: RISK

repeat
// ...
until(False);


Thanks man im gonna try out
PD:I made the script to cut one tree!Im happy LOL.Thanks to you and the guys who help me.

RISK

2011-12-22 10:01:01

Great job! :)

Gaston7eze

2011-12-22 10:04:04

Is this right ?

Begin;
If FindObj(x,y,'hop',1785912, 35)Then
Mouse(x,y,0,0, true);
ChooseOption('Hop')
Repeat
Wait(1200+random(250));
Until not IsUpText('Tree')or InvFull
Repeat
Mouse(x,y,0,0,true)
Wait(2000)
Until(False);
End;

Gaston7eze

2011-12-22 10:05:28

From: Gaston7eze
Is this right ?

Begin;
If FindObj(x,y,'hop',1785912, 35)Then
Mouse(x,y,0,0, true);
ChooseOption('Hop')
Repeat
Wait(1200+random(250));
Until not IsUpText('Tree')or InvFull
Repeat
Mouse(x,y,0,0,true)
Wait(2000)
Until(False);
End;


Edit:It just clicks on the corner of the Runescape Screen.

RISK

2011-12-22 10:06:09

Try this:
Begin
Repeat
If FindObj(x,y,'hop',1785912, 35)Then
Mouse(x,y,0,0, true);
ChooseOption('Hop')
Repeat
Wait(1200+random(250));
Until not IsUpText('Tree')or InvFull
Until(False);
End;

Work on your standards, by the way. :)
http://villavu.com/forum/showthread.php?t=60288

Gaston7eze

2011-12-22 10:07:11

From: Gaston7eze
Edit:It just clicks on the corner of the Runescape Screen.


From: RISK
Try this:
Begin
Repeat
If FindObj(x,y,'hop',1785912, 35)Then
Mouse(x,y,0,0, true);
ChooseOption('Hop')
Repeat
Wait(1200+random(250));
Until not IsUpText('Tree')or InvFull
Until(False);
End;
Work on your standards, by the way. :)
http://villavu.com/forum/showthread.php?t=60288


Gonna work them out!Thank you very much.

Gaston7eze

2011-12-22 10:27:41

I read all the Standars,Do the Standars have deal with the script to work?

RISK

2011-12-22 10:36:53

Standards help you and others read your script and figure out problems in it.

Markus

2011-12-22 11:44:13

Also you forgot a begin/end there. It seems the script can not find a tree.

Gaston7eze

2011-12-22 11:47:56

From: Markus
Also you forgot a begin/end there. It seems the script can not find a tree.


Where exactly?Thanks for the correction.

Gaston7eze

2011-12-22 12:33:08

Procedure ChopTree;
Var
x,y: Integer;
Begin;
If FindObj(x,y,'hop',1785912, 35)Then
Mouse(x,y,0,0, true);
ChooseOption('Hop')
Repeat
Wait(1200+random(250));
Until not IsUpText('Tree')or InvFull
Repeat
Wait(1200+random(250));
Until not IsUpText('Tree')or InvFull
End;
Is this good?Thanks.It dont work for me,it just click one tree it cut it and then it dont work anymore.:S

Markus

2011-12-22 12:41:17


Begin
Repeat
If FindObj(x,y,'hop',1785912, 35)Then
begin
Mouse(x,y,0,0, true);
ChooseOption('Hop')
Repeat
Wait(1200+random(250));
Until (not IsUpText('Tree')) or InvFull
end;
Until(False);
End;

should cut trees ad infinite.

Maybe because the IsUptext return true? tree stump anyone?

Runescape Pro

2011-12-22 14:29:44

To detect if the tree is down? Great idea markus. That's some next level shiz. :P