PDA

View Full Version : can_drink() and inebriety_limit() after Teet Path Drop



cjswimmer
09-14-2006, 04:13 PM
In one of my scripts I submit a URL using cli_execute to drop the Teetotaler path after getting Stomach of Steel:


cli_execute("account.php?action=unpath&pwd&confirm=on");
cli_execute("status refresh");

but I cannot find a way to get Mafia to update the can_drink() and inebriety_limit() responses now that the path has been dropped other than logging in again (the status refresh command on line 2 doesn't do it).* Is there a specific Mafia command I should use to drop the path or refresh the player characteristics?

holatuwol
09-14-2006, 06:50 PM
I actually disabled full refresh of the character sheet in order to prevent inefficient scripts gathering data you should already have using a simpler request -- all the refresh does is parse out the sidepane, just as KoLmafia does whenever you hit the refresh button on the main interface.

But, I didn't think about the changes that occur when you drop a path, or drop hardcore. KoLmafia will detect this and update all applicable flags in the next release.

cjswimmer
09-15-2006, 12:13 AM
Dunno if you've heard this lately, but you are DA MAN