dzpliu
2013-06-15 10:40:57
this is part of script
question is how do i limit 'i'(the integer) to 2 instead of all the Tpoints found?
so that the function only loot 2 of the drops found.
'Custom':
begin
if CustomLoot then
Bones := FindBones; //findbones function returns all Tpoints found
if (Length(Bones) > 0) then
begin
WriteLn('Checking bones.');
for i:=Low(Bones) to High(Bones) do
begin
//i:=2;
RandomMMouse(Bones[i].x,Bones[i].y,0,0);
ClickMouse2(mouse_right);
if WaitOptionMulti(Loots,600) then
Exit;
end;
end;
end; question is how do i limit 'i'(the integer) to 2 instead of all the Tpoints found?
so that the function only loot 2 of the drops found.