Googlez
03-20-2015, 11:45 PM
procedure pickPotatoe();
var
b : TBox;
cts,i,h,w: Integer;
tpa,tpa2 : TPointArray;
atpa : T2DPointArray;
begin
if(TRSTabBackpack.isFull )then
begin
wait(RandomRange(1500,3000));
teleportToTowlheadLand();
wait(RandomRange(1500,3000));
walkToBank();
wait(RandomRange(1500,3000));
depositPotatoes();
end
else
begin
findColorsTolerance(tpa, 2979913, mainscreen.getbounds(), 1, colorSetting(2, 0.18, 0.12));
//minimap.setAngle(180);
if (Length(tpa) < 1) then
begin
Exit;
end
else
begin
SplitTPAWrap(tpa, 5, atpa);
SortATPASize(atpa, true);
smartImage.debugATPA(atpa);
for i := 0 to high(atpa) do
begin
smartImage.clear();
findColorsTolerance(tpa, 2979913, mainscreen.getbounds(), 1, colorSetting(2, 0.18, 0.12));
SplitTPAWrap(tpa, 5, atpa);
SortATPASize(atpa, true);
smartImage.debugATPA(atpa);
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['Pick Potato'], 500) then
fastClick(MOUSE_LEFT);
print('Potato Picked');
pickPotatoe();
begin
end
end
end
end
end
I am getting access violation error when i call the IsFull function on the tab. It opens the backpack include and points to line 139
Error: Access violation at line 139
Execution failed.
var
b : TBox;
cts,i,h,w: Integer;
tpa,tpa2 : TPointArray;
atpa : T2DPointArray;
begin
if(TRSTabBackpack.isFull )then
begin
wait(RandomRange(1500,3000));
teleportToTowlheadLand();
wait(RandomRange(1500,3000));
walkToBank();
wait(RandomRange(1500,3000));
depositPotatoes();
end
else
begin
findColorsTolerance(tpa, 2979913, mainscreen.getbounds(), 1, colorSetting(2, 0.18, 0.12));
//minimap.setAngle(180);
if (Length(tpa) < 1) then
begin
Exit;
end
else
begin
SplitTPAWrap(tpa, 5, atpa);
SortATPASize(atpa, true);
smartImage.debugATPA(atpa);
for i := 0 to high(atpa) do
begin
smartImage.clear();
findColorsTolerance(tpa, 2979913, mainscreen.getbounds(), 1, colorSetting(2, 0.18, 0.12));
SplitTPAWrap(tpa, 5, atpa);
SortATPASize(atpa, true);
smartImage.debugATPA(atpa);
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['Pick Potato'], 500) then
fastClick(MOUSE_LEFT);
print('Potato Picked');
pickPotatoe();
begin
end
end
end
end
end
I am getting access violation error when i call the IsFull function on the tab. It opens the backpack include and points to line 139
Error: Access violation at line 139
Execution failed.