Results 1 to 9 of 9

Thread: Error: Exception: You passed a wrong xs to a finder function: -10. That is below 0, t

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

    Default Error: Exception: You passed a wrong xs to a finder function: -10. That is below 0, t

    Attempted to add a failsafe, it is suposed to detect the color in a box around the mouse and not continue until the value is returned false.

    Simba Code:
    (FindColorTolerance(X, Y, 3881792, x-10, y-10, x+10, y+10, 15)=false)

  2. #2
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    You're trying to find the color of an area that is not on the client. Use different coords.

  3. #3
    Join Date
    Jan 2012
    Posts
    713
    Mentioned
    3 Post(s)
    Quoted
    9 Post(s)

    Default

    This error always occurs because the coordinates are off where its searching it has to be almost exact(when using findcolortolerance).

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

    Default

    Quote Originally Posted by rjj95 View Post
    Attempted to add a failsafe, it is suposed to detect the color in a box around the mouse and not continue until the value is returned false.

    Simba Code:
    (FindColorTolerance(X, Y, 3881792, x-10, y-10, x+10, y+10, 15)=false)
    The x,y value of the search argument should be from GetMousePos(), and your X, Y should be a different variable name to differentiate b/w the 2 (remember that Pascal is not case sensitive--other than strings).

    Why do you have a ')=false' at the end?

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

    Default

    I'm just going to use pixel shift to detect when player is done mining :s

  6. #6
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    I'm just going to use pixel shift to detect when player is done mining :s
    Use InvCount as well, it's more accurate (when you get the ore that is).

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

    Default

    Quote Originally Posted by BMWxi View Post
    Use InvCount as well, it's more accurate (when you get the ore that is).
    Can it be used for a pserver?

  8. #8
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    Can it be used for a pserver?
    I just looked in the includes and yeah it should work as long as
    Simba Code:
    srl_outline_black
    works, which it should if the items in the rsps have a black outline. Note all my assumptions, it would probably be worth a shot to try it

  9. #9
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by BMWxi View Post
    I just looked in the includes and yeah it should work as long as
    Simba Code:
    srl_outline_black
    works, which it should if the items in the rsps have a black outline. Note all my assumptions, it would probably be worth a shot to try it
    This^^^.
    Give it a try and re-post.
    ~Rez

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

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
  •