Jump to content
Zodiakk

Trying to learn how to write Scar Scripts. First attempt at a color clicker.

Recommended Posts

Well this is my first post, so hello everyone. I'm Zakk and I just began scripting with SCAR, although I quit playing RuneScape years ago. I am currently trying to make a fishing script for this dinky small game where all you do is fish and talk to people. I want a bot that fishes for me, so I can laugh at the face of pointless finger labor. I mean seriously, someone passed my level after 2 weeks. I've played this game for 4 years, but my adhd and fishing don't mix.

 

So here is a crappy video that shows how the fishing system works. Skip to 4:20 [hahaha<3] to skip the half-brained uploaders stuttering.

 

Note that the little line that goes right-to-left will 'shoot' multiple times (that's what she said) and require you to click catch multiple times.

 

So what I want to do is make a script that will click the catch button any time the spot in the middle of the blue Catch Meter is not a specific light blue or dark blue it will click on the coordinates of the catch button. Any time.

 

Here is my crappy attempt from what I have gathered today with SCAR.

 

Thank you for having me as a part of your community, and happy New Year!

 

Most current attempt:

 

program New;

const
ColorCheck = 11381503;
CheckX = 83;
CheckY = 119;
ClickX = 83;
ClickY = 169;
Check_Wait = 0;

begin
repeat
if(1 <> 2)then
begin
Wait(Check_Wait)
if (GetColor(CheckX, CheckY) = ColorCheck) then
begin
ClickMouse(ClickX, ClickY, True);
end;
end;
until(1 = 2);
end.

 

Original:

program New;
const badcolordark= 14064276; badcolorlite= 16776175; midbar= 524543;
 begin

FindColor(x,y,badcolordark,83,118,85,120)
if false then
begin
FindColor(x,y, badcolorlite,84,119,84,119)
if false then
begin
FindColor(x,y,midbar,83,118,85,120)
if false then
ClickMouse(83,167,true)
end.
end.

Edited by Zodiakk
Link to comment
Share on other sites

I think that is what u wanted to do

program New;

var
x,y:integer;

const
badcolordark= 14064276;
badcolorlite= 16776175;
midbar= 524543;

begin
repeat
wait(50);   //if u need u can make time between repeats bigger or smaller
if not(FindColor(x,y,badcolordark,83,118,85,120)) or not(FindColor(x,y, badcolorlite,84,119,84,119)) then
if FindColor(x,y,midbar,83,118,85,120) then
ClickMouse(83,167,true);
until(IsKeyDown('x')=true);     // x  for exit
end.

 

script explanation:

if it dont find dark or light then it tryes to find midbar and if it finds then presses mouse button

:D u should learn basics , that isnt so hard

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...