SRL Archive - General Botting Help

Help with a simple woodcutting script.


Volture

2014-01-20 07:42:29

I'm still new and getting through the basics. My goal is to be able to make this bank later on…
My code so far is this;

Program ChopTree;

Procedure ClickTree;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 22664, 277, 169, 326, 218, 5) then
begin
findcolor(102, 122,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;

my error is this;
Exception in Script: No default value for parameter 5 found at line 9, column 14

I'm trying to cut maples right behind camelot bank…
Any idea what's going on? Been messing around with this for a while, still can't figure it out
I'm guessing maybe something to do with the color.
I was trying to look @ at tut from an old rsps but it was kind of out-dated so I was messing with it a bit.

Sjoe

2014-01-20 08:58:01

findcolor(102, 122,1,1); what is this for? don't really think u need that.

Also when u code, make sure u debug your lines. Those lines will be your best friend if you treat them well.


Program ChopTree;

Procedure ClickTree;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 22664, 277, 169, 326, 218, 5) then
begin
Writeln('Found tree color'); // this is debugging! (
MMouse(x, y, 5, 5); // move mouse after found the color, with a randomness of 5 pixels
wait(200 + random(50)); //add some randomness to your script
ClickMouse2(mouse_Left); //clickmouse2 is MORE HUMANLIKE than clickmouse
end;
end;

Assuming this is for a rsps, u might not the right tools to check for uptext?

Volture

2014-01-20 14:10:50

From: Sjoe
findcolor(102, 122,1,1); what is this for? don't really think u need that.

Also when u code, make sure u debug your lines. Those lines will be your best friend if you treat them well.


Program ChopTree;

Program ChopTree;

Procedure ClickTree;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 22664, 277, 169, 326, 218, 5) then
begin
Writeln('12400'); // this is debugging! (
MMouse(335, 177, 5, 5); // move mouse after found the color, with a randomness of 5 pixels
wait(200 + random(50)); //add some randomness to your script
ClickMouse2(mouse_Left); //clickmouse2 is MORE HUMANLIKE than clickmouse
end;



Assuming this is for a rsps, u might not the right tools to check for uptext?


Yes this is for a rsps, 2006 remake.
I've so confused tbh getting so many errors also.
Like after I copy/paste the code I get;
Exception in Script: Unknown declaration "MMouse" at line 10, column 4
I can never get MMouse to work for some reason…
Also can you help me to put what where… I'm still kind of confused.
Like where the color goes/where the cords go. :L
Thanks in advance..

Sjoe

2014-01-20 14:36:04

yeah include the srl-osr include so you have the srl functions

Volture

2014-01-20 14:56:59

From: Sjoe
yeah include the srl-osr include so you have the srl functions


I downloaded srl-osr and now when I click run with that code I get this error….

[Error] (4:1): 'BEGIN' expected at line 4
Compiling failed.

Sjoe

2014-01-20 16:29:53

post code