Results 1 to 11 of 11

Thread: Intermediate-Advanced Coding Request?

  1. #1
    Join Date
    Mar 2007
    Location
    UK
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Intermediate-Advanced Coding Request?

    Hey, I need a good coder to tell me/code my Idea.

    The Idea is simple: Im making an Al Kahid Miner/Banker.

    Currently, working on MINING part.

    Well,I was thinking that most of the Mining Precedures posted on Forums are very systematic and detectable.

    I believe that this method is much more efficient:

    Al Kahid Mining Site:

    You have 3 Iron Rocks;

    .....o
    ..o
    .....o

    If you stand in the Middle;

    ....o
    .o.x
    ....o
    Then the rocks are "Relative" to you. Subsequently, their co-ordinates will remain unchanged.

    We can now define each rock by an integer, starting from top:

    1,2,3 in respect to the northern most rock.

    Now, each rock will have a boundary, hence its coordinates.

    Say Rock 1 is: (x,y,233,145,243,155) (this makes a box of 10 x 10 inside your applet)

    Then, my question is: How can we re-define each coordinate in that 10x10 box as an Integer? So that we can make a procedure during which our mouse pointer will NOT rely on COLORS, but on the co-ordinates of the location it clicks? Making it totally random as it will click on random places on the rock.


    The advantages are: the 3 rocks form a Landmark making it easy for baking precedures/random events teleportation.

    This WILL make powermining undetectable, since every click we get a randomised coordinate PLUS the randomised mousecursor movements.

  2. #2
    Join Date
    May 2006
    Location
    West Coast
    Posts
    820
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How are you going to do the walking

  3. #3
    Join Date
    Mar 2007
    Location
    UK
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Theres a function on SCAR: it uploads the MINIMAP into memory, and finds landmarks: FindLandmark("String>DMT?"). Or so I believe.

    As for the idea, theres no walking involved, you stand still whilst mining the rocks, because of the rocks surrounding you.

  4. #4
    Join Date
    May 2006
    Location
    West Coast
    Posts
    820
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by V3-C View Post

    The Idea is simple: Im making an Al Kahid Miner/Banker.
    ... You have to walk to the bank

  5. #5
    Join Date
    Mar 2007
    Location
    UK
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    There are plenty of landmarks, RockSlide, Quest Sign, Water, Tanners, etc etc

  6. #6
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I don't really get the question.

    So you want to find out how to save rock coords of each rock? Or click randomly inside a box?

  7. #7
    Join Date
    Mar 2007
    Location
    UK
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Get the total coordinates of rocks, say: Rock1 has a radius= 234,145,244,155 which means it has 10x10 coordinates meaning that we got 100 random coordinates to CHOOSE from!

  8. #8
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by V3-C View Post
    Get the total coordinates of rocks, say: Rock1 has a radius= 234,145,244,155 which means it has 10x10 coordinates meaning that we got 100 random coordinates to CHOOSE from!
    I'd just make a box and use FindColorsSpiralTolerance then. It's a function that returns a TPointArray (array of all the coords of the color found). Hopefully that helps? Sorry, I'm still not entirely sure why you would want to do mining like this. I'd just keep it simple. Use FindColorTolerance with different Box sizes and spirals, with some add + and subtracts to the box (simple version/ edited) of FindObj basically..

    Btw if you need this.

    SCAR Code:
    procedure FindColorsSpiralTolerance(x, y: Integer; var Points: TPointArray; color, xs, ys, xe, ye: Integer; Tolerance: Integer); - finds all colors in area specified by xs, ys, xe, ye and returns their coordinates into Points.

    Need any help, ask.

  9. #9
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ironically you talking about the easiest script part ever.
    I believe walking to the bank = 100x harder than coding something to click on a pixel of a certain color.

  10. #10
    Join Date
    Mar 2007
    Location
    UK
    Posts
    69
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I actually was working on Banking today, good progress.

    As for FindColorSpiral works if you allready have the color? What if you dont and U just want to randomly click on any of the pixels in the box without leaving a pattern.

  11. #11
    Join Date
    Feb 2006
    Location
    L.A, USA
    Posts
    1,632
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by V3-C View Post
    I actually was working on Banking today, good progress.

    As for FindColorSpiral works if you allready have the color? What if you dont and U just want to randomly click on any of the pixels in the box without leaving a pattern.
    Yeah, just pick a color (you never have to pick again after that) and add small tolerance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need some help with coding
    By pomme in forum OSR Help
    Replies: 2
    Last Post: 10-09-2007, 01:17 PM
  2. Intermediate & Advanced Tutorials???
    By kissdemon in forum SRL Site Discussion
    Replies: 10
    Last Post: 09-12-2007, 12:39 AM

Posting Permissions

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