Results 1 to 3 of 3

Thread: About script terminate

  1. #1
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    About script terminate

    So how can i make that script terminates?
    it stops if its false

  2. #2
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    SCAR Code:
    Begein
    Repeat
    Wait(1000)
    I:=I+1
    Until
    I=5
    if i=5 then
    TerminateScript
    end;

    ^something like that
    OR

    function FindColor:Boolean;
    If Findcolorspiral(x,y,6666,1,1,300,300)then
    Result:=True;
    end.

    SCAR Code:
    Begin
    repeat
    Dacne;
    Until FindColor=False
    If FindColor=False then
    TerminateScript;
    end.

    first one waits one second and adds a number.
    If the number (i) =5 then it will stop and terminate the script.

    Second one continues "dacceing" until the specific color is not found

    i know they are vague examples, tell me if you need more help

  3. #3
    Join Date
    Dec 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok tnx

Thread Information

Users Browsing this Thread

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

Posting Permissions

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