xujnea
2015-05-06 19:47:44
Hello guys, I never been programming in my life,but I decided to learn. I need to find/climb ladders,but not sure how to do this. I tried using "FindColorSpiralTolerance",but it seems it doesn't work with "HumanMMouse",cause it requires Tpoint. I tried creating var x, y = Integer; But it doesnt work that way.
I also thought about using "findMSObjectSimple",but what the hell is "cols: TIntegerArray" and how can i find it? :/ Or maybe you know even better ways to find ladder? Thanks for your time ;) o/
I also thought about using "findMSObjectSimple",but what the hell is "cols: TIntegerArray" and how can i find it? :/ Or maybe you know even better ways to find ladder? Thanks for your time ;) o/
procedure UseLadder
var
x, y : Integer;
begin
WriteLn('Looking for ladder');
if(FindColorSpiralTolerance(x, y, 2576744, 29, 33, 466, 300, 6)) then
begin
WriteLn('Ladder found');
HumanMMouse([point(x,y)], 5, 5);
fastClick(mouse_Right);
Wait(200 + random(400));
ChooseOption('imb-up');
WriteLn('Up');
Wait(100 + random(400));
end;
end;