Results 1 to 13 of 13

Thread: Not to escape!

  1. #1
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Not to escape!

    Hello, i am makeing a flax picker.

    In my founding of flax, i realise a major problem.
    I'm useing a TPA for my colorfinding. But what if there's no color to find? what if the color found, is some stupid noob running around in flax colored clothes for no reason (yes, and they exist in great numbers!)
    I need something to make sure im within the boundries of my flax field, and the ability to locate WHERE i am. So if i can't find my flax, it would be able to search in the "other" cornors around the flax spot. and so on.

    /Thanks (:
    I ... Am ... CARTMANN!

  2. #2
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    im not to sure how to do what your asking, but you can do this simple thing that will not click on anything other then flax(but the mouse will be attracted to it)

    if uptext('lax') then
    ClickMouse(x, y, true);
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  3. #3
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    if IsUpText('lax') then

    and I can't think of a way either right now, not without having the flax spot in front of me and the script open so I can try some stuff out.

  4. #4
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ahh, ofcourse, solved my main problem, thanks.
    But what about the "failsafe"?
    I mean, if it can't locate the flax, would i be able to create something that could tell me where i am on the field? and how to get other locations around the field? (such as the NW cornor, middle, SW cornor ect.)
    I ... Am ... CARTMANN!

  5. #5
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To locate if your in the flax field what I would do is: make a FindColorsTolerance(...) with the colour of the flax field fence on the MM, use GetTPABounds(...) to get the boundaries, and check if the MM centre is inside it. I think that would work, but I haven't tested so I don't know
    Last edited by Quickmarch; 10-31-2009 at 11:19 AM.
    lol

  6. #6
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    You could also count the brown colour looking at color density/percentages.

    Might be faster than doing all the center checks. I mean, you'ld have to work with it, but it should work. As well, doesn't flax have a different colour on the mini-map?
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  7. #7
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Could you seach the for the fence with bitmaps?
    I see Now, says the blind man

  8. #8
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could also count the brown colour looking at color density/percentages.

    Might be faster than doing all the center checks. I mean, you'ld have to work with it, but it should work.
    I'm sorry but i do not understand what you mean with this, could you explain further please?
    Thanks.
    I ... Am ... CARTMANN!

  9. #9
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cartmann View Post
    I'm sorry but i do not understand what you mean with this, could you explain further please?
    Thanks.
    On the mini map you find the fence look, if you make a bitmap or the other pic thing of the edges and find it like rouated from 10 to 90 you know its west edge

    sorry very sleepy can't spell or think

    And make not work im still yet to making a working one
    I see Now, says the blind man

  10. #10
    Join Date
    May 2009
    Location
    Denmark! YEAH I'M A VIKING!
    Posts
    344
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i presume if you had the MM faced 100% north it would be posible to create bitmaps on the MM?
    I ... Am ... CARTMANN!

  11. #11
    Join Date
    Aug 2009
    Location
    Inside the Matrix...yes it has me, and it has you too.
    Posts
    1,896
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Baked0420 View Post
    if IsUpText('lax') then

    and I can't think of a way either right now, not without having the flax spot in front of me and the script open so I can try some stuff out.
    aha my bad, gawd can't believe i did that wrong
    NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN NYAN

  12. #12
    Join Date
    Aug 2009
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cartmann View Post
    well i presume if you had the MM faced 100% north it would be posible to create bitmaps on the MM?
    No you can find bitmaps rouated (aw can't spell/ think/sleep) from like angel -10 to 50
    I see Now, says the blind man

  13. #13
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    You could check to see how large the tpa for the green color is. When someone is wearing the color it will be much larger.

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
  •