Here is a patch to add April Shower support in ClanLoungeRequest.java and a "shower" CLI command which understands the following parameters:
Also attached is a patch to add shower buttons in the Daily Deeds panel. I posted it separately because I simply added five buttons in a single row instead of breaking them down over several rows like the summon buttons. If having all five buttons on a single line turns out to be too much, the patch will need to be changed.
There is only one issue: when you visit
directly, and if you have already taken a shower, KoL sends you back to the VIP room with an empty "Results:" box instead of showing a message (like for the pool table).
For now, if you use the "shower" command after showering for the day, Mafia will print a "Huh? Unknown response." and won't set _aprilShower to true since there is no text to match.
I submitted a KoL bug report, and if they add a message that doesn't contain "already had a shower today", line 790 of ClanLoungeRequest.java will need to be changed to match the new text.
If they don't add a message, line 790 could be changed to match something like "<center><table><tr><td></td></tr></table></center>" instead of "already had a shower today".
Until then, you will need to visit "clan_viplounge.php?action=shower" or manually set _aprilShower to true for Mafia to know that you have taken a shower in vanilla KoL and grey out the Daily Deeds button.
Was it wrong of me to assume KoL will add an error message quickly?
Code:
hot, mp, warm, muscle, lukewarm, mysticality, cool, moxie, cold, ice
Also attached is a patch to add shower buttons in the Daily Deeds panel. I posted it separately because I simply added five buttons in a single row instead of breaking them down over several rows like the summon buttons. If having all five buttons on a single line turns out to be too much, the patch will need to be changed.
There is only one issue: when you visit
Code:
clan_viplounge.php?preaction=takeshower&temperature=1
For now, if you use the "shower" command after showering for the day, Mafia will print a "Huh? Unknown response." and won't set _aprilShower to true since there is no text to match.
I submitted a KoL bug report, and if they add a message that doesn't contain "already had a shower today", line 790 of ClanLoungeRequest.java will need to be changed to match the new text.
If they don't add a message, line 790 could be changed to match something like "<center><table><tr><td></td></tr></table></center>" instead of "already had a shower today".
Until then, you will need to visit "clan_viplounge.php?action=shower" or manually set _aprilShower to true for Mafia to know that you have taken a shower in vanilla KoL and grey out the Daily Deeds button.
Was it wrong of me to assume KoL will add an error message quickly?
Attachments
Last edited: