GithubHelp home page GithubHelp logo

nas's Introduction

What it does

  • 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 any include for NXT
  • Supports drawing with WindowOverlay

What it doesn't do

  • Filter Bot/User Input

Why?

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

How?

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() or 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

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

program new;
{$I NAS\NAS.simba}

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

Drawing

You can use Olly's WindowOverlay Simba plugin to draw on external targets, be sure to create the overlay after NAS.init()

program new;
{$I NAS\NAS.simba}
{$loadlib libwindowoverlay}

var
  Overlay: TWindowOverlay;

begin
  NAS.EnableDebug();
  if (NAS.init()) then
  begin
    // `TargetWindow` not specified. Will use Simba's current target
    Overlay := TWindowOverlay.Create(); // by this point the current Simba target should be the NXT client, set by NAS.init()
    AddOnTerminate(@Overlay.Free);

    // Overlay.Bitmap is a TMufasaBitmap, let's draw a red rectangle.
    Overlay.Bitmap.Rectangle([100, 100, 200, 200], 255);
  end
end.

nas's People

Contributors

twinki14 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.