Yu-Gi-Oh! Legacy of the Duelist

Yu-Gi-Oh! Legacy of the Duelist

View Stats:
Mors Dec 16, 2016 @ 1:54pm
AutoHotKey and pack opening automation
Hello, the last time I tried to do this, the software trial I was using for this just got expired, so, instead of editing that burried discussion, I thought I might start a new one.

Anyway, everybody knows that the process of opening packs is annoying, because you can only open one at a time and there's the revealing cards part which takes a lot of time per pack. So I thought, is there a way to make the pressing of a button automatic? Yes, there is, and it's using a program that's not used just for that, but to program a lot of repetitive tasks, AutoHotKey.

Here's the deal, you have to download the software and install it. If you want to learn more about it, you can, but it's not necessary now, now you do this:

0 - Have all of the booster packs unlocked, have tons of in-game points (you can farm in game or use a cheating program for this, I don't know how to use cheating programs, so I just farm with challenges, or quitting, nothing wrong with someone who does tho, it's more fun to have all the cards after cleaning the campaign and challenges, the faster the better) and the autohotkey installed

1 - Open the notepad and paste this code:

f8::
loop
{
Send, {1 down}
Sleep 50
Send, {1 up}
Sleep, 100
Send, {1 down}
Sleep 50
Send, {1 up}
Sleep, 100
Send, {1 down}
Sleep 50
Send, {1 up}
Sleep, 6200
Send, {1 down}
Sleep 50
Send, {1 up}
Sleep, 100
}
f9::Pause
f10::ExitApp

(f8 starts the program, f9 pauses/unpauses it and f10 closes it, for when you leave the game and don't want to accidentally start it when you press f9 to unpause it for whatver reason. All those buttons can be changed in the code above for whatever you want, just make sure the next button you are going to use doesn't cause problems for whatever reason. "1" is just a button I have remapped from the game, I believe the defaut is "a", so just change that according to your in game "accept" command)
This program takes into account the 3 presses before opening a pack, 6.2s of pack opening and the last press to get back to the packs menu.

2 - Saves it as whatever you want, but make sure to have .ahk in the end

3 - Run it

4 - Open the game, go to the booster pack shop, keep the mouse on the pack you want to be selected, and press f8 to start the grinding. Wait untill it's done (unfortunately I don't know how to run this in the background, so for now you will need to leave the PC doing it's thing and do something else). When you are done, move on to the next booster pack. With the packs done, make sure to go to the deck menu to save the cards you got.

5 - Some cards may be only inside a challenge, such as 3 Solemn Warnings, but I haven't heard anything else.

6 - Make your dream decks (DLC excluded if you didn't buy them)

That's just a way I got around the bad design of not being able to buy multiple booster packs. I heard that some people have keyboards (in the other topic I created) that can do this task, but if you don't have them, this is a way. If you have suggestions, feel free to say so.
< >
Showing 1-5 of 5 comments
Matriarch Dairy Dec 27, 2016 @ 11:15pm 
Hey mate, i tried this and it just moves it over to a diffrent pack and does nothing, any idea what i did wrong?
Mors Dec 28, 2016 @ 10:20am 
I don't know, try to see if there is a problem with the controls you set in-game. Just make sure the game is not using f8, f9 and f10 for anything and substitute the "1" in the code for whatever confirming button you set.
Matriarch Dairy Dec 28, 2016 @ 12:22pm 
It's alright, i ended up learning to make one myself, thanks for the reply though.
IUseModdedToast Feb 3, 2017 @ 3:28pm 
Originally posted by CancerDragon:
It's alright, i ended up learning to make one myself, thanks for the reply though.
Can you send me your script so i can use it? same thing is happening to me with the script provided.

Aruhito Oct 5, 2021 @ 12:42am 
Hey, I wanted to share this code that works better for me:
the key "k" starts and stops the loop that repeadetly presses enter
the key "L" closes the script

$k::
Toggler := !Toggler
if Toggler
gosub, Action
SetTimer, Action, % Toggler ? 100 : "off"
return

Action:
Sendinput, {Enter down}
sleep 50
Sendinput, {Enter up}
return

l::ExitApp
< >
Showing 1-5 of 5 comments
Per page: 1530 50