Krazy_Meerkat
2007-05-28 02:36:53
TrackSymbol(MapSymbol:String); //By KM, allows player to stay near map symbol if called in a loop.
var mmmx, mmmy:Integer;
begin
if(FindSymbol(mmmx,mmmy,MapSymbol))then
if(Distance(MMCX, MMCY, mmmx, mmmy) > 35)then
Mouse(mmmx, mmmy, 5, 5, true);
end;Currently only uses symbols, In beta stages still I guess you could say :/I know it will not do anything if there are obstructions over the map symbol but it works if nothing obscures the symbol.
I'll change it later to get the symbol colour and perform a tolerance-check on it but I think this could hinder the procedure's ability to stay near symbols.
I've got a new idea for searching symbols which will find symbols based on the percentage of symbol visible, I might see if it's worth doing some other time..
I know it's simple but it is effective, it will make your script last a bit longer if anything.