PDA

View Full Version : Help Please



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.

riwu
03-21-2015, 01:01 AM
Call tabBackpack.isFull() instead.
TRSTabBackpack is a record (similar to a class)
while tabBackpack is a variable (simulating an object of the class)

Googlez
03-21-2015, 02:57 AM
Alright so now its not noticing i have ANY items in the inventory, heres the code,and some screens
https://paste.villavu.com/show/6664/25373

riwu
03-21-2015, 03:15 AM
make sure u follow the exact setup: https://villavu.com/forum/showthread.php?t=47714


Click Interface Settings and make sure that the "Slim Headers" is checked.
Make sure the "Hide title bars when locked" is not checked.