Results 1 to 5 of 5

Thread: Aerolib Issues

  1. #1
    Join Date
    Sep 2014
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default Aerolib Issues

    I am attempting to create my first OSRS Aerolib script and am having some difficulties.

    I am following the guide found here: https://villavu.com/forum/showthread.php?t=113715.

    I am able to create the TItem for a rockcake; however, I can't seem to be able to use the TItem for anything. I was trying to find it in my inventory using item_Coal.inInventory() as well as trying to interact with it using item_Coal.interact(MOUSE_LEFT). Obviously, I changed everything from the guide to fit what I was using. However, nothing was actually working. Could anyone provide me some insight as to what I was doing wrong?

  2. #2
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    Code:
    function DoingSomething: Boolean;  // you can have procedure; but functions allow something to be true or false.
    var
      _item : TReflectInvItem; 
    //// You must declare the variable; "_item" is the name i have chosen - TReflectInvItem is the Aerolib (reflection function; which will only search the Inventory)
    
    begin
      if _item.Find(#####)  then          // You need to use debug and get the ID and insert where ##### is
       if interactSlot(_item.getInvSlot, mouse_left) then    // this will interact with the _Item you previously defined
        begin      
          result := true; // returns True if found item ####
          wait(500+random(5500)); // This is a random wait time
        end else
        begin
         result := false; // otherwise result is False
        end;
    end;

    <------------------>



  3. #3
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    I cant get the rockcake; otherwise i would throw a small script together to help you get the gist..

    <------------------>



  4. #4
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Quote Originally Posted by stopsign View Post
    I am attempting to create my first OSRS Aerolib script and am having some difficulties.

    I am following the guide found here: https://villavu.com/forum/showthread.php?t=113715.

    I am able to create the TItem for a rockcake; however, I can't seem to be able to use the TItem for anything. I was trying to find it in my inventory using item_Coal.inInventory() as well as trying to interact with it using item_Coal.interact(MOUSE_LEFT). Obviously, I changed everything from the guide to fit what I was using. However, nothing was actually working. Could anyone provide me some insight as to what I was doing wrong?
    Hey mate.

    Paste your code for people can have a look. I did some scripting for NMZ that uses a rock cake with AeroLib quite recently so this may be something I can assist with.

  5. #5
    Join Date
    Sep 2014
    Posts
    16
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Thanks everyone! Sorry for just leaving this thing hanging. School exams took up a lot of time and had to put my project on the back burner. I now have a different issue. For some reason I am having trouble getting this to work:

    Code:
    procedure setupinv();
    begin
      if not getInvcount() = 1 and not item_Cake.inInventory() then
        begin
              Shutdown := True;
              sdReason := 'Do not have rockcake';
              Exit;
        end else
      begin
      if item_Ovl.getAmount(True)<16 then
        begin
        if obj_ovltank.find() then
          fastClick(mouse_right);
          waitOptionMulti(['Take'],250);
          wait(3000);
          typesend('64', True);
        end
      else
      writeln('sucks to suck');
        end;
      end;
    I'm having issues at the "if item_Ovl.getAmount(True)<16 then" part. It returns false but will return true if run by itself.

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
  •