SRL Archive - Non-RuneScape Scripts

(Newbie) Colour Aimbot (Cursor follow colour code)


soundztar

2012-05-12 21:36:29

Hello. I am looking to find a script where the mouse cursor follows the specific colour pixel. I have written a small piece of code in AutoIt, it works, but not as good as it should. Its for a flash game, where your cursor is supposed to follow a green spot for a specific amount of time. My goal is to reach maximum score.

My AutoIt Script, if it helps:
#include <Misc.au3>

$dll = DllOpen("user32.dll")
Dim $coord[3]

While 1
If _IsPressed("1B", $dll) Then ExitLoop
For $i = 0 To 1920 Step 1

$coord = PixelSearch( 0, 0, $i, 1080, 0x789C58, 10 )
If Not @error Then
MouseMove($coord[0],$coord[1], 0 )
EndIf
If _IsPressed("1B", $dll) Then ExitLoop
Next

WEnd

x[Warrior]x3500

2012-05-12 21:42:49

if there isnt an antibotting system set up:

program new;
{$I SRL/SRL.simba}
var
x,y:integer;

begin
setupsrl;
while(findcolor(x,y, [insert color here], 0,0, [insert x end], [insert y end]))do
movemouse(x,y);
end.

soundztar

2012-05-12 22:03:23

program new;
{$I SRL/SRL.simba}
var
x,y:integer;

begin
setupsrl;
while(findcolor(x,y, [0x789C58], 0,0, [1920], [1080]))do
movemouse(x,y);
end.

This is what i tried, this came up:

Exception in Script: Unable to find file 'SRL/SRL.simba' used from ''

Brandon

2012-05-12 22:07:33

How fast does it have to be? Does the pixel move fast?

Main

2012-05-12 23:00:15

it doesn't work like that, you can't just simply move mouse to xxx for shooting games.

Because the way aiming work is by translating your move mousement into acceleration vectors.

masterBB

2012-06-05 13:25:35

From: Main
it doesn't work like that, you can't just simply move mouse to xxx for shooting games.

Because the way aiming work is by translating your move mousement into acceleration vectors.


he said

Its for a flash game


program new;

const
COLOR = 1098086; //enter your color here

var
x, y, w, h: integer;

begin
GetClientDimensions(w, h);
while(findcolor(x, y, COLOR , 0, 0, w-1, h-1))do
MoveMouse(x, y);
end.

Main

2012-06-05 15:56:35

oo ok then. Also nice autoit codes there :)

Could you tell us the name of the game? Perhaps we can help you better.

Sin

2012-06-05 16:29:14

He put a hex value as the color >.<

uz3

2012-06-05 20:26:08

From: Shay
He put a hex value as the color >.<


Well, he wasn't coding in simba so is hex allowed in autoit?

Main

2012-06-05 20:28:17

yep :)

masterBB

2012-06-06 14:02:22

From: Shay
He put a hex value as the color >.<


simba also allows hex values…

program new;

const
COLOR = $789C58; //enter your color here

var
x, y, w, h: integer;

begin
GetClientDimensions(w, h);
while(findcolor(x, y, COLOR , 0, 0, w-1, h-1))do
MoveMouse(x, y);
end.

Vizzualize

2012-07-07 16:09:05

Hi guys im also trying the same thing, im fairly new. When i compile i also get this error..

"Exception in Script: Unable to find file 'SRL/SRL.simba' used from ''"