mirror of
https://github.com/rawrafied/LastWarBot.git
synced 2026-04-16 08:52:20 +00:00
- a recreation of the auto-clicker app VP functionality with the Windows App version of Last War. - Additional functionalities: ---- Retarts the app every 5 mins. ---- Has functionality to check for pop-ups when app reloads (currently only handles lot domino) - Additional Files: ---- Has bare-bone scripts for alternative bot methods: via bluestacks/adb or using library pywin instead of win32. ---- Has initial import of image-processing library pytesseract. ---- Has image reference folder of some images to be used to optimize the bot. - Limitations: ---- Has to use mouse cursor (doesn't work in background) ---- Initial game file to launch is hard coded for dev location ---- Click locations associated with dev environment dimmensions, not dynamically derived.
34 lines
758 B
Python
34 lines
758 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
INITIAL CREATION: Rawrafied 1/3/25
|
|
DESCRIPTION:
|
|
- Main script to instantiate Last War Bot environment.
|
|
"""
|
|
# LIBRARY IMPORTS: ################################
|
|
#import sys
|
|
#import os
|
|
#import subprocess
|
|
#path = os.getcwd() # Check current directory's path
|
|
|
|
#import pytessract
|
|
|
|
# BOT LIBRARY FILES
|
|
import adbserver_manager
|
|
|
|
# TESTING VARIABLES: ##############################
|
|
# Variables:
|
|
verbose = 1
|
|
|
|
if verbose:
|
|
print ("test")
|
|
|
|
# VPBOT CLASS FUNCTIONS: ##########################
|
|
# MAIN FUNCTION:
|
|
def main():
|
|
print("INITIALIZING VPBOT INTELLIGENCE ASSISTANCE CODE")
|
|
adbmgr = adbserver_manager.adbserver_manager(verbose)
|
|
|
|
|
|
# MAIN SOFTWARE ###################################
|
|
if __name__ == '__main__':
|
|
main() |