SRL Archive - First Scripts

First Simple Script


trigoon

2007-03-24 13:12:31

I was hoping if someone could tell me how i can fix up my script. Its REALLY simple as I just started to learn SCAR (probably yesterday night lol) So far all it does is teleport you to cammy by searching by using a bitmap.

I dont have much in there including the anti randoms and was wondering if someone can show me how I can move around the mouse randomly around the screen while teleporting. Also how do I include antiban?

program AutoCammyTele;
var
cammy, x, y: Integer;

const
teletimes = 10;

var
telesdone: Integer;

procedure DeclareBMPS;
begin
cammy := BitmapFromString(10, 20, 'z78DABD94D10AC0200845' +
'7F29675BED3128FFFF9316F8D2B09A22ACE03EDD839A5A08A6034' +
'20D546EB912B25AFD0A764241043868542B954A2A74B34A5652A3' +
'7FC1BE22AE62E189F16AAC568A9DD4FAAD9A3C57D49E95B9FDC36' +
'A7276BCD5A4BFEA1EF967C33F939E5D08FB2AD4FBEBD9FD8F3FE7' +
'010EBFFC49');
end;

procedure ClickBMPS;
begin
wait(1000+random(500))
movemousesmooth(x,y)
wait(500+random(50))
clickmouse(x,y,true)
telesdone := telesdone +1;
end;


Procedure FindBMPS;
begin
if(FindBitmap(cammy,x,y))then
ClickBMPS;
end;

begin
repeat
wait(1300)
DeclareBMPS;
FindBMPS;
until(telesdone = teletimes)

end.

IEatJ00erBaybees

2007-03-24 13:39:24

Never use ClickMouse or MoveMouseSmooth, it's soooooooooo detectable. Instead, use


MMouse(x,y,2,2);
Moves the mouse to the x position and y position, with a random 2 pixels.


Mouse(x,y,2,2,true);

You can probably figure that one out :)

Also, at the top, put this in

{.include SRL/SRL.scar}

It'll include SRL into your scripts. =]

JAD

2007-03-24 13:54:19

Read tut in sig "things the beginner tuts don't teach you" it teaches you anti randoms, moving mouse undetectable, and my tut "5 steps to becoming a scripter" theres a chapter in there about anti ban.

trigoon

2007-03-24 14:22:12

I actually tried to use what you said above (the replacement for clickmouse etc.) but I keep getting this:
Failed when compiling
Line 5: [Error] (17666:8): Duplicate identifier 'x' in script C:\Program Files\SCAR 2.03\Scripts\ddsds.scar

HarryJames

2007-03-24 14:26:36

take out x, y becuse srl already adds them

(i think)

trigoon

2007-03-24 14:41:19

Thanks that fixed it but now i get this:

Line 174: [Hint] (182:43): Variable 'NEWLINE' never used in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Globals.scar

Boreas

2007-03-24 14:45:53

It's just a hint, not an error, don't worry about it.

Edit

add

NewLine:='';


to SetupSRL in SRL.scar if you really care

trigoon

2007-03-24 14:56:34

Oh ok thanks do you think after doing the above changes (the mmouse and such) the script would be safe to use or should I do something more?

Boreas

2007-03-24 15:01:20

A lot more, but your first script should not be for RS. Practice using more techniques on other games. See my FAQ (link in sig) for more info.

trigoon

2007-03-24 15:07:12

Ok thanks ill read up on it and since someone has replied to my script request and saying he will make me one when he gets time ill go ahead and work on something else and learn :)

Ashur2Good

2007-03-30 23:45:28

nice try for you're first script :) i would say putting in anti randoms anti ban?:(h): Properly smoother mouse movements? if you need more info pm me :rolleyes: