Thanks for the tip! I'll take a look at it, but not right now. My day job is currently demanding more of my time. I think the script is in a good state with the latest revision.
Concerning the inventory checkpoints, I poked around in the gCLI and figured out how to use them. Thanks for that...
I've incorporated everyone's suggestions except relying on Mafia's MP restore:
I thought about that, but I want to keep the check. If it were my script and character, I wouldn't want to burn expensive consumables to cast a bunch of 1MP buffs. Folks can always use the MP restorers ahead of...
Thanks for the feedback, folks! 😁
@MCroft
I thought about the permed skills problem last night. What if someone wants to use the script but only has one (or two, or whatever) of the trivial skills instead of all of them? I think I'll modify the script to detect which trivial skills you have...
What Is This?
I wrote a simple script to automate casting the so-called trivial skills an arbitrary number of times. These skills are the starting buffs for each class, 1 MP for 5 adventures of a weak buff. I HC-permed all of these skills to claim the trophy. They're not awesome, but they are...
I noticed that too. :( I fixed my copy of BatBrain by replacing every instance of "rng" found in lines 427-430 with "rang" instead. It's hacky, but it seems to work.
We have several versions of Java 21 available nowadays. Which one are you running?
FWIW, I'm running the Microsoft build of Java 21 on Windows 11 Pro. I have no problems with running mafia:
PowerShell 7.4.6
PS C:\Scripts> java --version
openjdk 21.0.4 2024-07-16 LTS
OpenJDK Runtime Environment...
That'll work. For maximum lazin... convenience, you can also use a CMD file. Just create another text file in the same folder. Paste the following contents into it:
@echo off
%windir%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command "& '%~dpn0.ps1'"
Then rename the...
I like those ideas, but I'm not sure that you're posting them in the right place. KoLmafia is an unofficial Java-based client for the Kingdom of Loathing (KoL), and these are the KoLmafia forums. The KoL staff might or might not visit these forums. I honestly don't know. 🤷♂️
You might get more...
So that bit of inefficiency always bugged me, but I wasn't sufficiently motivated to fix it. Your public shaming (;)) gave me that missing motivation. The code in the original post now checks to see if you already have the current version and won't waste time downloading a duplicate.
Thanks for...
Ooh, nice improvement! Thanks for the suggestion.
Thanks also for mentioning the PowerShell execution policy. I tend to forget them because I set mine long ago, but they are certainly a thing. I'll add a note to the original post if I can.
Like fronobulax mentioned, the move to GitHub seems to have broken this auto-updater. I also used it, and I was sad when it stopped working. So I wrote a PowerShell script that serves the same purpose: https://kolmafia.us/threads/powershell-to-auto-update-kolmafia.29816/
I know, it isn't an...
My experience is the same as xKiv. When I break the prism and "pull all," KoLmafia always takes longer than expected. It's been that way for at least a year now. I don't think it's new behavior.
For my part, I always logout of KoLmafia and logon again after I break the prism and grab all my...