Results 1 to 10 of 10

Thread: need ideas

  1. #1
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default need ideas

    i need help with my mining script, what i need help with is when i want to move mouse to the rocks in Rimmington not to go over to the iron on the floor, plz post ur ideas on how I can exclude the ores when finding rocks ?

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What I would do is when I find the location where I think the color is at (x,y):
    SCAR Code:
    var
      TPA: TPointArray;
    FindColorsSpiralTolerance(mx,my,TPA,2958623,x-15,y-15,x+15,y+15,5);
    if(GetArrayLength(TPA) > 15)then //Must be a rock and not an ore if there's that many colors
    Mouse(x,y,3,3,true);

    Something like that? Where I think I found the rock at, check the amount of colors in that area (with a tolerance of 5), and if there's a lot, we know it's not the iron on the ground, but the rock. You may need to learn TPA's to understand that better (there are many tutorials on it in the advanced section of tutorial island).
    Last edited by JAD; 08-14-2009 at 02:50 AM.

  3. #3
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Or you can use reflection and simply find a object with 100% accuracy and efficiency.

  4. #4
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i tried doing that way see if it is in a range but when i tried working out my ranges they where CRAZY they ranged from 200 -500 (iron ore on floor)
    Edit :> i don't want to use reflection :P

  5. #5
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Or you can use reflection and simply find a object with 100% accuracy and efficiency.
    or he could use his brain instead of taking the easy way out...

  6. #6
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    or he could use his brain instead of taking the easy way out...
    my brain has reached the limit need help :P

  7. #7
    Join Date
    Dec 2008
    Location
    Québec
    Posts
    419
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Or you can use reflection and simply find a object with 100% accuracy and efficiency.
    nothing is 100% accuracy and efficiency.

    edit: i forgot me .
    Formerly known as FrancisHelie

  8. #8
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by hackncrack1 View Post
    my brain has reached the limit need help :P
    your brain hasn't reached any limits, your just being lazy. Which is probably the number 1 downfall to most scripters..

    What JAD told you should work.

    To help explain what he said though...he is just counting how many times it found the rock color inside the search area, and if it is over 15 in this case, it will click it thinking that it is the rock.
    Last edited by NCDS; 08-14-2009 at 03:18 AM.

  9. #9
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    15 is not an accurate number, it was just an example. And the iron ore on the ground might actually have more of the color then the rock itself, in which case you would do the opposite (if GetArrayLength(TPA) < 15 then it's the rock, for example). Just don't use too much tolerance or too big of a box around the point and you shouldn't get too many colors.

  10. #10
    Join Date
    Aug 2008
    Location
    !!LOL!!
    Posts
    247
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @NCDS hmm maybe ur rite but i think jad ur way is working for a start but how do i make it not to go over to the coords of iron on floor?
    Edite :> NVM SOlved my problem
    Last edited by hackncrack1; 08-15-2009 at 03:18 AM.

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
  •