Hi guys, Newbie coder here--
I wrote this small script to remove Cunctatitis automatically, and it used to work just fine. Recently after updating KoLmafia, I get a "stack overflow" error message whenever it gets to the 'else' clause. Any idea what's causing this problem?
It visits the hottub just fine, but whenever it runs out of hottub uses it prints "Removing Cunctatitis" many times and crashes.
Also, when I disable this script and type "uneffect cunctatitis" in the CLI, it works fine.
Thanks,
BigNinja
I wrote this small script to remove Cunctatitis automatically, and it used to work just fine. Recently after updating KoLmafia, I get a "stack overflow" error message whenever it gets to the 'else' clause. Any idea what's causing this problem?
Code:
if (to_int(get_property ("_hotTubSoaks")) < 5 && item_amount($item[clan vip lounge key]) > 0)
{
cli_execute("hottub");
}
else
{
print("Removing Cunctatitis","blue");
cli_execute("uneffect cunctatitis");
}
It visits the hottub just fine, but whenever it runs out of hottub uses it prints "Removing Cunctatitis" many times and crashes.
Also, when I disable this script and type "uneffect cunctatitis" in the CLI, it works fine.
Thanks,
BigNinja