PDA

View Full Version : Tavern question



johngnash
06-02-2007, 01:04 AM
I know this sounds stupid, but how does the Tavern Script (CLI?) work? I've tried finding documentation on how it works, how it determines the coordinates, etc. I can't find any documentation. Does it use a full 25 adventures? Does it stop when it finds the faucet? In the Prefs_****.txt file there is "tavernLayout=0101101001002131001000001".... I figured 1 and 0 are for the "non-important" spots, but is the faucet 2 or 3? Is there a way to have it read where the baron is and attack?

Personally I prefur to use my own code to do things, but I just cant figure out how this one works, or in the worse case how to access what the current tavern one does. Heck it would even be nice to have it figure out how to grind for whiskers (dunno just sounds fun)

Anyone have any help for me?

holatuwol
06-02-2007, 05:56 PM
It randomly chooses squares until it finds the faucet. It stops when it finds the faucet. If you continue exploring by hand afterwards, it continues to record what's in those squares.

0: unexplored
1: rat square
2: booze square
3: faucet
4: baron von ratsworth

johngnash
06-03-2007, 02:26 AM
That helps quite a bit, is that variable able to be called upon within mafia, or is it solely a open file directly?

Veracity
06-03-2007, 03:11 AM
get_property( "tavernLayout" );

macman104
06-03-2007, 05:49 PM
I could have sworn there was an ASH script someone had written that farmed certain squares. But I can't seem to find it anywhere...*shrug*

dangerpin
06-03-2007, 07:41 PM
http://kolmafia.us/index.php/topic,95.0.html

Talks about some tavern farming additions one user had done, I don't know if this is helpful or not.