Results 1 to 4 of 4

Thread: Help Please

  1. #1
    Join Date
    Mar 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Help Please

    Code:
        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

    Code:
    Error: Access violation at line 139
    Execution failed.

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Call tabBackpack.isFull() instead.
    TRSTabBackpack is a record (similar to a class)
    while tabBackpack is a variable (simulating an object of the class)

  3. #3
    Join Date
    Mar 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    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/MqGuXdD.jpg

  4. #4
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •