Results 1 to 7 of 7

Thread: boredhuman; during wait

  1. #1
    Join Date
    Jan 2008
    Posts
    255
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default boredhuman; during wait

    I've made a script for turning chocolate into chocolate dust to be sold for 20gp more and I'm adding some antiban things like boredhuman; and randommovment; but theres a part of my script in which its waiting for it to finish turning all the chocolate into chocolate dust which is just a wait with a random like this.
    SCAR Code:
    wait(32000 + Random(2000));
    I want to make it so that during the wait its doing boredhuman;. I would really appreciate any help.

  2. #2
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure BoredWaiter(WaitTime: Integer);
    var
      M: Integer;
    begin
      MarkTime(M);
      while (TimeFromMark(M) < WaitTime) do
        BoredHuman;
    end;

    Pretty basic. You could add some random waits too.

  3. #3
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    SleepAndMoveMouse(TimeInMs);

    awesome function.

  4. #4
    Join Date
    Jan 2008
    Posts
    255
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the help, i think i get it now.
    Last edited by coo too; 04-16-2009 at 04:20 AM.

  5. #5
    Join Date
    Dec 2006
    Location
    SC
    Posts
    692
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    New scripters are so constricted from the beginning. They only learn commands to do things, but never really what the commands themselves do.

    Only when you understand what the command that you are using does are you no longer a beginner. And then you can also finally manipulate the original command or even make your own to suit your need.

    PS I remember when the only thing I knew were commands . I used to just google for different commands that I could use for SCAR.

  6. #6
    Join Date
    Jan 2008
    Posts
    255
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i use the srl manual under help -> srl manual in scar thats got loads of commands with small explanations of what they do.

  7. #7
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could just look at the function in srl and kinda add it into your script and tweak it to your liking.

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
  •