Results 1 to 6 of 6

Thread: Random clicking?

  1. #1
    Join Date
    Apr 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random clicking?

    if (FindColor(x,y,MonsterColor7,0,0,515,336)) then
    begin
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    Wait(123+random(10));
    ClickMouse(x,y,false);
    wait(8112)

    This would cause it to click every 8 seconds, but what would cause it to click say every 8 seconds 2 seconds and 6 seconds so it would look random?

  2. #2
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    There is a function in scar that is Random(X); it generates a random integer where the max is the number is X

    eg.
    Random(101) would result in a random number from 0 to 100, you may noticed I put 101 instead of 100 inside the Random(); function, that is because it counts from 0 and up, not like we humans do; 1 and up.

    So you could add Wait(Random(10000)); instead of your Wait(8112);

    EDIT: You can read tutorials here: http://www.villavu.com/forum/forumdisplay.php?f=95

  3. #3
    Join Date
    Apr 2009
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thx for the fix and the Tut Zyt3x ill make sure to use both.

  4. #4
    Join Date
    Aug 2008
    Location
    England
    Posts
    320
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Code:
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    Just noticed that line. Why random(0)?? Doesn't seem to make sense.
    Maybe random(101)?? Random(0) just returns 0 all the time.

    -- BP

  5. #5
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    and also.. use MMouse to move and Mouse to move and click

  6. #6
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Lol why would you want to add a random 101 to the co-ords . It will cause it to off click majorly.
    Also as some people say - standarts

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
  •