Originally Posted by
Hanar
So I have been using OgLib for scripting lately and am loving it (got my first ever 2 hr+ proggy on my own script today
) but have stumbled across an issue and need some ideas on how to fix it.
My walking procedure basically clicks based on the location of a yellow dot on the minimap (which I find by checking the color ID to see if it is actually yellow and not a nearby red), but every single time I reload the client the color ID of the yellow dot changes, breaking my walking. Any ideas on how to fix?
Try adjusting your color tolerance to a value that will ensure the search's success. The default value is 4, and should probably be returned to after your dot search.
Simba Code:
procedure someProcedure();
begin
ogl.setColourTolerance(someHigherValue);
myDotSearch();
ogl.setColourTolerance(4);
end;
This is one of the textures that has changing IDs. Similarly, model IDs for granite change every client load. This is one of the reasons we have avoided creating a public database of IDs.
If you come up with a color tolerance that works (and does not false positive for the other dots) please share! Perhaps we can create a 100% working minimap.getDots() procedure for ogLib.