I'm trying to make a buffbot script which relies on the time_to_string() function, trying to make it work from 00:50 AM to 00:00 AM (rollover is at around 00:30 AM for me).
I started messing around with that function figuring out how to work it into the script, until I got to this:
Now, I've run into a wall, because of the repeat until, which always returns this:
Now, I can't figure out what I'm doing wrong there. Another thing I can't figure out is, if I remove the repeat, the script works, but the script does nothing at all, not even the stuff before the while. How do I fix this?
On another note. Would it be possible to have the script add the people who got buffed by my buffbot throughout the day to a list, which would later be used in buff raffles (kind of like KingdomOfBuffing did)?
Thanks for all the help.
I started messing around with that function figuring out how to work it into the script, until I got to this:
Code:
boolean time1 = time_to_string() >= "00:00:00 BRT";
boolean time2 = time_to_string() <= "00:50:00 BRT";
boolean time3 = time_to_string() > "00:50:00 BRT";
boolean time4 = time_to_string() < "23:59:59 BRT";
if (my_inebriety() >= 20)
{
boolean use_familiar() ($familiar[disembodied hand]);
boolean maximize(string MP);
boolean equip() ($item[jewel-eyed wizard hat]);
boolean use() ($item[WANG]);
void chat_clan() ("HastyBuffer is online and Buffing!");
while (time3 == true && time4 == true)
{
boolean cli_execute() ("buffbot 10");
repeat until (time1 == true && time2 == true)
}
boolean maximize(string adv);
boolean cli_execute() ("exit");
}
Now, I've run into a wall, because of the repeat until, which always returns this:
KoLMafia gCLI said:Function 'until( boolean )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (TESTBUFFING.ash, line 19)
Now, I can't figure out what I'm doing wrong there. Another thing I can't figure out is, if I remove the repeat, the script works, but the script does nothing at all, not even the stuff before the while. How do I fix this?
On another note. Would it be possible to have the script add the people who got buffed by my buffbot throughout the day to a list, which would later be used in buff raffles (kind of like KingdomOfBuffing did)?
Thanks for all the help.