SRL Archive - First Scripts

First Script, Dosen't do much :P


blr

2007-09-30 03:43:53

{My first Script, be kind :(}

program questiconclicker;
var
x,y: Integer;
i: Integer;
const
questiconcolor = 16031889;
backpackiconcolor = 6471395;
attackiconcolor = 3852287;

procedure getquestlog;
begin
FindColor(x,y,questiconcolor,593,169,621,201)
Wait(1000);
MoveMouseSmooth(x,y);
wait(1000);
ClickMouse(x,y,true);
end;

procedure getinventory;
begin
FindColor(x,y,backpackiconcolor,634,174,657,196);
MoveMouseSmooth(x,y);
Wait(1000);
ClickMouse(x,y,true);
end;

procedure getfightmode;
begin
FindColor(x,y,attackiconcolor,531,183,551,197);
MoveMouseSmooth(x,y);
Wait(2000);
ClickMouse(x,y,true);
end;

procedure selectfightmode;
begin
MoveMouseSmooth(685,271);
Wait(1000);
ClickMouse(685,271,true);
end;

procedure edison;
begin
SendKeys('I am the coolest' +chr (13));{You can change ' i am the coolest'
to whatever you want}
end;

begin
i:= 0;
repeat
i:= i+1;
getquestlog;
wait(1034+random(100));
getinventory;
wait(1000);
getfightmode;
wait(1000);
selectfightmode;
wait(1000);
edison;
until(i >= 10);
end.

Ive been scripting in SCAR for about, let's say an hour now. What do you guys think. I'm wondering how i could improve the script and my skills.

Thanks;

SuperScripter

2007-09-30 12:11:19

Pretty good. Judgeing by its looks. Try to use standards and try to use srl in it. (What does it do?)

#SS

HyperSecret

2007-09-30 14:19:23

first things first…include srl…clickmouse = BAN…use Mouse which will move the mouse and click it…read tuts :D

blr

2007-09-30 17:43:33

Thanks for the replies guys, i just found out about srl commands after posting, so i'm using them now. They're definetly life savers.

Although, im having a little trouble with mouse, i understand the first two coordinates are for, but not the second two, is that for randomization? or is it x1,x2,y1,y2.

eg mouse(56,63,?,?,true)

Zeta

2007-09-30 17:50:05

yeah the last two are for random

Naum

2007-10-01 02:49:29

So something like this mouse(x,y,1//Random,1//random,true//left or right)
Random e.g mouse(x,y,1+Random(3),1+Random(3),true) means do you offset the clicks by a random 1-3 clicks? if you dont add the random and just add 3 like this mouse(x,y,3,3,true) it will just click 3 more pixels than the coord you wanted.

->{Nauman}<-

SuperScripter

2007-10-04 12:45:01

Nice. Question solver still needs some work though

Dumpin

2007-10-04 15:09:15

sendkeys = ban to
use typesend when Included scar

cracker667

2007-10-07 00:27:05

:google:

Looks Good To Me Ty Man

DillonSykes

2007-10-07 01:11:16

Yeah, It needs lots of changing…. Otherwise you will be banned.