SRL Archive - Help

Warning! You passed a wrong xs to a finder function:what should we do?


Gaston7eze

2011-12-22 06:19:16

Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.

Dynamite

2011-12-22 06:28:31

That is an error where the script is trying to click of the screen and it can't

-Boom

Gaston7eze

2011-12-22 06:29:28

From: Dynamite
That is an error where the script is trying to click of the screen and it can't

-Boom


How do i do the script to open "Runescape" ?
Otherwise,how do i repair this error?Thanks.

Dynamite

2011-12-22 06:34:36

Are you running a script in SMART?
Which script?
When does it throw the error?

-Boom

Gaston7eze

2011-12-22 06:37:42

Well,i dont know if im running it in SMART,how could i know?
A script made by me ,a simple script which chop down Yews
When i click run it start to show that message like 20 times.
Thanks
Gastón.

Killerdou

2011-12-22 06:50:53

Perhaps post the script?

Gaston7eze

2011-12-22 06:52:22

program New;
{.include srl/srl.scar}

Procedure DeclarePlayers;
begin;
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
end;
Procedure ChopTree;
Var x,y: Integer;
Begin;
If FindObj(x,y,'hop',1785912, 35)Then
Mouse(x,y,0,0, False);
ChooseOption('Hop')
Repeat
Wait(1200+random(250));
Until not IsUpText('yew')or InvFull
End;
Procedure AntiBan;
Begin;
If(Not LoggedIn)then
Exit;
Case Random(8)of
0:
Begin;
HoverSkill('Woodcutting',false)
Wait(2453+random(432));
End;
1: Wait(100);
2 : PickUpMouse;
End
Begin;
MakeCompass('N');
Wait(100+random(133));
MakeCompass('S');
Wait(50+random(133));
MakeCompass('N')
End;
End;

begin;
SetUpSRL;
ActivateClient;
DeclarePlayers;
ChopTree;
end.

Killerdou

2011-12-22 06:57:49

You're not using smart, put {$i srl/srl/misc/smart.scar} above your srl include to use smart.

I suppose you haven't selected the runescape client correctly.

I highly suggest reading some beginner tutorials on how to make scripts. Don't only read them, but also type into simba what they're telling you to write(don't copy paste).

Gaston7eze

2011-12-22 06:59:13

From: Killerdou
You're not using smart, put {$i srl/srl/misc/smart.scar} above your srl include to use smart.

I suppose you haven't selected the runescape client correctly.

I highly suggest reading some beginner tutorials on how to make scripts. Don't only read them, but also type into simba what they're telling you to write(don't copy paste).


Thanks,where can i get the tutorial on how to make the script to open Runescape and work with it.?
Edit:Now it works fine,it opnes Runescape window but when it starts working it just stop.

Killerdou

2011-12-22 07:02:49

http://villavu.com/forum/showthread.php?t=58935 should do the trick

Gaston7eze

2011-12-22 07:04:41

From: Killerdou
http://villavu.com/forum/showthread.php?t=58935 should do the trick


Thanks friend.
But if i put "Repeat" ,it should repeat the procedure all the time,or not ?