Skip to content

Instantly share code, notes, and snippets.

@KronosAFL
Last active November 19, 2024 02:03
Show Gist options
  • Save KronosAFL/baa87f8f26f95ec602507c2e4923079f to your computer and use it in GitHub Desktop.
Save KronosAFL/baa87f8f26f95ec602507c2e4923079f to your computer and use it in GitHub Desktop.
Last War: Survival - Auto First Lady (AFL) Bluestacks Script
DISCLAIMER: This script will loop through all positions other than First Lady and auto appoint every applicant on a FIRST COME FIRST SERVE basis and takes approximately 1.5 minutes per loop. This script will NOT:
- Dismiss a person from their position. As a workaround please ask someone else to take your position.
- Appoint another FL. If the AFL is down for some reason, the president must appoint another AFL OR contact the person who is hosting the bot directly.
Although this script has been tested, you can expect your game instance to close occasionally due to a server updates or unstable network connections.
1. Download and install Bluestacks X (https://www.bluestacks.com/download.html). You may try with Bluestacks 5, but it hasn't been tested with this script.
2. Open Bluestacks and install "Last War: Survival" on your Bluestacks instance.
3. Once installed, open the game (and optionally login to your Last War account).
4. On the right toolbar, you will see a keyboard icon (Game controls). Click on it and select "Controls editor".
5. Now that you are in editor mode, click and drag a "Script" control anywhere on the screen and name it "n" (this is the hotkey the initialization script is mapped to).
6. Click on the small blue icon on the bottom right of the "n" script and you should see a script editor show up on the right toolbar.
7. Paste this entire snippet into script "n", and then press "Done" on the bottom right:
## COPY START ##
wait 500
keyDown M
## COPY END ##
8. Next, drag another "Script" control anywhere on the screen and name it "m" (this is the hotkey the automation script is mapped to).
6. Click on the small blue icon on the bottom right of the "m" script and you should see a script editor show up on the right toolbar.
7. Paste this entire snippet into script "m", and then press "Done" on the bottom right:
## COPY START ##
loop
## Appoint Secretary of Strategy
# exit congratulations popup
tap 36.2245 79.0631
wait 250
# back to main secretary screen
tap 50 3
wait 250
tap 50 3
wait 250
# scroll up in case svs screen is active
mouseWheel 50.0 50.0 -1
wait 1000
# goto Stategy screen
tap 50 55.2581
wait 250
# goto applicants list
tap 86.0544 84.13
wait 250
# scroll to top of applicants list (scroll misfires every once in a while due to network or emulator latency)
loop 12
mouseWheel 50.0 50.0 1
wait 1000
loopEnd
# appoint the 5 earliest applicants
loop 5
tap 74.6599 22.6577
wait 250
loopEnd
## Appoint Secretary of Security
# exit congratulations popup
tap 36.2245 79.0631
wait 250
# back to main secretary screen
tap 50 3
wait 250
tap 50 3
wait 250
# scroll up in case svs screen is active
mouseWheel 50.0 50.0 -1
wait 1000
# goto Security screen
tap 70.4082 55.1625
wait 250
# goto applicants list
tap 86.0544 84.13
wait 250
# scroll to top of applicants list (scroll misfires every once in a while due to network or emulator latency)
loop 12
mouseWheel 50.0 50.0 1
wait 1000
loopEnd
# appoint the 5 earliest applicants
loop 5
tap 74.6599 22.6577
wait 250
loopEnd
## Appoint Secretary of Development
# exit congratulations popup
tap 36.2245 79.0631
wait 250
# back to main secretary screen
tap 50 3
wait 250
tap 50 3
wait 250
# scroll up in case svs screen is active
mouseWheel 50.0 50.0 -1
wait 1000
# goto Development screen
tap 27.2109 75.1434
wait 250
# goto applicants list
tap 86.0544 84.13
wait 250
# scroll to top of applicants list (scroll misfires every once in a while due to network or emulator latency)
loop 12
mouseWheel 50.0 50.0 1
wait 1000
loopEnd
# appoint the 5 earliest applicants
loop 5
tap 74.6599 22.6577
wait 250
loopEnd
## Appoint Secretary of Science
# exit congratulations popup
tap 36.2245 79.0631
wait 250
# back to main secretary screen
tap 50 3
wait 250
tap 50 3
wait 250
# scroll up in case svs screen is active
mouseWheel 50.0 50.0 -1
wait 1000
# goto Science screen
tap 49.8299 75.3346
wait 250
# goto applicants list
tap 86.0544 84.13
wait 250
# scroll to top of applicants list (scroll misfires every once in a while due to network or emulator latency)
loop 12
mouseWheel 50.0 50.0 1
wait 1000
loopEnd
# appoint the 5 earliest applicants
loop 5
tap 74.6599 22.6577
wait 250
loopEnd
## Appoint Secretary of Interior
# exit congratulations popup
tap 36.2245 79.0631
wait 250
# back to main secretary screen
tap 50 3
wait 250
tap 50 3
wait 250
# scroll up in case svs screen is active
mouseWheel 50.0 50.0 -1
wait 1000
# goto Interior screen
tap 69.898 76.2906
wait 250
# goto applicants list
tap 86.0544 84.13
wait 250
# scroll to top of applicants list (scroll misfires every once in a while due to network or emulator latency)
loop 12
mouseWheel 50.0 50.0 1
wait 1000
loopEnd
# appoint the 5 earliest applicants
loop 5
tap 74.6599 22.6577
wait 250
loopEnd
loopEnd
onRelease
abort
## COPY END ##
8. Now that you have scripts to start and stop FL automation, press Save on the bottom right, and close of the Controls Editor.
9. Go back to the game and press the Profile icon on the top left, then click on the Capitol with your server number to proceed to the server secretary screen.
10. Once you are at the secretary screen, press n on the keyboard to start the script, and press m to stop it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment