Results 1 to 4 of 4

Thread: Mining multiple rocks.

  1. #1
    Join Date
    Dec 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Mining multiple rocks.

    Okay, I have a question. I think I have it figured out but i'm not sure if there is a better way. I want to write a script that looks for multiple rocks to mine in an order of importance. I want it to look for any adam rock first, then look for gold, mith, and finally coal. But when it finds the rock, like lets say it doesn't find adam but then finds a gold rock, I want it to jump to the beginning and look for adam again. Would it go like this (roughly)?

    If FINDADAM then MINEADAM
    ElseIf FINDGOLD then MINEGOLD
    ElseIf FINDMITH the MINEMITH
    ElseIf FINDCAOL then MINECOAL


    or is that wrong, or is there a better way?

  2. #2
    Join Date
    Jan 2007
    Location
    Tennessee
    Posts
    642
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Make it search for coal first, all the way up to addy.
    And let's say you use FindColor.
    If it finds the coal it stores its coords in x, y.
    Then if it finds gold it will make x and y new coords where the gold is and so on up to addy.
    So if it did find gold then searched for addy but didn't find it, x and y will still be the coords of the gold rock.

  3. #3
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Wait... If it didn't find something, but then another, you want it to repeat... 0_o
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  4. #4
    Join Date
    Dec 2007
    Posts
    44
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    almost,
    thank you that seems much better. much less code.

    Robot, yes because the addy rocks will pop eventually... so i want it to mine those when it pops but in the mean time it will mostly mine gold and coal.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. change to mining rocks?
    By sb6n5dd in forum RS has been updated.
    Replies: 1
    Last Post: 06-06-2007, 04:00 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
  •