mapledyne
Member
Has anyone come up with a good way to automate time pranks?
Representative code of what I'm doing now:
can_spin_time() just looks for the spinner and checks available time remaining. It's been working pretty reliably both for manual checks and for future/past visits. (happy to send that code if helpful - I was just trying to keep things to a minimum for clarity).
My problem is that this code works great once, then a second run of it and KoL gets caught in the choice to time prank, go into the future, etc. If I open the relay browser, I'll be at that choice. Clicking out let's me successfully prank one more time, with the second one getting stuck. I can adventure (both via script and via relay browser) between the two runs and the results are the same - every other one stops at the choice page.
I'd love to see anyone else's solution to time pranking, if anyone has developed it.
Thanks!
Representative code of what I'm doing now:
Code:
boolean time_prank(string player, string msg)
{
if (!can_spin_time())
false;
string url = "choice.php?pwd&whichchoice=1198&option=1&pl="+url_encode(player)+"&th="+url_encode(msg);
visit_url("inv_use.php?pwd=&which=3&whichitem=9104");
visit_url("choice.php?pwd&whichchoice=1195&option=5");
visit_url(url);
return true;
}
can_spin_time() just looks for the spinner and checks available time remaining. It's been working pretty reliably both for manual checks and for future/past visits. (happy to send that code if helpful - I was just trying to keep things to a minimum for clarity).
My problem is that this code works great once, then a second run of it and KoL gets caught in the choice to time prank, go into the future, etc. If I open the relay browser, I'll be at that choice. Clicking out let's me successfully prank one more time, with the second one getting stuck. I can adventure (both via script and via relay browser) between the two runs and the results are the same - every other one stops at the choice page.
I'd love to see anyone else's solution to time pranking, if anyone has developed it.
Thanks!