SRL Archive - OSR Help

cant find magic trees


furiousfro

2013-03-26 20:15:41

Hello i recently got involved in scripting and i am not very good at it yet, but i am still trying to learn. As of right now i am writing very simple scripts to play with. I have been able to easily make a script to find any tree so far except for magic trees. For some reason the P07_FindObjCustom function will not work on magic trees. It will just move the mouse around like crazy. I have tried using every unique color i could find on the tree but it will never recognize it. Is there something i can do to fix this or a different function i can use to find a magic tree on my screen. Ive also played around with the tolerance and multiple other varaibles brightness etc and nothing seems to work.

rj

2013-03-26 20:16:19

can you post the script

furiousfro

2013-03-26 20:24:57

Yeah sry here is the procedure that is being used to find and chop the tree

procedure chopYew;
begin
P07_MakeCompassNorth
if P07_FindObjCustom(x,y, ['Magic', 'op Ma'], [1847606 , 4749185 ], 10) Then
ClickMouse2(mouse_left);
MouseSpeed := 12;
Wait (RandomRange(10000,11000))
end;

it seemed to work with all the other trees like i was saying above