Skip to content

wwwwwwzx/PyNXBot

Repository files navigation

PyNXBot

Python Lib for Pokemon Sword and Shield, including many bots!

toxricity

Warning

I won't be liable if your Switch get damaged or banned. Use at your own risk.

Features

SwSh:

  • Check Dens info
  • Check Wilds info
  • Check Party Pokémon info
  • Check Box Pokémon info
  • Check Save info

Bots

SwSh:

  • RaidFinder - useful to softreset Den Seed (Event Raids, Rare Beam Raids, perfect IVs, Shininess at low frames, etc.)
  • StarsFinder - useful to softreset Den Species + Stars
  • BerryPicker - useful to farm berries/apricorns from trees
  • ASpammer - useful to spam A button during boring dialogues, can be used also to farm Items in Cram-o-Matic machine
  • LegendaryFinder - useful to softreset Legendary (incoming...)

Requirements

  • Python
    • Install z3-solver and pyserial via pip if ImportError happens. pip install z3-solver pip install pyserial
  • CFW
  • Internet Connection
  • sys-botbase
  • ldn_mitm (SwSh only)
  • Luxray (only for some bots, SwSh only)

Usage

Use CaptureSight/CheckDen script to check your Den id

Raid Finder:

  1. Connect your Switch to Internet
  2. Start sys-botbase and ldn_mitm
  3. Go to System Settings, check your Switch IP and write it inside the config.json file
  4. Start the game and set game text speed to normal
  5. Save in front of an empty Den and leave the game opened. You must have at least one Wishing Piece in your bag
  6. Modify research filters inside the script according to what is written below
  7. Run the script
  • Util(GameVersion.SWSH).STRINGS.natures[r.Nature] == "<Nature>" (i.e. Util(GameVersion.SWSH).STRINGS.natures[r.Nature] == "Timid")
  • r.Ability == 1/2/"H"
  • r.ShinyType == "None"/"Star"/"Square" (!= "None" for both Square/Star shiny type)
  • r.IVs == spread_name (spread_name = [x,x,x,x,x,x])
  • Util(GameVersion.SWSH).GenderSymbol[r.Gender] == "♂"/"♀"/"-"

Stars Finder:

  1. Connect your Switch to Internet
  2. Start sys-botbase, ldn_mitm and luxray (the yellow cursor of luxray has to be over +3 button)
  3. Go to System Settings, check your Switch IP and write it inside config.json file
  4. Start the game, save in front of an Den whose beam has been generated through a Wishing Piece and leave the game opened
  5. Run the script

Stationary Finder:

  1. Connect your Switch to Interet
  2. Start sys-botbase and ldn_mitm
  3. Go to System Settings, check your Switch IP and write it inside the config.json file
  4. Save in front of a stationary and leave the game opened
  5. Modify research filters inside the script according to what is written below
  6. Run the script
  • pk8.getAbilityString() == 1/2/"H"
  • Util(GameVersion.SWSH).STRINGS.natures[pk8.nature()] == "<Nature>"
  • pk8.shinyString() == "None"/"Star"/"Square" (!= "None" for both star/square)
  • pk8.IVs == spread_name (spread_name = [x,x,x,x,x,x])
  • Util(GameVersion.SWSH).GenderSymbol[pk8.gender()] == "♂"/"♀"/"-"

GUI in Python: NXController

This is a port from C++, please check more details from my prior project.

  1. Install the PyQt5 module via pip: pip install pyqt5
  2. Connect your Switch to Internet or Arduino
  3. Go to System Settings, check your Switch IP
  4. Run the script. The Qt Gui will pop up.

You may change the button setting by editing the json file according to this website. Please note that only decimal numbers are allowed in json.

Features for fun

Use the binaries and structures from your browsers (iOS, Android): Binder. You may have to expose your switch to the internet.

Always Remember!

Sometimes button inputs of your joycons won't work. This because the fake controller isn't detached from your Switch. So, everytime you want to stop the bot, always press CTRL+C and follow the instructions. The bot will detach the fake controller and buttons will work correctly.

Credits:

About

Python library for Pokemon Switch titles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors