riwu
2012-09-01 08:32:12
I'm lost at the function:
If they are 'gaps', it means the TPA don't contain these points, so i'm not sure what it means?
Basically, I'm using GetMMDotsOnMS to get the red dots, then i'm finding a way to delete the points outside the gate (there isn't any in the picture but there will be if someone is killing mobs outside the gate).
What i can think of right now is to get the TPA of the white color, then splitting them and getting the TPA with highest length (which should be the gate), follow by GetTPABounds and then just click on a red dot that is within the box.
However, the gate is, as you can see, not a perfect rectangle so if there is red dots right outside the gate it won't filter them out.
One possible way is to fill up all the 'gaps' within the gate then only consider those red dots that match the filled TPA.
I'm not too sure how these 'gaps' function (eg. the 1 above and FindGapsTPAWrap) work and can't find any detailed documentation of them. Hoping someone can explain them/suggest what i can do.
Also where can i find the source code of the WizzyPlugin? I might be able to read some Delphi. Can't find it at https://github.com/MerlijnWajer/Simba, unless it's hidden deeply in subfiles.
function RemoveDistTPointArray(x, y, dist: Integer;const ThePoints: TPointArray; RemoveHigher: Boolean): TPointArray;
Finds the possible gaps in the TPointArray TPA and removes the gaps. Considers as a gap if the gap length is >= MinPixels
If they are 'gaps', it means the TPA don't contain these points, so i'm not sure what it means?
Basically, I'm using GetMMDotsOnMS to get the red dots, then i'm finding a way to delete the points outside the gate (there isn't any in the picture but there will be if someone is killing mobs outside the gate).
What i can think of right now is to get the TPA of the white color, then splitting them and getting the TPA with highest length (which should be the gate), follow by GetTPABounds and then just click on a red dot that is within the box.
However, the gate is, as you can see, not a perfect rectangle so if there is red dots right outside the gate it won't filter them out.
One possible way is to fill up all the 'gaps' within the gate then only consider those red dots that match the filled TPA.
I'm not too sure how these 'gaps' function (eg. the 1 above and FindGapsTPAWrap) work and can't find any detailed documentation of them. Hoping someone can explain them/suggest what i can do.
Also where can i find the source code of the WizzyPlugin? I might be able to read some Delphi. Can't find it at https://github.com/MerlijnWajer/Simba, unless it's hidden deeply in subfiles.
The lines would of course be fully saturated and cover every pixel, but you get the idea :D