SRL Archive - First Scripts

is this fletcher any good?


jvk322

2008-03-29 19:48:36

is this any good for a very first script or is it garb?

Var
logs : integer;
begin
begin
repeat
logs := logs + 27;
Wait(5000);
movemouse(252,216);
wait(1000);
clickmouse(236,185,false);
wait(1000);
clickmouse(207,225,true);
wait(3500);
movemouse(624,227);
wait(2000);
clickmouse(624,227,false);
wait(2000);
clickmouse(581,294,true);
wait(5000);
movemouse(94,80);
wait(2000);
clickmouse(94,80,false);
wait(2000);
clickmouse(73,167,true);
wait(3000);
sendkeys('27'+chr(13));
wait(1000);
movemouse(485,40);
wait(2000);
clickmouse(485,40,true);
wait(4000);
movemouse(579,228);
wait(2000);
clickmouse(579,228,true);
wait(2000);
movemouse(616,229);
wait(2000);
clickmouse(618,229,true);
wait(2500);
movemouse(266,404);
wait(2000);
clickmouse(266,404,false);
wait(2000);
movemouse(231,477);
clickmouse(231,477,true);
wait(6000);
sendkeys('27'+chr(13));
wait(63000);
until(logs >= 9627)
end
end.

senrath

2008-03-29 19:58:49

Sadly, not that good. First, don't use MoveMouse and ClickMouse. Use Mouse(x,y,5,5,true) instead. Use TypeSend instead of SendKeys. It's more human like and you don't need to include chr(13). And include some randomness in the waits, like wait(4500+random(800)) instead of that first wait(5000).

But keep working at it, and I'm sure you'll get better, and pretty quickly if you're particularly dedicated.

jvk322

2008-03-29 20:24:25

From: senrath
Sadly, not that good. First, don't use MoveMouse and ClickMouse. Use Mouse(x,y,5,5,true) instead. Use TypeSend instead of SendKeys. It's more human like and you don't need to include chr(13). And include some randomness in the waits, like wait(4500+random(800)) instead of that first wait(5000).

But keep working at it, and I'm sure you'll get better, and pretty quickly if you're particularly dedicated.


how does that Mouse(x,y,5,5,true) work?:confused:

senrath

2008-03-29 21:11:43

The first two things (x and y) are the x and y coordinates, same as in MoveMouse. The next two are the amount of randomness the click will have 5,5 meaning that it will click within 5 pixels of the specified coordinates on both the x and y axis. Change those to whatever you want, though I'd recommend at least 2. The true means that it will left click. Make it false to right click. To not click at all, I believe it is MMouse.

I forgot to mention in the PM that you need to have SRL downloaded and this at the top of your script (right after the program New; line):
{.include SRL\SRL.scar}

KoKouKo

2008-03-30 12:41:56

You would also need the first line of coding in your main loop to be
SetupSRL;

DeSnob

2008-04-03 08:11:52

clickmouse is very detectable maybe use something like mouse(…) and make a random extra time =P or else jagex will figure our ur botting

Zezi

2008-04-03 10:47:45

Add to 'scar' tags.

And when using wait, make it a random waiting time, as jagex can easily tell if you're waiting EXACTLY two seconds. Instead of clicking the exact place of something, use mouse(x,y,ranx,rany,true/false). Or even better make a dtm of the things you're fletching, so it's much safer. :)
Read some of the hundreds of tutorials please :)