1. ## 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

2. SRL Member
Join Date
Dec 2010
Posts
483
Mentioned
30 Post(s)
Quoted
328 Post(s)
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. Originally Posted by the bank
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.

4. 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.

5. SRL Junior Member
Join Date
Jun 2015
Posts
36
Mentioned
0 Post(s)
Quoted
5 Post(s)
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. 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. SRL Member
Join Date
Dec 2010
Posts
483
Mentioned
30 Post(s)
Quoted
328 Post(s)
Originally Posted by Lemon star
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. Very nice indeed! Especially the gate procedure.

Here is my script with your gate , https://streamable.com/99mns