
Originally Posted by
HarryJames
Yeah it is ><
I just didn't know what to put for x and y, because I thought they were input (not ouput)!
want a tut? here you go:
if there is a "rare tree" on the minimap this will return the first one it finds:
Simba Code:
program new;
{$i srl/srl.scar}
var
x, y: integer;
begin
SetupSRL; //Loads SRL
ActivateClient;//Activates the client
wait(1500); //Waits 1.5 seconds to make sure the client was activated
if FindSymbol(x, y, 'tree') then MMouse(x, y, 3, 3);
//Searches for the symbol on the minimap, sets the value's of x and y
//to the pixel it found the symbols at on the minimap
//for debug i am having it move the mouse to the spot
end.
find symbol in is useful when there are possibly multiple symbols on the minimap and you would only like to search a specific part. this example is best run between the edgville yew trees with the compass to the south:
Simba Code:
program new;
{$i srl/srl.scar}
var
x, y: integer;
begin
SetupSRL; //Loads SRL
ActivateClient;//Activates the client
wait(1500); //Waits 1.5 seconds to make sure the client was activated
if FindSymbolIn(x, y, 'tree', MMX1, MMY1, MMX2, MMCY) then MMouse(x, y, 3, 3);
//Searches for the symbol on part of the minimap, sets the value's of x and y
//to the pixel it found the symbols at on the minimap
//for debug i am having it move the mouse to the spot
end.