Results 1 to 12 of 12

Thread: Adding Randomness? Maybe MouseBox?

  1. #1
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default Adding Randomness? Maybe MouseBox?

    Begin

    if findBitmapToleranceIn(specific_rock, X, Y, 12, 319, 524, 404, 20) then

    begin
    MoveMouse(626, 128);
    wait(250);
    ClickMouse(626, 128, mouse_left)
    end;
    end;


    What's a good way to Click x +/- 5, and y +/- 5 around the coordinates above? And yes, I know this a bad method for walking

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    If you are using the SRL6 include:
    mouseBox(IntToBox(x-5, y-5, x+5, y+5), MOUSE_LEFT)

  3. #3
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by riwu View Post
    If you are using the SRL6 include:
    mouseBox(IntToBox(x-5, y-5, x+5, y+5), MOUSE_LEFT)
    oh sorry! i'm using {$i srl/srl.simba} (for a rsps)

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by jstemper View Post
    oh sorry! i'm using {$i srl/srl.simba} (for a rsps)
    In that case, for SRL-5, you can

    Simba Code:
    MMouse(x, y, rx, ry);

    where x, y are the coords you want to move to, and rx, ry are your randomness (usually something like -3, 3)
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  5. #5
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    In that case, for SRL-5, you can

    Simba Code:
    MMouse(x, y, rx, ry);

    where x, y are the coords you want to move to, and rx, ry are your randomness (usually something like -3, 3)
    I seriously love you man

  6. #6
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    I wouldn't add randomness if it was a pserver I would concentrate on making it as efficient as possible since they don't detect bots

  7. #7
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by rj View Post
    I wouldn't add randomness if it was a pserver I would concentrate on making it as efficient as possible since they don't detect bots
    I agree, RSPS do not have any where near the bot detection, if any, that Runescape does. I would suggest just making it as efficient as possible, but also being very diligent in checking for loops and failsafes as that way they cannot visually tell the difference which is usually how it goes for RSPS.

  8. #8
    Join Date
    Sep 2014
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    hi, i'm working on a script for an rsps using srl -5 i just wanted to ask why mmouse doesnt move to the exact cordinates like i didnt even add randomness coz i dont really want it to have randomness and the mousebox function i use is inaccurate for some reasons

  9. #9
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by henryuscola View Post
    hi, i'm working on a script for an rsps using srl -5 i just wanted to ask why mmouse doesnt move to the exact cordinates like i didnt even add randomness coz i dont really want it to have randomness and the mousebox function i use is inaccurate for some reasons
    Post the code that moves your mouse
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  10. #10
    Join Date
    Sep 2014
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Well haven't been on a pc awhile but it's like mmouse(223,224,1,1); or mousebox(233,435,244,545,2); it's never accurate though completely misses the static position I want it to move to

  11. #11
    Join Date
    Apr 2015
    Location
    Falador
    Posts
    41
    Mentioned
    2 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by henryuscola View Post
    Well haven't been on a pc awhile but it's like mmouse(223,224,1,1); or mousebox(233,435,244,545,2); it's never accurate though completely misses the static position I want it to move to
    The y coordinate simba give is off. you'll always have to subtract the y axis by 22 to be accurate.
    So for your, it should be like this:
    Simba Code:
    mmouse(223,202,1,1); or mousebox(233,413,244,523,2);

  12. #12
    Join Date
    Sep 2014
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by The Legendary View Post
    The y coordinate simba give is off. you'll always have to subtract the y axis by 22 to be accurate.
    So for your, it should be like this:
    Simba Code:
    mmouse(223,202,1,1); or mousebox(233,413,244,523,2);
    Oh that works well thanks now

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
  •