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

What's wrong with this SCAR script?

Phoenixsage

Newcomer
Joined
May 2, 2010
Sythe Gold
0
Messages
1
Here's the script verbatim:

program Cursebot;
var
x, y: Integer;
begin
repeat;
clickmousebox(1035,317,1045,329,true);
if(FindColor(x, y, 3423400,329,3,840,338))then;
ClickMousebox(x, y,x+1,y+1, true);
wait(x+600);
else(clickmousebox(1074,2,1086,16,true), clickmousebox(908,367,1027,385,true));
until(iskeydown('\'));
end.

When attempting to run this script, I get the usual generic SCAR error saying "Failed when compiling
Line 13: [Error] (13:1): Identifier expected in script C:\Program Files\SCAR 3.22\Scripts\cursebot.scar"

Any help would be appreciated, I apologize for my possibly confusing scripting style.
 
well, the first thing you are missing is good standards
anyways.... your missing a few things
a few begins an end else.....
and you overuse the ";" in your script

here is what i think you want:
Code:
program Cursebot;

var
x, y: integer;

begin
  repeat
    clickmousebox(1035,317,1045,329,true)
    if(FindColor(x, y, 3423400,329,3,840,338))then
    begin
      ClickMousebox(x, y,x+1,y+1, true)
      wait(x+600)
    end else
    begin
      clickmousebox(1074,2,1086,16,true)
      clickmousebox(908,367,1027,385,true)
    end;
  until(iskeydown('\'));
end.
 
Runescape Gamblingrunescape gambling
Back
Top