Log in

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



Gaston7eze
12-22-2011, 11:19 AM
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
12-22-2011, 11:28 AM
That is an error where the script is trying to click of the screen and it can't

-Boom

Gaston7eze
12-22-2011, 11:29 AM
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
12-22-2011, 11:34 AM
Are you running a script in SMART?
Which script?
When does it throw the error?

-Boom

Gaston7eze
12-22-2011, 11:37 AM
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
12-22-2011, 11:50 AM
Perhaps post the script?

Gaston7eze
12-22-2011, 11:52 AM
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
12-22-2011, 11:57 AM
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
12-22-2011, 11:59 AM
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
12-22-2011, 12:02 PM
http://villavu.com/forum/showthread.php?t=58935 should do the trick

Gaston7eze
12-22-2011, 12:04 PM
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 ?