any-other-guy / LostArk-Endless-Chaos

💎Lost Ark Chaos Dungeon Farming Bot💎失落的方舟无限刷混沌地牢脚本
79 stars 49 forks source link

Mayhem Zerker support #63

Open BoredCoder95 opened 1 year ago

BoredCoder95 commented 1 year ago

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 commented 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

BoredCoder95 commented 1 year ago

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"]

chaos-andy commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago
bot.py doFloor1

bot.py diedCheck

bot.py healthCheck