• Log in or sign up for an account here: https://www.sythe.org/login

An Auto Fighter for Last Chaos

demon9414

Active Member
Joined
Mar 10, 2007
Sythe Gold
0
Messages
221
Maybe someone could help me. Right now, the script finds the colors, but it won't click for some reason.

I've tried making the mouse move to the coordinates and then click, I've tried making it click twice, and I've tried a combination of the two.

Is there something obvious I'm missing?
 
Huge Vouch iSparcMac Got me a fire cape and I only paid $5.95!
 
This is what I have for my script..

BEWARE! This is my first Scar script, so watch out your eyes don't burst and your brains don't boil and ooze out your ears.

Code:
program Fighter;

var
x,y: Integer;

const
Monster1= 3222577; //Different Monster Colors
Monster2= 1579032;
Monster3= 1580065;
Monster4= 3749945;
Monster5= 1580065;
Monster6= 526344;
WaitTime= 1000;

begin
repeat
if(FindColor(x,y,Monster1,0,96,1024,768)) then
 begin
  Writeln('Monster Found');
  MoveMouse(x,y);
  Wait(100);
  ClickMouse(x,y,true);
  end else
  if(FindColor(x,y,Monster2,0,96,1024,768)) then
 begin
  Writeln('Monster Found');
  MoveMouse(x,y);
  Wait(100);
  ClickMouse(x,y,true);
  end else
  if(FindColor(x,y,Monster3,0,96,1024,768)) then
 begin
  Writeln('Monster Found');
  MoveMouse(x,y);
  Wait(100);
  ClickMouse(x,y,true);
  end else
  if(FindColor(x,y,Monster4,0,96,1024,768)) then
 begin
  Writeln('Monster Found');
  MoveMouse(x,y);
  Wait(100);
  ClickMouse(x,y,true);
  end else
  if(FindColor(x,y,Monster5,0,96,1024,768)) then
 begin
  Writeln('Monster Found');
  MoveMouse(x,y);
  Wait(100);
  ClickMouse(x,y,true);
  end else
  Writeln('Monster Not Found');
 Wait(WaitTime+random(1000));
 until(false);
end.

I'm guessing there is some kind of color selector that has a tolerance, but I didn't look very hard for it so I just simply made it so the script will search for 6 different colors.
 
Runescape Gamblingrunescape gambling
Back
Top