1 место в Евразии в Shadow Fight 3 без проблем | Или как создать бота-дуэлянта

Опубликовано: 20 Июль 2023
на канале: Oleg Savchenko
78
2

BLUESTACKS:
https://www.bluestacks.com/

PYTHON 3.8:
https://www.python.org/downloads/rele...

BOT'S CODE:

import keyboard
import random
import time
from threading import Thread

time.sleep(5)

def press_keys():
while True:
Rabdom choise A or D
key = random.choice(['a', 'd'])
Creating a thread for pressing J
press_thread = Thread(target=press_key, args=(key, 'j'))
press_thread.start()
Paue 200 ms
time.sleep(0.2)

def press_key(key, simultaneous_key):
Pressing the selected key
keyboard.press(key)
keyboard.press(key)
Pressing the J key
keyboard.press(simultaneous_key)
keyboard.press(simultaneous_key)
Pause 200 ms
time.sleep(0.2)
Releasing the selected key and the J key
keyboard.release(key)
keyboard.release(simultaneous_key)

def press_x():
while True:
Pause 4 s
time.sleep(4)
Key X pressing
keyboard.press('x')
Key X releasing
keyboard.release('x')

Creating a thread for pressing the X key
x_thread = Thread(target=press_x)
x_thread.start()
Calling a function to press the W or D keys
press_keys()

#python #shadowfight3 #bot #top1