Results 1 to 4 of 4

Thread: Miner & Banker

  1. #1
    Join Date
    Jul 2008
    Location
    California
    Posts
    255
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Miner & Banker

    I'm workin on a reflection miner/banker for Varrock East and I've found that two of the iron rocks have the same id when they're empty as the other two when they're full.

    Because of this I'm thinking of coding it to check the object ID on each tile individually when finding if there's ore to be mined or not. Is there a more efficient way of handling this issue?


    details:
    _______[4]
    [2][3]
    [1]

    Rocks 1&2 share the same "full" and "empty" ID's, and 3&4's "Empty" id are the same as 1&2 "Full" ID.

    Thanks in advance!
    Unfortunately, no active scripts atm.

  2. #2
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Use colour to find the rocks (make a tpa or something) and use reflection for the walking?
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

  3. #3
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    use a combination of tile and object ID checking.
    i.e.:
    Rock 1:
    Full ID: 1234
    Mined ID: 5678
    Tile: Tile(34, 56)

    Rock 2:
    Full ID: 1234
    Mined ID: 5678
    Tile: Tile(78, 90)

    Rock 3:
    Full ID: 5678
    Mined ID: 1234
    Tile(12, 34)

    Rock 4:
    Full ID: 5678
    Mined ID: 1234
    Tile (54, 65)


    If you want to see if Rock 3 is full, get the ID of the objected on tile (12, 34), and if it is 5678, then it must be full; if it's 1234, it must be empty.

    It's a bit more work, but can be simpler than color.

  4. #4
    Join Date
    Jul 2008
    Location
    California
    Posts
    255
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I am using color to find the rocks; however, I don't know how to use color to check to see if there is still ore in the rock if I have to walk to the rock. Using reflection to check the animation only works efficiently if you're the only one mining the rock because if two people are mining the same ore, whoever doesn't get it continues the animation for two to four seconds afterwards.

    Edit:

    That's what I was thinking of doing, TomTuff.

    What if I were to use color to find the rocks (I find using color to be faster and more random for clicking) then convert the point that the script clicks into a tile and routinely check the ID of the rock on that tile until it is empty, then continue to the next rock?

    Edit2:

    Just found out there's no MSToTile function . And the fun begins!
    Last edited by doom0791; 01-21-2011 at 03:07 AM.
    Unfortunately, no active scripts atm.

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
  •