Results 1 to 13 of 13

Thread: Sleep not working

  1. #1
    Join Date
    Sep 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Sleep not working

    I'm trying to make a simple script, but cannot get the sleep to work..

    Code:
    program boneburrier;
    
    procedure bury;
    begin
    MoveMouse(232,154);
    wait(5000);
    sleep(7)
    end;
    
    begin
    repeat
    bury;
    until(false);
    end.
    P.S: I have scar version 3.06 and i'm trying to let this script work on rsc

  2. #2
    Join Date
    Jul 2007
    Location
    Massachusetts
    Posts
    896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    use scar divi 3.12 fo to freddy1990's homepage and download it.

    I dont know much about sleep, most people just use wait...

  3. #3
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    i dont even know is sleep is a valid function anymore...

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  4. #4
    Join Date
    Sep 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I downloaded the new version.. but when i click on Tools->Options-> SRL Download, i cannot click "Subversion Repository"

  5. #5
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    You need to download the Subversion-program (Read Dark_Sniper's or WT-Fakawi's tutorial).

    Also, "Sleep" is an alias of "Wait" - They do the same.

    -Knives

  6. #6
    Join Date
    Sep 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can you give me an example of how to use the wait?
    And how do i let Scar click the rocks.. Do i have to select the colour or someting :s?

  7. #7
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Wait(1000) waits 1000 milliseconds, and 1000 milliseconds is 1 second.
    Sleep(1000) - Same thing as above.

    To find a color, you pick a color and use the FindColor function.

    Read some basic tutorials in the Tutorial Island-section.

    -Knives

  8. #8
    Join Date
    Sep 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OK thank you for helping

  9. #9
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Yeah.. cause you did 7. For 7 seconds wait you do 7000

    And you may want to do this:

    Wait(7000+Random(2000)); for anti ban..


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  10. #10
    Join Date
    Sep 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I've read the color function tutorial but i cannot find anything... My colour of the rock is:

    Color Picked: 2069

  11. #11
    Join Date
    Sep 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm kinda new to this, and i wanna make an east varrock miner.. with bank and stuff.. but i only need to know how to let it click the colour.. if anyone could help...

  12. #12
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    if FindColor(a,b,SomeColor,x1,y1,x2,y2) then
    begin
      Mouse(a,b,2,2,true)
    end;
    Something like that

    -Knives

  13. #13
    Join Date
    Sep 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by King of Knives View Post
    SCAR Code:
    if FindColor(a,b,SomeColor,x1,y1,x2,y2) then
    begin
      Mouse(a,b,2,2,true)
    end;
    Something like that :D

    -Knives
    What do i do with the "x1,y1,x2,y2" is it where the rock is at? or..
    The rock is at: 221,271

    And what do you mean with "Mouse(a,b,2,2,true)"

    Sorry.. i'm all new to this...
    P.S: Is there a command to actually only let it click the colour i choose?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Sleep Every..?
    By D1zl3 in forum OSR Help
    Replies: 15
    Last Post: 12-17-2008, 05:56 PM
  2. Sleep
    By sirlaughsalot in forum OSR Help
    Replies: 6
    Last Post: 05-24-2008, 08:41 PM
  3. Sleep (LogOutEvery)
    By Baked0420 in forum OSR Help
    Replies: 19
    Last Post: 05-18-2008, 08:03 AM
  4. Procedure for sleep?
    By Richard in forum OSR Help
    Replies: 4
    Last Post: 02-11-2008, 06:00 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
  •