SRL Archive - First Scripts

another alcher bot.


Failpailirl

2010-04-15 14:56:28

hello, i am thinking about making an alcher script, and not just pretty much an auto clicker, i want to make it move the mouse maybe 2 pixels over to the right and left every minute or so, and not have the same amount of time per alch every single time, what would be the difficulty on this kind of script?

Sebo

2010-04-15 15:03:50

From: failpailirl
i want to make it move the mouse maybe 2 pixels over to the right and left every minute or so


What do you mean by that,

and for the "time" part:

[PHP]
const
time = 1000; // Time to wait in ms.
randomTime = 500; // Extra random amount of time to wait from 0-500 ms.

procedure waitRandom;
begin
wait(time + random(randomTime));
end;[/PHP]

other than that, the script should be fairly simple to write.

Failpailirl

2010-04-15 15:38:25

to make it move over randomly a couple of pixels every coupla of minutes

Sebo

2010-04-15 15:54:51

I made this for you, if this is what you mean.


program New;

{.include SRL\SRL.scar}

procedure Script_setUp;
begin
setupSRL;
end;

const
timeToWait = 5000; // Time to wait before moving the mouse again, in ms.

function randomMouse : boolean;
var
x, y, mTime : integer;
begin
markTime(mTime);
getMousePos(x, y);
repeat
sleep(1000);
disguise('Waiting...');
result := false;
until (timeFromMark(mTime) > (timeToWait) + random(500));
mmouse(x + random(100), y + random(100), 0, 0);
disguise('Moved to a random spot.');
result := true;
end;

begin
Script_setUp;
randomMouse;
end.

Failpailirl

2010-04-15 17:59:04

From: Sebo
I made this for you, if this is what you mean.


program New;

{.include SRL\SRL.scar}

procedure Script_setUp;
begin
setupSRL;
end;

const
timeToWait = 5000; // Time to wait before moving the mouse again, in ms.

function randomMouse : boolean;
var
x, y, mTime : integer;
begin
markTime(mTime);
getMousePos(x, y);
repeat
sleep(1000);
disguise('Waiting...');
result := false;
until (timeFromMark(mTime) > (timeToWait) + random(500));
mmouse(x + random(100), y + random(100), 0, 0);
disguise('Moved to a random spot.');
result := true;
end;

begin
Script_setUp;
randomMouse;
end.


i did that and this happened.

Line 63: [Error] (579:11): Unknown identifier 'CreateTPAFromBMP' in script Z:\home\patrick\scarprerelease\includes\SRL\SRL\Core\Math.scar

Sebo

2010-04-15 18:33:34

Restart SCAR?

Failpailirl

2010-04-15 18:35:41

same error, idk, i am doing it from linux and this is my first time actually using srl on linux, so idk i think its me.

i luffs yeww

2010-04-15 19:17:48

You didn't move your plugins correctly.

Failpailirl

2010-04-15 20:21:15

oh what didnt i do?

i luffs yeww

2010-04-15 20:42:35

I dunno. I just know you did something wrong. :p Redo it and follow Coh3n's guide EXACTLY.

Failpailirl

2010-04-15 20:56:00

the only thing i can think of is the file that is folder that says "move this to plugin" and i already moved it. and i also deleted it and reinstalled it again.

i luffs yeww

2010-04-15 21:11:31

You don't move the actual folder, you move the things inside it.

Failpailirl

2010-04-15 21:33:56

oh thats probably why, rofl irl. k ill get on it then report back to tmmrw

weequ

2010-04-16 00:34:37

One alch requires 2 clicks. You can make them both pretty random but together they would be about the same time ;) Also i suggest using timers so anti ban wouldn't slow it down :P

Failpailirl

2010-04-16 06:52:58

yea, my goal is to put a shitload of antiban on here, and make this script a very good alcher and nearly unbannable.

i luffs yeww

2010-04-16 18:11:46

:p People tend to over complicate things. I've a couple posts about this. Too lazy to find them.

tofurocks

2010-04-18 17:17:29

Don't make it move pixels, it's unnecessary and makes you look more botlike (always moving at similar intervals, moving the same amount, etc.). A real human will most likely move mousekeys, so their mouse won't move at all while alching (when I played legit I would alch for hours at a time while watching movies, mouse did not move at all due to mousekeys).
If you really want some good anti-ban, have it check tabs and/or have an option for auto-talking (very good if in a crowded area). However, antiban really isn't necessary with alching scripts, as I know many many people who have gotten 99 alching with only a randomized autoclicker.

Cazabacca

2010-04-21 07:29:41

From: i luffs yeww
:p People tend to over complicate things. I've a couple posts about this. Too lazy to find them.


=

From: i luffs yeww
I got it to compile and run by just editing out a few things, but I haven't tested it. A (almost) 3000 line alcher seems very unnecessary, though.. I've almost 83 mage from simple 15 line scripts. Which is what I always use when I auto..



:thumbsup: