Results 1 to 8 of 8

Thread: Open a gate

  1. #1
    Join Date
    Mar 2016
    Location
    Scandinavia
    Posts
    138
    Mentioned
    3 Post(s)
    Quoted
    46 Post(s)

    Question Open a gate

    so I am trying to open up a gate, I have tried ACAs, dtms, basic color finding but none of them works that good. So I was wondering if it is possible to search along the color until mouse over text finds "open gate"? In that case how would you do that?.

    Untitled.png
    Make sure to checkout this awesome thinggy too. Great alternative to wasting resources "securing" the bitcoin network.
    https://boinc.tacc.utexas.edu/team_d....php?teamid=28

  2. #2
    Join Date
    Dec 2010
    Posts
    483
    Mentioned
    30 Post(s)
    Quoted
    328 Post(s)

    Default

    Based on that picture alone, I'd recommend a different approach.

    There appears to be off-white/grey "bases" to the gate posts. These give you the the edge positions of the gate itself.

    You can then use a midpoint equation to calculate the center of the gate itself, such as;
    Code:
    gateCenter: TPoint = [round((post1.x + post2.x) / 2), round((post1.y + post2.y) / 2)];

  3. #3
    Join Date
    Mar 2016
    Location
    Scandinavia
    Posts
    138
    Mentioned
    3 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by the bank View Post
    Based on that picture alone, I'd recommend a different approach.

    There appears to be off-white/grey "bases" to the gate posts. These give you the the edge positions of the gate itself.

    You can then use a midpoint equation to calculate the center of the gate itself, such as;
    Code:
    gateCenter: TPoint = [round((post1.x + post2.x) / 2), round((post1.y + post2.y) / 2)];
    Untitled.png

    the problem is that those two keep on moving depending on where you are standing.
    Make sure to checkout this awesome thinggy too. Great alternative to wasting resources "securing" the bitcoin network.
    https://boinc.tacc.utexas.edu/team_d....php?teamid=28

  4. #4
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    Use the grey/silver blocks on the bottom? they will always have to be (X +- tolerance) distance units away from each other regardless of compass direction / player position.
    Last edited by Joopi; 12-09-2018 at 12:36 PM.
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  5. #5
    Join Date
    Jun 2015
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Check out ChooseOption.Close: https://github.com/SRL/SRL/blob/mast...seoption.simba
    It has a procedure in it that tracks the mouse movement until the ChooseOption dialog disappears. Maybe you can use something similar to that?

  6. #6
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    Oh my god, is this the potato field in Lumbridge? I made a potato picking script which got me into Villavu: https://villavu.com/forum/showthread...438&highlight=

    There were a couple of suggestions in there that you could try to implement, namely the one where you find the red of the gate on the minimap and try to convert it into a point on the mainscreen.

  7. #7
    Join Date
    Dec 2010
    Posts
    483
    Mentioned
    30 Post(s)
    Quoted
    328 Post(s)

    Default

    Quote Originally Posted by Lemon star View Post
    Untitled.png

    the problem is that those two keep on moving depending on where you are standing.
    What do you mean?

    The off-white/grey "bases" will remain at the post positions of the gate regardless of where you are standing, and their mid point will always be the center point of the gate.

  8. #8
    Join Date
    Mar 2016
    Location
    Scandinavia
    Posts
    138
    Mentioned
    3 Post(s)
    Quoted
    46 Post(s)

    Default

    Very nice indeed! Especially the gate procedure.

    Here is my script with your gate , https://streamable.com/99mns
    Make sure to checkout this awesome thinggy too. Great alternative to wasting resources "securing" the bitcoin network.
    https://boinc.tacc.utexas.edu/team_d....php?teamid=28

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
  •