i don't get how to find monsters and items using reflection
i made this but im not sure if its right or not i looked at a few tuts but couldn't find out for sure its a cow finder and can some 1 help me make a item finder...
SCAR Code:
program New;
{.Include SRL/SRL/Misc/SMART.Scar}
{.Include SRL/SRL.Scar}
{.Include SRL/SRL/Reflection/Reflection.Scar}
Var
Cows : array of TNPC;
Attack : TPoint;
Function FindCow : TPoint;
Begin
Cows := SortNPCs(GetNPCsByName('Cow'));
Result := Cows[0].MS;
End;
begin
SetupSRL;
Attack := FindCow;
Mouse(Attack.x, attack.y, RandomRange(0, 5), RandomRange(0, 5), False);
Wait(RandomRange(500, 1000));
ChooseOption('ttack');
end.