automatically log into your NS nations to avoid CTE.
Do Not Hesitate to send pull requests if you have suggestions!!
- Download Windows folder from the repository.
- Open ns.bat script and change
- YourUserAgent to your user agent (e.g. your email address. see the API documentation)
- YourNationName to your nation name (if your nation has a space in the name, use _ (underscore) instead of the space. E.g. "My Nation" will be "my_nation" (Do Not Use quotes))
- YourNationPassword to your nation password
- path/to/msg.vbs to the path where the msg.vbs is located. This file is for alerting whether the log in was successful or not. E.g. if the file is on Desktop in Windows folder then you change it into C:\Users\YourAccountName\Desktop\Windows\msg.vbs
and SAVE it
- if you want the script to be run every time you turn on your computer then
- Press Windows + R key to open Run
- type shell:startup and OK
- and place the ns.bat file there
So it will be run on startup
Adding more nations
Just copy paste everything from setlocal
to endlocal
except USERAGENT and change variables (E.g. NATION1 to NATION2 in the pasted script and PASSWORD1 to PASSWORD2)
- Download Linux folder
- Make sure you give persmissions to ns.sh (chmod 777)
- Open ns.sh and change
- YourUserAgent to your user agent (e.g. your email address. see the API documentation)
- YourNationName to your nation name (if your nation has a space in the name, use _ (underscore) instead of the space. E.g. "My Nation" will be "my_nation" (Do Not Use quotes))
- YourNationPassword to your nation password
- put ns.sh into startup.
- If you're using Ubuntu just search for "Startup Applications" and add it there. On other distros find some online tutorial how to add files to startup.
Adding more nations
To add more nations just copy paste everything except the very first line and the USERAGENT and rename variables. (E.g. NATION1 to NATION2 in the pasted script and PASSWORD1 to PASSWORD2)
on Linux cURL is pre-installed.
For Windows follow the tutorial
Please read about Rate Limits If you add too many nations you may get banned for 15 min for sending too many requests. I am currently working on this rate limit.
See updates bellow
1/10/2021 - On Linux the script takes 1-1.71 seconds to log into ONE nation. Which means in 30 seconds it can log into 17-30 nations;
Tested on 50 nations (on Linux). It took 52 seconds! So basically it is impossible to exceed the rate limit on my computer. I don't know how it will work on other machines though. My CPU is Ryzen 7 3750H
2/10/2021 - added nsGUI.sh in Linux. I made a GUI version for adding nations. It can alse run on startup