Results 1 to 10 of 10

Thread: Walking AeroLib

  1. #1
    Join Date
    Jul 2017
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Post Walking AeroLib

    To Start off I'm new to scripting but not new to botting I have been botting for while and have used several different clients and such. Recently i bought into the whole RID thing. In my Opinion think using color is future of botting, that's why joined RID. Im just not sure if RID is the future, As off right now. Dont get me wrong I think RIDs bot is Great, its just not there yet and Im tired of waiting on RID. Anyways I recently have been using simba and its little complex in way. I want to know how to use AeroLib better if anyone could drop me anymore guides on AreoLib that would be awesome. I have already use DAN THE MAN two guides. But I still feel like I need help learning it better. I know C so I'm not in completely lost when it comes to programming. But the question I've to Ask is what is the best way to walk when using AeroLib. I've tried using DTM to walk with AeroLib but i cant get anything to work/ I dont even know if its possible. I looked into using SPS but didnt see any new guides on how to use SPS. If anyone could answer the question on the best way to walk using AeroLib and how drop me so guides or just give good information that would be so helpful.

  2. #2
    Join Date
    Jul 2015
    Posts
    80
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    Use Rswalker, its built in Aerolib, plenty of topics on forums, gl.

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

    Default

    Like Guerr said, RSWalker is the standard for walking in color on Old School now. It is built into Aerolib, but it was developed externally by Slacky. The release page has information on how to implement walking into your script.

    Have a look here: https://villavu.com/forum/showthread...light=rswalker

    If you are having issues understanding it, let me know

  4. #4
    Join Date
    Jul 2017
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Right now Im working on a firerune runner that uses only duel rings. I plan on posting it on the site once i finish it. There is already one on the webstie but uses reflection. Anyways right now im still working on the whole idea of walking and i looked at the link you sent me. And i got pretty far on just understanding how walking works. I download SPS made little sort path and have been using Slacky "skeleton" form the link you sent me. But for some reason I cant get walking to work. Im already using 32-bit osrs and i put the maps in my includes idk if that helped. Also i ran it as administrator.

    this error i get when i run the script:
    Error: Not implemented yet at line 71
    Execution failed.

    also the script start outside the east-varrok bank then walks to the water fountain.

    program TESTWALK;
    {$I RSWalker/Walker.simba}
    {$i AeroLib/AeroLib.Simba}
    //we need to override the rswalker's ClickMouse as it doesn't have it's own mouse-methods.
    //procedure w_ClickMouse(box:TBox; btn:Int32); override;
    //begin
    //MouseBox(box, btn); //call a click-mousefunction from the include you use
    //end;
    //
    //then it's just the regular setup, this is needed no matter what..:
    var
    RSW:TRSWalker;
    path:TPointArray;
    begin
    //How to init depends on your usage:
    RSW.Init('world.png'); { Automatic detection - works with AeroLib and SRL, use this if unsure }
    //* if SMART : RSW.Init('world.png', SMART.PID); { or whatever it's named in your include }
    //* no memscan : RSW.Init('world.png', -1);
    RSW.Init('world.png');

    //alternative setup (default works fine tho)
    RSW.walkStyle := wsSPS; //works similarly to how SPS would walk the path
    RSW.anyAngle := True; //`True` if you are not walking with compass facing north
    RSW.skipClose := 15; //how close to the target point before we try to click the next point.

    path :=[Point(4825,2734),Point(4799,2733),Point(4778,2733) ,Point(4760,2732),Point(4744,2732),Point(4723,2732 ),Point(4696,2734),Point(4675,2734),Point(4661,273 4)];
    RSW.WalkPath(path);

    RSW.Free(); //remember to free it once we're done.
    end.

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

    Default

    Quote Originally Posted by underforu View Post
    Right now Im working on a firerune runner that uses only duel rings. I plan on posting it on the site once i finish it. There is already one on the webstie but uses reflection. Anyways right now im still working on the whole idea of walking and i looked at the link you sent me. And i got pretty far on just understanding how walking works. I download SPS made little sort path and have been using Slacky "skeleton" form the link you sent me. But for some reason I cant get walking to work. Im already using 32-bit osrs and i put the maps in my includes idk if that helped. Also i ran it as administrator.

    this error i get when i run the script:
    Error: Not implemented yet at line 71
    Execution failed.

    also the script start outside the east-varrok bank then walks to the water fountain.

    program TESTWALK;
    {$I RSWalker/Walker.simba}
    {$i AeroLib/AeroLib.Simba}
    //we need to override the rswalker's ClickMouse as it doesn't have it's own mouse-methods.
    //procedure w_ClickMouse(box:TBox; btn:Int32); override;
    //begin
    //MouseBox(box, btn); //call a click-mousefunction from the include you use
    //end;
    //
    //then it's just the regular setup, this is needed no matter what..:
    var
    RSW:TRSWalker;
    path:TPointArray;
    begin
    //How to init depends on your usage:
    RSW.Init('world.png'); { Automatic detection - works with AeroLib and SRL, use this if unsure }
    //* if SMART : RSW.Init('world.png', SMART.PID); { or whatever it's named in your include }
    //* no memscan : RSW.Init('world.png', -1);
    RSW.Init('world.png');

    //alternative setup (default works fine tho)
    RSW.walkStyle := wsSPS; //works similarly to how SPS would walk the path
    RSW.anyAngle := True; //`True` if you are not walking with compass facing north
    RSW.skipClose := 15; //how close to the target point before we try to click the next point.

    path :=[Point(4825,2734),Point(4799,2733),Point(4778,2733) ,Point(4760,2732),Point(4744,2732),Point(4723,2732 ),Point(4696,2734),Point(4675,2734),Point(4661,273 4)];
    RSW.WalkPath(path);

    RSW.Free(); //remember to free it once we're done.
    end.
    Try this:

    Simba Code:
    program TESTWALK;
    {$i AeroLib/AeroLib.Simba}
    {$I AeroLib/core/minimap/walker/Walker.simba}
    //we need to override the rswalker's ClickMouse as it doesn't have it's own mouse-methods.
    //procedure w_ClickMouse(box:TBox; btn:Int32); override;
    //begin
    //MouseBox(box, btn); //call a click-mousefunction from the include you use
    //end;
    //
    //then it's just the regular setup, this is needed no matter what..:
    var
      RSW:TRSWalker;
      path:TPointArray;
    begin
      //How to init depends on your usage:
      RSW.Init('world'); { Automatic detection - works with AeroLib and SRL, use this if unsure }

      path :=[Point(4825,2734),Point(4799,2733),Point(4778,2733),Point(4760,2732),Point(4744,2732),Point(4723,2732),Point(4696,2734),Point(4675,2734),Point(4661,2734)];
      RSW.WalkPath(path);

      RSW.Free(); //remember to free it once we're done.
    end.

    Remember to wrap your code in the [ simba] [ /simba] tags (no spaces) to make it more readable.

    I instead used RSWalker that is built into Aerolib and called for it from that directory. Let me know if it works.

  6. #6
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Aerolib already has a varaint of RSWalker integrated, so you can just do:

    Simba Code:
    program TESTWALK;
    {$DEFINE WALKER}
    {$i AeroLib/AeroLib.Simba}

    var
      RSW: TRSWalker;
      path: TPointArray;
    begin
      RSW.Init('WorldMap');
      RSW.walkStyle := wsSPS;
      RSW.anyAngle := True;

      path := [Point(4825,2734),Point(4799,2733),Point(4778,2733),Point(4760,2732),Point(4744,2732),Point(4723,2732 ),Point(4696,2734),Point(4675,2734),Point(4661,2734)];
      RSW.WalkPath(path);

      RSW.Free();
    end.
    !No priv. messages please

  7. #7
    Join Date
    Jul 2017
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Thanks for the helping me guys but when i run the script it will compile but opens up the Math script in a new tab and tells me

    Error: Invalid jump at line 451
    Execution failed.

    I tried to look up if anyone else had ever had this problem but i didnt see anything. I don't understand what i could be doing wrong.

  8. #8
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    You need to setup aerolib before you can use certain functions from it.

    Baiscally add
    > InitAL();
    Before you do invoke any other method.
    !No priv. messages please

  9. #9
    Join Date
    Jul 2017
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Hey guys thanks for the help with walking. Ive been busy so havent been able to work on the script as much as i want to but this is all i got
    Code:
    program FireUderforuRunner ;
    {$DEFINE WALKER}
    {$i AeroLib/AeroLib.Simba}
    
      var
      PureEss, DuelRing:TItem;
      BankObject,FireRuins:TMSObject;
      aWalker,RSW:TRSWalker;
      path: TPointArray;
      tile_Altar:TPoint
    
    Procedure LoadItems;
     begin
    PureEss.DTM := DTMFromString('mfgEAAHicE2JgYOAEYlEgFgJiZiBmYYAARiBmA2IuIOaFqpEEYikoLQbEwkDMBzUDhLmBmB+IBYCYFYq5oOYxQc1nhopzQNWLQM0Sh7Lry8oYZvT1MjRWVDCEBQQwtNfVMuSkpDBkJSWBXbV4+jQwPrhjO9SVjAybViyHs0E4IiiIgVqAkUoYEwAA2aIUEw==');
    DuelRing.DTM := DTMFromString('m1gAAAHic42JgYOABYi4g5gNiXiAWgLK5gZidAQI4kNggwALVwwtVC9LDCRV/flqWQXC2BANviSBDexkvQ0kaBG9fIMpwa78Ug4edMcOWeaIMxAJGIjECAABkqgwH');
    BankObject.create('Use Bank chest', ['Bank', 'chest', 'Use'], [createCol(4343642, 17, 0.21, 0.73)], 50, 0, 0, 0);
    FireRuins.create('Enter Mysterious Ruins', ['Enter','Mysterious','ruins'], [createCol(4147782, 10, 1.54, 0.55)],50,0,0,0);
     aWalker.init('RunecraftingAltars');
       RSW.Init('WorldMap');
    
    end;
    
    
    procedure Banking;
    var
      BankPoint : TPoint;
      pnt : Tpoint;
    begin
      Writeln('Opening Bank..');
      if BankObject.find(BankPoint) then
        begin
          wait(2000+random(750));
            openBankPoint(BankPoint, true);
              Writeln('Deposting..');
              wait(2000+random(750));
                withdrawItem(PureEss, -1);
                wait(1750+random(750));
                closeInterface();
                end;
    end;
    
    Procedure Teleport;
    var
    pnt1, pnt2, pnt3: Tpoint;
    begin
     pnt1 := [672, 183];
      HumanMMouse(pnt1, 5, 5);
         FastClick(Mouse_left);
           wait(2000+random(750));
      pnt2 := [698,380];
        HumanMMouse(pnt2,5,5);
          FastClick(Mouse_Right);
             wait(2000+random(750));
              chooseOption('Duel Arena');
               wait(6000+random(750));
    end;
    
    Procedure Walking;
    var
      RSW:TRSWalker;
      path: TPointArray;
    begin
      RSW.walkStyle := wsSPS;
      RSW.anyAngle := True;
    
      path:=[Point(5071,3509),Point(5045,3509),Point(5042,3488),Point(5042,3473),Point(5043,3459),Point(5044,3451)];
      RSW.WalkPath(path);
      RSW.Free();
    end;
    
    Procedure EnterMine;
       var
       pnt: Tpoint
        begin
     if FireRuins.find(Pnt) then
      HumanMMouse(pnt,5,5);
          FastClick(Mouse_LEFT);
                wait(10000+random(600));
      end;
    
    Procedure WalkInMine;
    var
      aWalker: TRSWalker;
      apath: TPoint;
    begin
    
      aWalker.walkStyle := wsSPS;
      aWalker.anyAngle := True;
    
      apath:=[Point(494, 215)];
      aWalker.WalkPath(apath);
      aWalker.Free();
    end;
    
    
    
    
    begin
      initAL;
     LoadItems();
      Banking();
      Teleport();
      Walking();
      EnterMine();
      WalkInMine();
    end.

    But sadly im having problems with walking again. i dont understand how to walk inside the altermine i have tried but cant figure it out. if anyone wants to test the script just start at castle war at the chest and zoom all the way out. thanks guys.

  10. #10
    Join Date
    Jul 2017
    Posts
    21
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    I cant believe I figured out how to do this it works very well! This is what I did and it worked for me! To find my coordinates I used the following script.

    {$I RSWalker/Walker.simba}

    var
    RSW:TRSWalker;
    t:UInt32;
    begin
    RSW.Init('world.png');
    WriteLn('RSW is setup!');

    //The first scan is a lot slower then the next scans, it's used to setup stuff..
    t := GetTimeRunning();
    WriteLn('I am here: ', RSW.GetMyPos(), ' used: ', GetTimeRunning()-t,'ms');

    //scan again.. this time it will be pretty much "instant".. same for all of the future times.
    t := GetTimeRunning();
    WriteLn('I am here: ', RSW.GetMyPos(), ' used: ', GetTimeRunning()-t,'ms');

    //one more time to prove my point..:
    t := GetTimeRunning();
    WriteLn('I am still here: ', RSW.GetMyPos(), ' used: ', GetTimeRunning()-t,'ms');

    RSW.Free();
    end.

    From here all I did was input my coordinates into the following script where it says path and it worked!

    program TESTWALK;
    {$DEFINE WALKER}
    {$i AeroLib/AeroLib.Simba}

    var
    RSW: TRSWalker;
    path: TPointArray;
    begin
    InitAL();
    RSW.Init('WorldMap');
    RSW.walkStyle := wsSPS;
    RSW.anyAngle := True;

    path := [Point(4536,2943),Point(4518,2907)];
    RSW.WalkPath(path);

    RSW.Free();
    end.

    Thanks Slacky!

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
  •