Results 1 to 21 of 21

Thread: N.A.S - An NXT Autoing Solution

  1. #1
    Join Date
    Dec 2011
    Posts
    445
    Mentioned
    26 Post(s)
    Quoted
    256 Post(s)

    Default N.A.S. - An NXT Autoing Solution

    N.A.S.

    An NXT Autoing Solution





    Features
    • NXT and Simba Client Pairing
    • Send Fake Input to the NXT client with or without focus
    • Allows you to use your Host PC while botting
    • Works with SRL-6
    • Drawing (Through LibLayer)


    What it doesn't do
    • Filter Bot/User Input
    • Work on Non-Windows' systems


    Why?
    Something similar to SMART but for the NXT Client was needed.

    How it works
    NAS uses the Win32 API to do everything it does. It uses PostMessage to send fake input to the 'Paired' NXT Game Client. Currently NAS disables the ability to minimize the paired NXT client at all, but still allows you to use your Host PC and bot without issues. The NXT Game Window will continue to run in the background, though you may not be able to minimize it, you can still focus on other programs like games, your browser, or whatever it may be, and use those programs without interfering with the client.

    The Include
    • NAS_INI: Uses the NXT Client Process ID, Simba Process ID, and Simba Thread ID to keep track of paired clients
    • NAS_Pair: The Structure of a Paired Client
    • NAS_Keyboard: Keyboard related functions
    • NAS_Mouse: Mouse related functions
    • NAS Debug: Each structure has debug methods, you can enable debug by using NAS.EnableDebug()/NAS.DisableDebug(), you can disable debug to each individual structure


    Simba Input Function Overrides
    NAS overrides almost all of Simba's mouse/keyboard functions, like KeyDown, KeyUp, MoveMouse, all of which can be found in Mouse/Keyboard Overrides.pas This is to maintain compatibility between includes.

    Requires Simba 1.2 - Simba.i386-win32.exe or Simba 1.3+ - Simba.i386-win32.exe

    Setup
    NAS uses the official NXT Client, so just boot NXT up and start the script.
    The NXT Client must be set to Compatibility Mode if you want Color-finding functions to work! It's normal for the client to lag until it fully loads the shaders

    Simba Code:
    program new;
    {$I NAS\NAS.simba}

    begin
      NAS.EnableDebug();
      WriteLn(NAS.init());
    end.

    Drawing
    NAS uses LibLayer for Simba 1.2+ to draw on the paired NXT Game Window. LibLayer now comes with NAS, just use the example below to use it.
    Simba Code:
    program new;
    {$DEFINE NAS_DRAWING}
    {$I NAS\NAS.simba}


    begin
      ClearDebug();
      NAS.EnableDebug();

      if(NAS.init()) then
      begin
        NAS.Layer.PaintInterval(100);
        // Layer supports auto-painting, or you can manually tell it to paint with NAS.Layer.Paint();
        NAS.Drawing.DrawText('Clarity is bae', 'SmallChars07', Point(100, 100), false, 255);
      end;

      repeat
      until false;
    end.

  2. #2
    Join Date
    Dec 2011
    Posts
    2,133
    Mentioned
    220 Post(s)
    Quoted
    1064 Post(s)

  3. #3
    Join Date
    Sep 2010
    Posts
    5,754
    Mentioned
    136 Post(s)
    Quoted
    2736 Post(s)

    Default

    can we multithread with simba now

  4. #4
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    968
    Mentioned
    142 Post(s)
    Quoted
    582 Post(s)

    Default

    Quote Originally Posted by rj View Post
    can we multithread with simba now
    Funny how I've been multithreading in Simba for several years.
    !No priv. messages please

  5. #5
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,197
    Mentioned
    112 Post(s)
    Quoted
    1857 Post(s)

    Default

    So... is this in active development now? The other thread was closed, and this one created. What's that mean?
    GitLab projects | Simba for Linux | Find me on IRC or Discord | OSRS scripts | Come play ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  6. #6
    Join Date
    Dec 2011
    Posts
    2,133
    Mentioned
    220 Post(s)
    Quoted
    1064 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    So... is this in active development now? The other thread was closed, and this one created. What's that mean?
    Assuming in order to move from Junior+ and republish public without having to wait for mods.

  7. #7
    Join Date
    Mar 2007
    Posts
    5,110
    Mentioned
    275 Post(s)
    Quoted
    900 Post(s)

    Default

    Quote Originally Posted by Clarity View Post
    Assuming in order to move from Junior+ and republish public without having to wait for mods.
    Funny that, in order for the other one to be locked, a mod would've been active and could've moved it :P

    Forum account issues? Please send me a PM

  8. #8
    Join Date
    Dec 2011
    Posts
    445
    Mentioned
    26 Post(s)
    Quoted
    256 Post(s)

    Default

    I had requested a move several times, and it was never moved. So I just made a new thread and requested a lock on the other, in the event a mod becomes active .

  9. #9
    Join Date
    Aug 2009
    Location
    Nova Scotia, Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default

    Bit of a gravedig. This compatible with Simba 1.3? Looks exciting.
    Never ever approach a computer saying or even thinking "I will just do this quickly".

  10. #10
    Join Date
    Dec 2011
    Posts
    445
    Mentioned
    26 Post(s)
    Quoted
    256 Post(s)

    Default

    Now requires Simba 1.3+, LibLayer by Olly and the Windows include by Slacky now comes with NAS. All you need to do is throw NAS in the includes folder from now on.

    Updated OP.

  11. #11
    Join Date
    Dec 2011
    Posts
    445
    Mentioned
    26 Post(s)
    Quoted
    256 Post(s)

    Default

    Updated again after finding out SRL-6 doesn't work on 1.3, 1.2 support should now be added.

  12. #12
    Join Date
    May 2012
    Posts
    491
    Mentioned
    23 Post(s)
    Quoted
    227 Post(s)

    Default

    Quote Originally Posted by Twinki View Post
    Updated again after finding out SRL-6 doesn't work on 1.3, 1.2 support should now be added.
    I’m trying to get some ppl together to update SRL-6 for Simba 1.3
    All help is welcome!

  13. #13
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,405
    Mentioned
    84 Post(s)
    Quoted
    855 Post(s)

    Default

    Quote Originally Posted by Thomas View Post
    I’m trying to get some ppl together to update SRL-6 for Simba 1.3
    All help is welcome!
    What needs to be done?

  14. #14
    Join Date
    May 2012
    Posts
    491
    Mentioned
    23 Post(s)
    Quoted
    227 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    What needs to be done?
    Posted this:
    Quote Originally Posted by Thomas View Post
    SRL-6 on Simba 1.3 for resizeable rs3?

    My proposal:
    Step 1: Update srl6 to compile with 1.3
    Step 2: Update srl6 to be compatible with regular nxt (if def-nxt)
    Step 3: update srl6 to allow resizeable (if def-resize)

    I know some work has been done so far, perhaps we should gather what has been done so far on merge it all together?

    https://villavu.com/forum/showthread.php?t=118162
    https://villavu.com/forum/showthread.php?t=118336
    https://villavu.com/forum/showthread.php?t=118119


    @Clarity
    @Twinki
    @klamor
    @Ashaman88
    @Citrus

    And others I might have forgotten!

    Here:
    https://villavu.com/forum/showthread.php?t=117175

    Step 1 and 2 wouldn’t be super hard I think.
    The 1.2 branch of srl6 does not differ that much anyway.

  15. #15
    Join Date
    Aug 2009
    Location
    Nova Scotia, Canada
    Posts
    599
    Mentioned
    0 Post(s)
    Quoted
    55 Post(s)

    Default

    I might be willing to help out. Not doing any scripting these days for no other reason than I cbf to implement my solution to getting everything working just to have it go obsolete when SRL finally catches up.

    I do have some work that might be useful: A redo of login screen that works with browser, nxt, and resizing. Few other things like that.
    Never ever approach a computer saying or even thinking "I will just do this quickly".

  16. #16
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,405
    Mentioned
    84 Post(s)
    Quoted
    855 Post(s)

    Default

    Seem to be getting an error

    Code:
    Error: Unknown declaration "ffi_stdcall" at line 28
    Compiling failed.
    That line is

    Code:
    ffi_winapi = {$IFDEF CPU386}ffi_stdcall{$ELSE}ffi_win64{$ENDIF};
    Any idea what's up?

  17. #17
    Join Date
    Jan 2012
    Posts
    549
    Mentioned
    2 Post(s)
    Quoted
    177 Post(s)

    Default

    @Twinki I ran into the same issue as Sin. Any advice on what I can do to fix it? (I got my account unbanned from 4-5 years ago so I'm trying to see how long round 2 lasts)

  18. #18
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,197
    Mentioned
    112 Post(s)
    Quoted
    1857 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Seem to be getting an error

    Code:
    Error: Unknown declaration "ffi_stdcall" at line 28
    Compiling failed.
    That line is

    Code:
    ffi_winapi = {$IFDEF CPU386}ffi_stdcall{$ELSE}ffi_win64{$ENDIF};
    Any idea what's up?
    Quote Originally Posted by Thanatos View Post
    @Twinki I ran into the same issue as Sin. Any advice on what I can do to fix it? (I got my account unbanned from 4-5 years ago so I'm trying to see how long round 2 lasts)
    Just judging from the compiler directives and which declaration isn't being found, you could try using 64-bit Simba
    GitLab projects | Simba for Linux | Find me on IRC or Discord | OSRS scripts | Come play ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  19. #19
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,405
    Mentioned
    84 Post(s)
    Quoted
    855 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Just judging from the compiler directives and which declaration isn't being found, you could try using 64-bit Simba
    Unfortunately I've tried both. The newer Simba gives me a whole new set of errors, something to do with plugins out of date. Plugin version seems to be at 22, but should be at 26.

  20. #20
    Join Date
    Dec 2011
    Posts
    445
    Mentioned
    26 Post(s)
    Quoted
    256 Post(s)

    Default

    Quote Originally Posted by Thanatos View Post
    @Twinki I ran into the same issue as Sin. Any advice on what I can do to fix it? (I got my account unbanned from 4-5 years ago so I'm trying to see how long round 2 lasts)
    Quote Originally Posted by Sin View Post
    Seem to be getting an error

    Code:
    Error: Unknown declaration "ffi_stdcall" at line 28
    Compiling failed.
    That line is

    Code:
    ffi_winapi = {$IFDEF CPU386}ffi_stdcall{$ELSE}ffi_win64{$ENDIF};
    Any idea what's up?
    Did you guys end up figuring out a fix? What file is this in btw. You will need either Simba 1.2 or 1.3, anything before is unsupported.

  21. #21
    Join Date
    May 2012
    Posts
    491
    Mentioned
    23 Post(s)
    Quoted
    227 Post(s)

    Default

    Do you guys have a 1.3 branch for srl6?

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
  •