Page 13 of 34 FirstFirst ... 3111213141523 ... LastLast
Results 301 to 325 of 827

Thread: AeroLib Include

  1. #301
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Updated to revision #7 . This was juts a couple small banking fixes along with the addition of Davi's interfaces. Hoodz I did not add your Grand Exchange system in yet as I've not had the chance to test it personally but I do plan to add it in sometime soon. If you have any updates on that just drop me a line or add them directly to that thread.
    no problem, take your time.

  2. #302
    Join Date
    Apr 2015
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    After update Im getting error. It compiles successfully,but then i start it," Math tab opens " and i get this error :

    Error: Invalid jump at line 451
    Execution failed.

    My bad,I declaredPlayers before InitAll.
    Last edited by xujnea; 05-12-2015 at 03:23 PM.

  3. #303
    Join Date
    Sep 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    TRSWalker.walkpath function forces the inventory tab to be up during its run.

  4. #304
    Join Date
    Aug 2012
    Location
    The Dark Tower
    Posts
    154
    Mentioned
    5 Post(s)
    Quoted
    56 Post(s)

    Default

    Does the GECOLLECTSCREEN also detect the Bank Collect Screen? If not I can grab the details on that to add it, if you'd like.
    EDIT: It doesn't due to the text positions being in a slightly different position.
    Code:
    with Interfaces[BANKCOLLECTSCREEN] do
      begin
        FontType  := 'UpChars07';
        FontColor := 2070783;
        ColorTol  := 5;
        Text      := 'Collection';
        TxtBounds := toBox(210, 54, 278, 73);
      end;
    Also, a change needs to be made to isInterfaceOpen from
    Code:
    function isInterfaceOpen(): Boolean;
    var
      i : Integer;
    begin
      for i:=BANKSCREEN to TARGETSCREEN do
        if Interfaces[i].isVisible() then
          Exit(true);
      result := false;
    end;
    to
    Code:
    function isInterfaceOpen(): Boolean;
    var
      i : Integer;
    begin
      for i:=BANKSCREEN to TANNINGSCREEN do
        if Interfaces[i].isVisible() then
          Exit(true);
      result := false;
    end;
    since you have added more interfaces past the TARGETSCREEN interface.

    EDIT2:
    There is also this possible snippet you could add to the interface section, although I think I have the timer things wrong.
    Code:
    function WaitForInterface(InterfaceID, 
      WaitPerLoop, Timeout: Integer): Boolean;
    begin
      Result := False;
      Timer.Start;
      while Interfaces[InterfaceID].isVisible = false do
      begin
        Wait(WaitPerLoop);
        if (Timer.TimeElapsed >= Timeout) then
          Exit;
      end;
      Result := True;
    end;

  5. #305
    Join Date
    Mar 2015
    Location
    Netherlands
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Just updated aerolib and I am now running this. Will let you know if I encounter any problems or have good proggies
    In every moment a choice exists. We can cling to the past or embrace the inevitability of change and allow a brighter future to unfold before us. Such an uncertain future may call for even more uncertain allies. Either way, a new day is coming whether we like it or not. The question is will you control it, or will it control you?
    -Niklaus Mikaelson

  6. #306
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Updated to revision #8 . The most noteworthy addition here is the new WorldSwitcher, which you can find in "core > gametabs > WorldSwitcher.simba". This will handle switching worlds in-game without having to logout, choose a world then log back in. You can do this via function WS_switchWorlds(World: Integer) which will result True if the player was successfully switched to the target world.

    Logging out has been fixed, a small issue with Interfaces has been fixed (as well as a version of Pakyakkistan's request for a "waitInterfaceOpen"), bank scrolling has been adjusted and windMouseDTM has been replaced with windMouseFunc which will continue moving the mouse until function "Func" has been reached. This will allow AL to utilize the function for much more than just scrolling the bank interface for items. As brought up by Woo Hoo, RSWalker (nor any randoms-checking function/procedure) should no longer force the Inventory gametab to be open.

    I apologize for being late to push this update as I know it's critical to have logging out functional. I've been very busy with my new job but I hope I'll have time at least once a week to work on AeroLib and other projects. Thank you all for being patient.
    Last edited by Flight; 05-24-2015 at 10:41 PM.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #307
    Join Date
    Sep 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    rev 8:
    [AL] Connection lost, please wait..
    This is reported on a loading screen while TRSWalker.Walkpath is running.

    Also TRSWalker.Walkpath (wsSPS walkstyle) tends to click in proximity to or at the final point in a designated path 2-3 times.

  8. #308
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by woo hoo View Post
    rev 8:

    This is reported on a loading screen while TRSWalker.Walkpath is running.

    Also TRSWalker.Walkpath (wsSPS walkstyle) tends to click in proximity to or at the final point in a designated path 2-3 times.
    That's recognition of "Connection lost, please wait" or even loading of the new map area. And the multi-clicking on the last tile in a path doesn't seem to be an issue but if you'd like to remove it personally open up Walker (core > minimap > Walker.simba) and delete line 385 - 391.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  9. #309
    Join Date
    Aug 2007
    Posts
    539
    Mentioned
    20 Post(s)
    Quoted
    266 Post(s)

    Default

    Hey, great work on the updates and everything;

    A couple things I noticed is that using 'OpenBankPoint' doesn't work on the lumbridge castle cellar's bank chest, as the uptext for the chest is 'Bank Chest', and 'DepositItem' with doWait only works when the amount to deposit is -1, if it was, for example, 27, doWait is ignored.

    And one more thing; you should add an auto updater, that would be great

    Thanks!

  10. #310
    Join Date
    Dec 2011
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Is there a way to find the older versions of AeroLib?

  11. #311
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by ineedbot View Post
    Hey, great work on the updates and everything;

    A couple things I noticed is that using 'OpenBankPoint' doesn't work on the lumbridge castle cellar's bank chest, as the uptext for the chest is 'Bank Chest', and 'DepositItem' with doWait only works when the amount to deposit is -1, if it was, for example, 27, doWait is ignored.

    And one more thing; you should add an auto updater, that would be great

    Thanks!
    I'm considering it mate.

    Quote Originally Posted by dutchp0wner View Post
    Is there a way to find the older versions of AeroLib?
    I'm afraid not, what in AeroLib are you looking for?

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  12. #312
    Join Date
    Dec 2011
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    The version which Fitta used for his Chaos Druids script, so around January
    https://villavu.com/forum/showthread.php?t=111679

  13. #313
    Join Date
    May 2015
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    program RUNME;
    {$DEFINE SMART}
    {$DEFINE WALKER}

    {$i AeroLib/AeroLib.Simba}

    begin
    initAL();
    end.

    so i run this and i get errors


    Error: Unknown declaration "ocr" at line 3604
    Compiling failed.
    Error: Unknown declaration "ocr" at line 2975
    Compiling failed.

    everytime i run it the number changes any ideas?

  14. #314
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by voltrbots View Post
    program RUNME;
    {$DEFINE SMART}
    {$DEFINE WALKER}

    {$i AeroLib/AeroLib.Simba}

    begin
    initAL();
    end.

    so i run this and i get errors


    Error: Unknown declaration "ocr" at line 3604
    Compiling failed.
    Error: Unknown declaration "ocr" at line 2975
    Compiling failed.

    everytime i run it the number changes any ideas?
    Fyi: This doesn't seem to be a aerolib issue. Tv I him and installed the SRL include currently been developed and got the same sort of issue.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  15. #315
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    What file is that opening when the error is thrown? That might be a plugin conflict with an older version of Simba, perhaps. I suggest getting the newest everything, Simba, SMART, AeroLib and its plugins.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  16. #316
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    What file is that opening when the error is thrown? That might be a plugin conflict with an older version of Simba, perhaps. I suggest getting the newest everything, Simba, SMART, AeroLib and its plugins.
    No file is opened with this error (in either include).
    Updated simba for him, then tried ollys version, then deleted all plugins and updated and reinstalled the ones on OP. Reinstalled aerolib (Got the newest version off git), I'm truly clueless on this lol.
    Just to add on to this, on each compile the line the error is on changes, which is... odd.
    Last edited by Harrier; 05-30-2015 at 01:25 PM.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  17. #317
    Join Date
    May 2015
    Location
    Estonia
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    About banking. Hooking PINPENDING interface does not seem to work properly (maybe I just did it wrong?). A suggestion, perhaps add a function to handle the interface. Right now I wrote a really robust solution in a wc script as I have only 2 days left anyway. Could be a bummer when re-logging and stuck in bank.

  18. #318
    Join Date
    Apr 2013
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by voltrbots View Post
    program RUNME;
    {$DEFINE SMART}
    {$DEFINE WALKER}

    {$i AeroLib/AeroLib.Simba}

    begin
    initAL();
    end.

    so i run this and i get errors


    Error: Unknown declaration "ocr" at line 3604
    Compiling failed.
    Error: Unknown declaration "ocr" at line 2975
    Compiling failed.

    everytime i run it the number changes any ideas?
    Go into your fonts folder and delete the folder named "OCR Items" for some reason it causes a problem with any program that doesn't use it. Happened to me on another script before and it to me a minute to re-figure it out. Going to have to unzip the OCR files again when I go back to use the other script. If anyone can figure out why this happens that would be fantastic.

  19. #319
    Join Date
    Apr 2015
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    If you get "Click here to play" message while switching with "WS_switchWorlds", script breaks and gives some kind of text error. Got it 3 times, but I forgot to make screen. ** i got it again,so i made a screen. **



    Also made random world switcher,but it's not efficient enough. How can i make it go from 01 to 94,skipping memb worlds and then reapeat from start? :/

    Simba Code:
    procedure FastSwitchRandomW
    begin
      WriteLn('Generuojamas Worldas');
      case (random(11)) of
        0: WS_switchWorlds(01);
        1: WS_switchWorlds(08);
        2: WS_switchWorlds(16);
        3: WS_switchWorlds(26);
        4: WS_switchWorlds(35);
        5: WS_switchWorlds(81);
        6: WS_switchWorlds(84);
        7: WS_switchWorlds(83);
        8: WS_switchWorlds(93);
        9: WS_switchWorlds(94);
        10: WS_switchWorlds(82);
      end;
    end;
    Attached Images Attached Images

  20. #320
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    I'm on a break from Uni now and have started learning how to script with AeroLib and Lape Reflection for 07, but progress has been slow without a tutorial. I know that you're busy, @Flight; but any updates on an AL tutorial being written? It'd be great to see how the include is intended to be used.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  21. #321
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Incurable View Post
    I'm on a break from Uni now and have started learning how to script with AeroLib and Lape Reflection for 07, but progress has been slow without a tutorial. I know that you're busy, @Flight; but any updates on an AL tutorial being written? It'd be great to see how the include is intended to be used.
    you can skype me if you have questions.

  22. #322
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    you can skype me if you have questions.
    I may do that, thanks.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  23. #323
    Join Date
    Apr 2015
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Hello, guys, I want to do 20min break after finding moderator in chat. Cause now,everytime he talks, I logout and my script keeps making screenshots and I want it to go on break instead of just logging off. How can I use this :
    Simba Code:
    al_OnFindMod   = 1;  // After a player or Jagex mod is detected talking in the chat box.
    I can't find actual procedure. Love new worldSwitch thingy, but it breaks if you get "Click here to play" message while switching with "WS_switchWorlds" and it happens every 10~30 mins.

    Also what should I add in setupBreak(BreakIn, BreakFor, RanBreakIn, RanBreakFor: Integer); I tried adding miliseconds, and then put "breakhandler(false);" into my procedures. And it didn't work for me. I tried checking time with getTimeUntilBreak(): Integer;, but I get negative numbers. So how should I fill "setupBreak" correctly and should I add "breakhandler(false);" multiple times(like in procedures) or just once like on starting script procedure?

  24. #324
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by xujnea View Post
    Hello, guys, I want to do 20min break after finding moderator in chat. Cause now,everytime he talks, I logout and my script keeps making screenshots and I want it to go on break instead of just logging off. How can I use this :
    Simba Code:
    al_OnFindMod   = 1;  // After a player or Jagex mod is detected talking in the chat box.
    I can't find actual procedure. Love new worldSwitch thingy, but it breaks if you get "Click here to play" message while switching with "WS_switchWorlds" and it happens every 10~30 mins.

    Also what should I add in setupBreak(BreakIn, BreakFor, RanBreakIn, RanBreakFor: Integer); I tried adding miliseconds, and then put "breakhandler(false);" into my procedures. And it didn't work for me. I tried checking time with getTimeUntilBreak(): Integer;, but I get negative numbers. So how should I fill "setupBreak" correctly and should I add "breakhandler(false);" multiple times(like in procedures) or just once like on starting script procedure?
    The procedure that detects & handles moderators and P-Mods is found in "misc > randomsolvers > Master.simba"; go do to line 649 and you'll see the "findMod()" procedure. Indeed the system is outdated and should dynamically handle mod-detection based on what the scripter choose. AKA, switch worlds, log out, or, as you mentioned, take a break. Perhaps I'll throw this in with the next major AeroLib update (1.2).

    The "click here to play" message I'm unsure what you're referring to. Is this the big black splash screen you get after you've entered your name & pass and clicked 'Login'? If so I didn't know it was possible to get to that screen while using the World-switcher. And to answer your previous question for entering a set of worlds in order then repeating, I would personally make an (integer) array of those worlds and have a for...to..do loop to switch to each world, like so:
    Simba Code:
    procedure hoppinWorldsLikeABoss();
    var
      i      : Integer;
      worlds : TIntegerArray;
    label
      Start;
    begin
      Start:
      setArrayLength(worlds, 10);
      worlds := [1,8,16,35,81,82,83,84,93,94];
      for i:=0 to high(worlds) do
      begin
        warn('Hopping to world '+toStr(worlds[i]), WT_SCRIPT);
        WS_switchWorlds(worlds[i]);
        DOCOOLSTUFF();
      end;
      warn('Finsihed our world-switching, starting over'. WT_SCRIPT);
      GoTo Start;
    end;

    Setting up the breakhandler goes like this: "BreakIn" means how long before a break will occur? (in minutes), "BreakFor" is how long the break will last (again, in minutes), "RanBreakIn" is a random amount (of minutes) to add or subtract to 'BreakIn", and "RanBreakFor" is the same but for the 'BreakFor'. You can call "BreakHanlder()" any time you want the script to check if it's time to take a break, and if it is then AeroLib will take over from there. It will also return 'True' if you took a break: "if BreakHandler() then writeln('Took a rest, ready to work again boss!');".


    Any other questions, issues, or even suggestions for the include just post away or PM me directly. Since starting my job a few weeks ago my time is extremely limited compared to before but I'll try to put in some work on the weekend if I can. It seems the next obstacle to tackle will be the re-sizable mode and, if it's not released until next week, then this weekend I'll start (blindly) writing system to deal with it. I imagine it's going to be quite difficult and it's released on a week day then I'm sure AeroLib will but wounded until at least the following weekend.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  25. #325
    Join Date
    Apr 2015
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    19 Post(s)

    Default

    Quote Originally Posted by Flight View Post

    The "click here to play" message I'm unsure what you're referring to. Is this the big black splash screen you get after you've entered your name & pass and clicked 'Login'? If so I didn't know it was possible to get to that screen while using the World-switcher. And to answer your previous question for entering a set of worlds in order then repeating, I would personally make an (integer) array of those worlds and have a for...to..do loop to switch to each world, like so:


    Any other questions, issues, or even suggestions for the include just post away or PM me directly. Since starting my job a few weeks ago my time is extremely limited compared to before but I'll try to put in some work on the weekend if I can. It seems the next obstacle to tackle will be the re-sizable mode and, if it's not released until next week, then this weekend I'll start (blindly) writing system to deal with it. I imagine it's going to be quite difficult and it's released on a week day then I'm sure AeroLib will but wounded until at least the following weekend.
    Thanks,Flight,your answer was very usefull to me. Yes you can get to splash screen( Black screen with red " Click here to play " button) while using WorldSwitcher,you can also get to splash screen while logging out now,even without using scripts, I think it's some kind of bug or something. Your procedure makes sense,thanks again.

    Simba Code:
    procedure findMod();
    var
      X,Y : Integer;
    begin
      if not isLoggedIn() then Exit;
      if not AL_HANDLEMODS then Exit;
      if ((not cs_FindBitmapToleranceIn(BMP_PModChat, X, Y, 20, toBox(MCX1,MCY1,MCX1+50,MCY2), cs_CTS)) and
          (not cs_FindBitmapToleranceIn(BMP_JModChat, X, Y, 20, toBox(MCX1,MCY1,MCX1+50,MCY2), cs_CTS))) then Exit;

      warn('PMod detected, going into sleepmode for 10~20mins...', WT_RANDOM);


      logoutPlayer();
      Sleep(random(60000) + 60000);  // <---------- I meet mods alot,lol. And my script was breaking,so i added this.
      //Me.Active := False;         // Would be better to pause script,is there a procedure for that? :)

      WriteLn('Waking up after, Pmod Detect')
      loginPlayer(true);
    end;

Page 13 of 34 FirstFirst ... 3111213141523 ... LastLast

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
  •