Results 1 to 15 of 15

Thread: Color Finding

  1. #1
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Color Finding

    When I use FindColor() and I run my script it works perfectly but when I stop it and like wait an hour and come back to run it again it seems like the colors change and I have to update it every time. Anyone know why?

    Also I have this as one of my antiban procedures

    TypeSend('God only ' + IntToStr(XPTillNextLevel(16)) + ' xp until I level up');

    and it gives me "1" as the xp everytime. Is there something wrong with it?

    Also my GetSkillLevel(16) seems to be getting my agility skill level instad of my smithing. Is there something wrong with the GameTab.scar or is it my script?
    Last edited by Sir R. M8gic1an; 12-11-2010 at 05:08 PM.
    Still learning to code in Simba.

  2. #2
    Join Date
    May 2007
    Location
    Everywhere
    Posts
    1,428
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Best to use tolerance as sometimes colors do change. I'd say check the same pixel again an hour later and see what happens

    FindColorTolerance() should exist AFAIK

  3. #3
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Okay that sounds like a good idea I will use that. Can anyone answer my other stuff?

    Here's another question if anyone can answer this as well it would be great, you know how you can do this....

    Code:
    FindDTM(DTM, X, Y, MIX1, MIY1, MIX2, MIY2)
    and MI = Main Inverntory

    is there one for the bank? Like MB = Main Bank or anything like that?
    Last edited by Death12652; 12-09-2010 at 04:34 PM.
    Still learning to code in Simba.

  4. #4
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    No. There is no "MB" and etc. These are simply to locate the interface. Like "MI" = Main Inventory, "MM" = Main Map (Or was it Minimap?) and "MS" is Mainscreen. Here is a full list:
    * MSX1 - The X coordinate of the top-left corner of the RuneScape mainscreen
    * MSY1 - The Y coordinate of the top-left corner of the RuneScape mainscreen
    * MSX2 - The X coordinate of the bottom-right corner of the RuneScape mainscreen
    * MSY2 - The Y coordinate of the bottom-right corner of the RuneScape mainscreen
    * MSCX - The X coordinate of the centre of the RuneScape mainscreen
    * MSCY - The Y coordinate of the centre of the RuneScape mainscreen
    * MMX1 - The X coordinate of the top-left corner of the RuneScape minimap
    * MMY1 - The Y coordinate of the top-left corner of the RuneScape minimap
    * MMX2 - The X coordinate of the bottom-right corner of the RuneScape minimap
    * MMY2 - The Y coordinate of the bottom-right corner of the RuneScape minimap
    * MMCX - The X coordinate of the centre of the RuneScape minimap
    * MMCY - The Y coordinate of the centre of the RuneScape minimap
    * MCX1 - The X coordinate of the top-left corner of the RuneScape chat box
    * MCY1 - The Y coordinate of the top-left corner of the RuneScape chat box
    * MCX2 - The X coordinate of the bottom-right corner of the RuneScape chat box
    * MCY2 - The Y coordinate of the bottom-right corner of the RuneScape chat box
    * MCCX - The X coordinate of the centre of the RuneScape chat box
    * MCCY - The Y coordinate of the centre of the RuneScape chat box
    - I got those from: Here. Thanks, TRiLeZ.

    There might be a problem with GameTab.scar @ Your other question.

    Also @ The color changing every so often:
    AutoColor whatever it is you are attempting to find. If you need a tutorial check out the bottom of this post: Here

  5. #5
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    So if I were to do a FindDTM(DTM, X, Y, MSX1, MSY1, MSX2, MSY2)
    would it start at the very top left and look for it or only look at the top left corner? thanks RISK
    Still learning to code in Simba.

  6. #6
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    No. It would search the entire "MS" for the DTM that you wish.

  7. #7
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good thats so much better I will change that in my script.
    Still learning to code in Simba.

  8. #8
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    If you have anymore questions feel free to ask them.

    Quote Originally Posted by death12652 View Post
    Good thats so much better I will change that in my script.

  9. #9
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What would be a good tolerance for a Furnace color. Or what is the best way to search for the Furnace other than colors?
    Still learning to code in Simba.

  10. #10
    Join Date
    Jan 2010
    Posts
    1,414
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Reflection is a good way to detect it if all else fails.

    To find a good tolerance:
    Open up Auto Color Aid v2 (You can find it in the scripting tools folder, if you have it) and then do this: Client -> Find RS -> Click the furnace colors or whatever colors on the furnace you wish to attempt to find and be sure to get a good list of colors if possible. -> Click "2" on the "CTS" area on the bottom right. -> It will now display something like this:


    Now all of those are useful, especially if you are using TPAs for finding the furnace. But it also displays the best tolerance, which is what you specifically want.

  11. #11
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where/How am I suppose to get Auto Color Aid V2?
    Still learning to code in Simba.

  12. #12
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

  13. #13
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  14. #14
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    I svn co'd. So don't worry about it being outdated; but it is good to know where I got it from.

  15. #15
    Join Date
    Sep 2008
    Location
    My House
    Posts
    519
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks that helps a lot. Weird that it gave me a different color and not one that is in the list as the "Best" color. Anyway thanks.
    Still learning to code in Simba.

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
  •