Results 1 to 12 of 12

Thread: help me? u wont regret it.

  1. #1
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help me? u wont regret it.

    k erm this is the problem. i want it to check for certain colours at every time interval. e.g. check for 1583557, every 1 minute.

  2. #2
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    am an extra nub by the way, explain it clearly plz

  3. #3
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I do it like that

    SCAR Code:
    procedure example;
    var Mymark : integer;
    var firstcheck : boolean;
    begin
      if not firstcheck then  
      begin
        Firstcheck := true;
        marktime(mymark);
      end;
      if TimeFromMark(mymark) > 60000 then
      begin
        Here your stuff what you wanted to do after every 60 sec
      end;
    end;

    Try to understand...
    You'll need to call it practically all the time...
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  4. #4
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    why wouldn't i regret it?
    SCAR Code:
    Program New;

    var x,y: integer;

    const
    MillisecondsToWait = 1337;

    Procedure LookForColor;
    begin
    If FindcolorTolerance(x,y,1583557, MSX1,MSY1,MSX2,MSY2,20)
    end;

    begin
    setupsrl;
    activateClient;
    LookForColor
    Wait(60000)
    until(iskeydown(a))
    end.
    You might want to change the "Learning to script" thing to 2% BTW

  5. #5
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks guys. ill try 2 understand.=)

    p.s. i aint that crap at scripting. understand most things like DTM's and finding symbols and stuff. kinda used hy's cave runner, and added better pray, and dbaxe spec 2 it.

  6. #6
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Wade007 View Post
    why wouldn't i regret it?
    SCAR Code:
    Program New;

    var x,y: integer;

    const
    MillisecondsToWait = 1337;

    Procedure LookForColor;
    begin
    If FindcolorTolerance(x,y,1583557, MSX1,MSY1,MSX2,MSY2,20)
    end;

    begin
    setupsrl;
    activateClient;
    LookForColor
    Wait(60000)
    until(iskeydown(a))
    end.
    You might want to change the "Learning to script" thing to 2% BTW
    This wont compile?!?
    Maybe learn yourself before teaching others?
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  7. #7
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    negaal kinda doesnt work
    SCAR Code:
    program New;
    procedure AmIStillHere;

    var Mymark : integer;
    firstcheck : boolean;

    begin
      if not firstcheck then
      begin
        Firstcheck := true;
        marktime :=(mymark);
      end;
      if TimeFromMark(mymark) > 60000+Random(10000) then
      begin

      if not FindColor(tx,ty,1518021,576,259,627,285) and
      if not FindSymbol(dx,dy,'minigame') and
      if not FindSymbol(dx,dy,'bank') and
      if not FindSymbol(dx,dy,'mining spot') then
      begin
          Logout;
      until(not(LoggedIn));
     
      else
      begin
      WriteLn(its working);

      end;
    end;

    i get this error
    Failed when compiling
    Line 11: [Error] (11:1): Unknown identifier 'marktime' in script C:\Program Files\SCAR 3.12\Scripts\new.scar
    Failed when compiling
    Line 12: [Error] (12:4): Unknown identifier 'TimeFromMark' in script C:\Program Files\SCAR 3.12\Scripts\new.scar
    Failed when compiling

  8. #8
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  9. #9
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    You have to include SRL

  10. #10
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You'll need to put {.include srl/srl.scar} to second line

    and

    Marktime := mymark

    should be

    Marktime(mymark)
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  11. #11
    Join Date
    Jul 2007
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oops totally forgot. thanks

  12. #12
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oh, negaal, i made that in 5 minutes, i wasn't able to test it because i don't have scar on this computer!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Wont do what i say
    By badandymitch in forum OSR Help
    Replies: 3
    Last Post: 05-04-2007, 10:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •