SRL Archive - Test corner

TrackSymbol(MapSymbol:String);


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.

R0b0t1

2007-06-01 17:40:57

I don't know what this could be used for, but I think its a good idea for.. walking perhaps?

I can't see what else you would add to this except tolerance so something could cover up a bit of the symbol, and list/tell some uses.

rkroxpunk

2007-06-02 15:37:29

ummm u could add symbolaccuracy :D

Smartzkid

2007-06-02 15:44:43

Interesting idea…but where would it ever be used?

shaunthasheep

2007-06-02 16:20:30

wood cutting(tree symbol), mining (mining symbol), Calibration.

R0b0t1

2007-06-03 00:09:42

But MMsymbols move a whole lot as I've heard. But it could be used for Fakawi's paths thing, enev though it may save only a few lined of code.