Results 1 to 10 of 10

Thread: Cannot... FindColor?

  1. #1
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Cannot... FindColor?

    So... I'm not a noobie - I scripted a long time ago. I just wanted to create a little script for old times sake, but I quickly ran into a problem...

    Installed Simba (Revision 973), enabled srl.sex, updated to SRL version 803 (I think... that's what it says in the console).

    I CANNOT FIND A COLOR.

    Using this code (and no compilation errors, I've setup SRL, etc.):

    Simba Code:
    x := MSCX;
      y := MSCY;
      if FindColorSpiralTolerance(x,y,4600188,MSX1, MSY1, MSX2, MSY2, 20) then
      MMouse(x,y,0,0)
      else
      MMouse(-1, -1, 0, 0);

    Simba NEVER finds the color! (Ok, one time, out of a good 8 tries, it moved the mouse to a crate. But I put in a BLUE color!)

    Every time, the mouse moves to (-1, -1). Regardless of what color I put in.

    What's going on? Help an old guy, please

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    For that function, the x, y return the point the color is found so you don't need to set them as MSCX, MSCY. That's not your issue, though.

    I'm really not sure what your issue is.

  3. #3
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, the x and y points are set to MSCX and MSCY so that FindColorSpiralTolerance starts its spiral search from the center of the Main Screen (at least, that's what it does if I remember it correctly).

    Yeah, I'm stumped

  4. #4
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    This was happening to me earlier. I couldn't login to RS with/without SMART. I couldn't get my TPA function working, then all of a sudden it started working again. I don't know what happened.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  5. #5
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Infantry001 View Post
    Well, the x and y points are set to MSCX and MSCY so that FindColorSpiralTolerance starts its spiral search from the center of the Main Screen (at least, that's what it does if I remember it correctly).

    Yeah, I'm stumped
    That's what it does in FindColorsSpiral. Are you using SMART or the browser? If browser, some clients refresh a lot causing Simba to lose focus and Simba's client is reset back to the desktop.

  6. #6
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm. I've been using the browser (Chrome, specifically). Let me try with SMART.

  7. #7
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Infantry001 View Post
    Hmm. I've been using the browser (Chrome, specifically). Let me try with SMART.
    Chrome is what didn't work for me (RS client refreshed or flickered every couple seconds). As soon as I switched to Firefox it worked again.

  8. #8
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Uhh... what happened to the red dot in SMART?

    Edit: NVM, it magically appeared! O_O

  9. #9
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    You have to update to V6.9.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  10. #10
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok, thanks for that.

    EDIT: Oh, and it works. Thanks, guys!

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
  •