Open BoredCoder95 opened 1 year ago
If you wanted to differentiate between zerker technique and mayhem, could just do something like the following in the character file berserker_mayhem berserker_technique
Also edited the healthCheck() to support mayhem zerker (as the default has issues with only having 25% of the max hp)
if config["characters"][states["currentCharacter"]]["class"] == "berserker_mayhem": x = int( config["healthCheckX"]
I use tilde key instead of Z for identity 1, so how can I set the the bot to use it without any issues ? Does below do the job ?
pydirectinput.press("{"}")
Like this:
pyautogui.press('~')
Or, you can use this site to figure out how to use other keys https://pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys
A friend of me helped me about that issue. He added a line to modify the keybind just like in the picture below:
(That link is in the bot.py file and it is under "def doFloor1():" section. And all of my characters use " key instead of Z for their identity 1 now, not just Berzerker.)
But he couldnt inject your berserker mayhem modification for Z and healing potion usage. Would be nice if you can upload your modified bot.py here or at least show us your modified parts with some screenshots.
I added the below to the doFloor1() and diedCheck() functions, so that mayhem zerker will re-enter mayhem upon starting chaos, or if he dies.
if config["characters"][states["currentCharacter"]]["class"] == "berserker": pydirectinput.press("z") sleep(50, 60)