Results 1 to 9 of 9

Thread: Mouse(x, y, +10, +10, true);

  1. #1
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mouse(x, y, +10, +10, true);

    Is it possible to do something like this?
    For example;


    using "Mouse(x, y, 10, 10, true);" will click within the blue square, which is like 40% chance to mine the ore.. The green square represents the area i want the mouse to click in, which might not be possible if you're only using two positives.

    I want to know if theres any way to only put the range in the positive side only, which would effectively make it click in the green area (which would have to be a triangle?) It would be extremely accurate and easy to use when there's only one of that type of ore around.

  2. #2
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    TPA's my friend... TPA's... or MouseBox.. but that doesn't work...

    Try:

    SCAR Code:
    Mouse(RandomRange(x, x + 10), RandomRange(y, y + 10), 0, 0, true);
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #3
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Using y+10 would click down, wouldn't it? In that case, you'd want y-10 instead.
    :-)

  4. #4
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Method View Post
    Using y+10 would click down, wouldn't it? In that case, you'd want y-10 instead.
    okay that picture failed..


    + is always up and to the right, - is always down and to the left,

  5. #5
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    The RuneScape game client starts at (0, 0) in the top left-hand corner. To get to (1, 1) you go down and to the right, not up and to the right.
    :-)

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by orange View Post
    okay that picture failed..


    + is always up and to the right, - is always down and to the left,
    No, he is right, you would want y - 10.

    Because it goes like this:

    SCAR Code:
    (0,0)----------
         |         |
         |         |
         |         |
         |         |
         |         |
         |         |
         |         |
         |         |
         ----------(760,900)

    So, y goes lower as it increases. Its not normal math, but it works!
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  7. #7
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Method View Post
    Using y+10 would click down, wouldn't it? In that case, you'd want y-10 instead.
    You sir, are a genius.

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

    Default

    Its a bug in Mouse(); ... The RandomX and RandomY will only add to the X and Y.

  9. #9
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Zy are you serious? are you SUURE??

    .. yes he is right, i just checked.

    this is from mouse.scar
    SCAR Code:
    x:= x + random(rx);
      y:= y + random(ry);

    so you can just use mouse(x, y-random(10), 10, 0, true);
    ~ Metagen

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mouse(x,y,4,4, True);
    By graffy in forum OSR Help
    Replies: 8
    Last Post: 12-14-2008, 08:45 AM

Posting Permissions

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