Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mayhem Zerker support #63

Open
BoredCoder95 opened this issue May 23, 2023 · 6 comments
Open

Mayhem Zerker support #63

BoredCoder95 opened this issue May 23, 2023 · 6 comments

Comments

@BoredCoder95
Copy link

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)

@BoredCoder95
Copy link
Author

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

@BoredCoder95
Copy link
Author

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"]
+ (870 - config["healthCheckX"]) * config["healthPotAtPercent"] * 0.25
)
else:
x = int(
config["healthCheckX"]
+ (870 - config["healthCheckX"]) * config["healthPotAtPercent"]
)

@chaos-andy
Copy link

chaos-andy commented Jun 3, 2023

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("{"}")

@BoredCoder95
Copy link
Author

BoredCoder95 commented Jun 4, 2023

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

@chaos-andy
Copy link

chaos-andy commented Jun 4, 2023

A friend of me helped me about that issue. He added a line to modify the keybind just like in the picture below:

SS2023-06-04 210142

(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.

@BoredCoder95
Copy link
Author

bot.py doFloor1

bot.py diedCheck

bot.py healthCheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants