Results 1 to 14 of 14

Thread: autocolouring rocks

  1. #1
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default autocolouring rocks

    hi guys, im making a varrok east miner and so far the walking is done but i need help with the mining procedure. I know that i can make the user pick a colour but i wanna make it so that the script will be able to dectect each rock everytime without the user imputing anything : P. Could anyone help me out or point me in the right direction? Thanks.

  2. #2
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, I think simply putting in a preset color would do it, and if that would't work, just instruct the user to pick a color. Since ScarScape now works, I don tthink that would be a problem.

    SCAR Code:
    CONST RockColor = 123456; // Edit this if it has problems with finding rocks.

    Tadaa..?

  3. #3
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea but i said i wanted to make to so the use DIDNT have to pick a colour, make it easier to use.

  4. #4
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    FindStoneColor will find the brown rock color on the minimap. It works better in the Varrock East mine than it does in some other places (like Rimmington).

    It's not 100% accurate, but it will pick the correct color in Varrock East a large majority of the time.

    When you are at the mine just do MyRockColor:=FindStoneColor;

    There is also a FindRockColor, which finds the color of the gray rocks.


  5. #5
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks ill try thaat

    EDIT: you said minimap? would that work in the main screen too?

  6. #6
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't see the problem. Its only supposed to be edited if, and only if it can't find the color. Add tolerace for that inctance and we're fine.

    EDIT:
    Quote Originally Posted by tarajunky View Post
    FindStoneColor will find the brown rock color on the minimap. It works better in the Varrock East mine than it does in some other places (like Rimmington).

    It's not 100% accurate, but it will pick the correct color in Varrock East a large majority of the time.

    When you are at the mine just do RockColor:=FindStoneColor;

    There is also a FindRockColor, which finds the color of the gray rocks.
    Tara! Tell me where you find this and eventually link me. I wanna learn more about this..

  7. #7
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    check the includes. should be in there?

  8. #8
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by R0bby View Post
    check the includes. should be in there?
    Yeah, but exactly where?

    I'm lazy ffs.

  9. #9
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    autocoloring section i think.

  10. #10
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks.


    Aww, nothing really intresting there, only the stuff I already knew. (+/- findrockcolor)

    Thx anyway.


    Edit: Aww, really useless 450th post. Hope I don't screw up like this on my 500th.

  11. #11
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    If you want the color of the rocks on the mainscreen, you'll have to autocolor them yourself.
    Interested in C# and Electrical Engineering? This might interest you.

  12. #12
    Join Date
    Jul 2007
    Location
    Norway.
    Posts
    1,938
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Smartzkid View Post
    If you want the color of the rocks on the mainscreen, you'll have to autocolor them yourself.
    Exactly what I was about to say, Tara's suggestion only works on the minimap. (as I fist assumed)

  13. #13
    Join Date
    Mar 2006
    Posts
    3,051
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Oops, sorry about that.

    If you want to mine Iron, I'll give you a hint on a great way to autocolor it.

    Some of the colors you find on the Iron ores in your inventory show up on the Iron rocks on the mainscreen.

    For my miner, I just mine 1 iron ore, have the script pick 2 of those colors, and use them for all my rock detection.

    For any of the ores, you can always try SmartColors, which will find the best specific colors for you by trial and error.


  14. #14
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok ill try and give that ago, thanks :P.

    Seems a little hard though

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SRL Forums, err, rocks!
    By DeceptionZD in forum SRL Site Discussion
    Replies: 0
    Last Post: 08-28-2008, 05:10 AM
  2. Coal Rocks
    By Baked0420 in forum RS has been updated.
    Replies: 7
    Last Post: 05-19-2008, 06:05 PM
  3. autocolouring cook house
    By Dynamite in forum OSR Help
    Replies: 6
    Last Post: 02-15-2008, 05:18 PM

Posting Permissions

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