• Log in or sign up for an account here: https://www.sythe.org/login

[TUT]Unmatched Beginner's Guide to Scripting Scar

How Helpfull

  • Unmatched/Perfect

    Votes: 169 59.1%
  • Needs a Little Improvement

    Votes: 50 17.5%
  • Vague/Hard to Follow

    Votes: 35 12.2%
  • Impossible/Needs Total Revision

    Votes: 32 11.2%

  • Total voters
    286
Status
Not open for further replies.
good tut! though i learned nothing :(
 
man u took ur time on that man....i feel proud for you man. NICE took u prob like weeks!!!

That tut is so good it as good as 5 tuts together!
 
I don't think it matters much, but when you are doing an If+Then+Else Procedure, do you need to add semi-colons?

Wouldn't these two be exactly the same?

Code:
program ExampleConstant2;

var
x,y: Integer;

const
FishColor= 19245;//Set the color of the fish

begin
if(FindColor(x,y,FishColor,0,0,600,600)) then
 begin
  Writeln('Found Fish');
 end else
  Writeln('Did not find Fish');
end.

Code:
program ExampleConstant2;

var
x,y: Integer;

const
FishColor= 19245;//Set the color of the fish

begin
if(FindColor(x,y,FishColor,0,0,600,600)) then
 begin
  Writeln('Found Fish')
 end else
  Writeln('Did not find Fish')
end.

Thanks
 
I got a question I don't know if its dumb but i need help. I download SRL from the site SRL-Fourms. When it's all done it has a windows media player logo instead of a folder. When I open it it takes me to Windows Media Player and doesn't do anything. If somone could just tell me what im doing wrong that would help so much.
 
I don't think it matters much, but when you are doing an If+Then+Else Procedure, do you need to add semi-colons?

Wouldn't these two be exactly the same?

Code:
program ExampleConstant2;

var
x,y: Integer;

const
FishColor= 19245;//Set the color of the fish

begin
if(FindColor(x,y,FishColor,0,0,600,600)) then
 begin
  Writeln('Found Fish');
 end else
  Writeln('Did not find Fish');
end.

Code:
program ExampleConstant2;

var
x,y: Integer;

const
FishColor= 19245;//Set the color of the fish

begin
if(FindColor(x,y,FishColor,0,0,600,600)) then
 begin
  Writeln('Found Fish')
 end else
  Writeln('Did not find Fish')
end.

Thanks

Yes, they will both work.
 
COOL...now can u show us how to auto type and click...just like an auto login..plzzzz
 
i just have 1 question what do you mean by findcolor is the same as findcolor spiral except findcolorspiral si used for colors that take up more space? and i never see findcolor in scripts i always see findcolorspiral
 
i just have 1 question what do you mean by findcolor is the same as findcolor spiral except findcolorspiral si used for colors that take up more space? and i never see findcolor in scripts i always see findcolorspiral

FindColor is used to find a single pixel (AKA small dot of the color)
FindColorSpiral is used to find an amount of pixels (AKA a large area of the color)
 
Its a very nice tutorial indeed!
- I found out alot about all the basics and stuff.
If i should rate it then it would be a 9/10.

You could improve, by showing me some very simple scripts, for example a bone buryer, and tell what to do, how to string it all together etc.etc.
more pictures would be great too.
BUT GREAT TUTORIAL! INDEED!
 
Just perfect, great way to learn the basics with a nice step by step user friendly way. Definitely a unmatched beginners guide.
 
Hey this is my first post on this site. I joined this site for the sole fact that this guide was sooooo helpful in using scar. I tried writing a script that would mine coal until the inventory was full, but I keep getin an error saying Line 3: [Error] (3:1): Semicolon (';') expected in script C:\Program Files\SCAR 2.03\Scripts\storeore.scar
Below is what I have of my script so far:

program StoreOre

var
x,y: Integer;

const
Coalcolor=2175795

const
Error=16711680

program StoreOre

var
x,y: Integer;

const
Coalcolor=2175795

const
Error=16711680

begin
if(FindColor(x,y,Coalcolor,124,214,635,546))then
Writeln('found coal');
begin
Wait(1000+random(2000));
Findcolor(x,y,2175795,124,214,635,546)
MoveMouseSmoothEX(x,y,o,o);
Mouse(x,y,0,0,true);
repeat
until(InvFull);
end;
end.

What I've attempted to make it do so far is mine the inventory full of coal, then repeat untill the inventory is full. I found the (Invfull) thing that was refered to in the guide on this page http://www.srl-forums.com/forum/tut-things-begginer-t7368.html?, which I found in the guide on this site.
I was origionaly gonna tell it to repeat until it found the blue words saying "click here to continue" inbetween the coordinates below the map, which is what the Error=16711680 is.
I know it doesn't actually look like it stores ore, but I haven't got to that part yet. I don't know exactly where I forgot the colon. If you guys could help me revise this, I'd appreciate it alot. Great guide!
 
Code:
program StoreOre;

var
x,y: Integer;

const
Coalcolor=2175795;

const
Error=16711680;

begin
if(FindColor(x,y,Coalcolor,124,214,635,546))then
Writeln('found coal');
begin
Wait(1000+random(2000));
Findcolor(x,y,2175795,124,214,635,546)
MoveMouseSmoothEX(x,y,o,o);
Mouse(x,y,0,0,true);
repeat
until(InvFull);
end;
end.

You need semicolons after program name and constants. You forgot. It's a common mistake.
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top