PDA

View Full Version : First Simple Script



trigoon
03-24-2007, 05:12 PM
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' +
'7F29675BED3128FFFF9316F8D2B09A22ACE03EDD839A5A08A 6034' +
'20D546EB912B25AFD0A764241043868542B954A2A74B34A56 52A3' +
'7FC1BE22AE62E189F16AAC568A9DD4FAAD9A3C57D49E95B9F DC36' +
'A7276BCD5A4BFEA1EF967C33F939E5D08FB2AD4FBEBD9FD8F 3FE7' +
'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
03-24-2007, 05:39 PM
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
03-24-2007, 05:54 PM
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
03-24-2007, 06:22 PM
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
03-24-2007, 06:26 PM
take out x, y becuse srl already adds them

(i think)

trigoon
03-24-2007, 06:41 PM
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
03-24-2007, 06:45 PM
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
03-24-2007, 06:56 PM
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
03-24-2007, 07:01 PM
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
03-24-2007, 07:07 PM
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
03-31-2007, 03:45 AM
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: