EatDrink.ash: Optimize your daily diet (and see how your old diet stacks up).

Bale

Minion
Suggestion: I've often been in a position where I have three songs in my head, but EatDrink cannot cast Ode to Booze because it doesn't know to equip my Brimstone Beret, plexiglass pendant or super-sweet boom box. It would be awesome if EatDrink would swap my gear before trying to cast Ode. It's not too hard to make this happen.

EatDrink already does a checkpoint at the beginning of the script and an outfit checkpoint at the end. That will suffice to ensure my gear is restored after drinking.

Change line 1359-60 from:

Code:
        if (!use_skill( 1 , $skill[Ode to Booze]))
          wants_ode = false;

to

Code:
        if (!get_ode())
          wants_ode = false;

And add this before those lines:

Code:
boolean maxed_songs()
{
	int max_song = (boolean_modifier("Four Songs")? 4: 3)
		+ (boolean_modifier("Additional Song")? 1: 0);
	int current_at = 0;
	for song from 6001 to 6040
	{
		if(song == 6025) continue;  // Fuzzy matching leads to Singer's Faithful Ocelot
		if(song.to_skill().to_effect().have_effect() > 0)
			current_at += 1;
	}
	return current_at >= max_song;

}

boolean get_ode() 
{
	if(have_effect($effect[Ode To Booze]) < 1 && maxed_songs())
	{
		if(!boolean_modifier("Four Songs"))
			maximize("Four Songs -tie", false);
		else if(!boolean_modifier("Additional Song"))
			maximize("Additional Song -tie", false);
		if(maxed_songs())
		{print(maxed_songs());
			print("Too many AT songs to cast Ode to Booze", "red");
			return false;
		}
	}
	if(have_skill($skill[The Ode To Booze]))
	{
		if(my_mp()< mp_cost($skill[The Ode To Booze]))
		{
			restore_mp(mp_cost($skill[The Ode To Booze]));
			if(my_mp()< mp_cost($skill[The Ode To Booze]))
			{
				print("Can't cast Ode to Booze due to lack of MP!", "red");
				return false;
			}
		}
		use_skill(1, $skill[The Ode To Booze]);
		if(have_effect($effect[Ode To Booze]) <1)
			return false;
	} else return false;
	return true;
}
 

Theraze

Active member
Sure. Minor changes due to formatting, EatDrink using vprint rather than print, etc, but we should enter something like that into the system shortly after rollover.

Since we already have a get_ode(drink), changed that function to cast_ode() to reduce reader confusion. Additionally, since people can get +2 songs, and may not be having either modifier, we need to try to go for maximum maximization there... maximizing for one or the other won't necessarily succeed. Let's try for both.
 

Magus_Prime

Well-known member
Is there any way to make the gCLI buffer larger or to direct the output from a command to a file?
I don't see any TPS drinks in what the buffer retained and it flies by too fast to read when it's happening.

Here is partial output with verbosity set to 7:

Code:
dry martini is too fattening (3.0)- removing from consideration.
shot of peach schnapps is too fattening (2.0)- removing from consideration.
plum wine is too fattening (2.0)- removing from consideration.
cool mushroom wine is too fattening (3.0)- removing from consideration.
Crazymaker is too fattening (2.0)- removing from consideration.
flaming mushroom wine is too fattening (3.0)- removing from consideration.
icy mushroom wine is too fattening (3.0)- removing from consideration.
bottle of realpagne is too fattening (2.0)- removing from consideration.
elven moonshine is too fattening (3.0)- removing from consideration.
dry vodka martini is too fattening (3.0)- removing from consideration.
flat mushroom wine is too fattening (3.0)- removing from consideration.
eggnog is too fattening (3.0)- removing from consideration.
salinated mint julep is too fattening (2.0)- removing from consideration.
Plague of Locusts is too fattening (2.0)- removing from consideration.
white lightning is too fattening (3.0)- removing from consideration.
vodka martini is too fattening (3.0)- removing from consideration.
martini is too fattening (3.0)- removing from consideration.
extra-spicy bloody mary is too fattening (3.0)- removing from consideration.
cursed bottle of black-label rum is too fattening (3.0)- removing from consideration.
oily mushroom wine is too fattening (3.0)- removing from consideration.
spooky eggnog is too fattening (3.0)- removing from consideration.
bottle of Pinot Renoir is too fattening (2.0)- removing from consideration.
tequila with training wheels is too fattening (3.0)- removing from consideration.
backwoods screwdriver is too fattening (3.0)- removing from consideration.
Jackhammer is too fattening (2.0)- removing from consideration.
sangria is too fattening (3.0)- removing from consideration.
Slippery Knob is too fattening (2.0)- removing from consideration.
Slimebite is too fattening (2.0)- removing from consideration.
tobiko-infused sake is too fattening (3.0)- removing from consideration.
wasabi-infused sake is too fattening (3.0)- removing from consideration.
natto-infused sake is too fattening (3.0)- removing from consideration.
old-fashioned is too fattening (3.0)- removing from consideration.
grog is too fattening (3.0)- removing from consideration.
carrot claret is too fattening (3.0)- removing from consideration.
elven squeeze is too fattening (3.0)- removing from consideration.
Earth, Wind and Firewater is too fattening (2.0)- removing from consideration.
nanite-infested eggnog is too fattening (3.0)- removing from consideration.
Event Horizon is too fattening (2.0)- removing from consideration.
Transylvania Sling is too fattening (2.0)- removing from consideration.
Sloe Comfortable Zoo is too fattening (2.0)- removing from consideration.
gibson is too fattening (3.0)- removing from consideration.
water purification pills is too fattening (3.0)- removing from consideration.
vodka gibson is too fattening (3.0)- removing from consideration.
Drac & Tan is too fattening (2.0)- removing from consideration.
papaya slung is too fattening (3.0)- removing from consideration.
snifter of thoroughly aged brandy is too fattening (2.0)- removing from consideration.
flute of flat champagne is too fattening (2.0)- removing from consideration.
beertini is too fattening (3.0)- removing from consideration.
mulled cider is too fattening (3.0)- removing from consideration.
spiced rum is too fattening (3.0)- removing from consideration.
salty slug is too fattening (3.0)- removing from consideration.
Zoodriver is too fattening (2.0)- removing from consideration.
canteen of wine is too fattening (3.0)- removing from consideration.
tomato daiquiri is too fattening (3.0)- removing from consideration.
vodka and cranberry is too fattening (3.0)- removing from consideration.
banana daiquiri is too fattening (3.0)- removing from consideration.
redrum is too fattening (3.0)- removing from consideration.
Blackfly Chardonnay is too fattening (3.0)- removing from consideration.
Humanitini is too fattening (2.0)- removing from consideration.
whiskey and cola is too fattening (3.0)- removing from consideration.
papaya sling is too fattening (3.0)- removing from consideration.
lumbering jack is too fattening (3.0)- removing from consideration.
salty dog is too fattening (3.0)- removing from consideration.
monkey wrench is too fattening (3.0)- removing from consideration.
Typical Tavern swill is too fattening (3.0)- removing from consideration.
strawberry wine is too fattening (3.0)- removing from consideration.
wine spritzer is too fattening (3.0)- removing from consideration.
rum and cola is too fattening (3.0)- removing from consideration.
strawberry daiquiri is too fattening (3.0)- removing from consideration.
margarita is too fattening (3.0)- removing from consideration.
bloody mary is too fattening (3.0)- removing from consideration.
screwdriver is too fattening (3.0)- removing from consideration.
whiskey sour is too fattening (3.0)- removing from consideration.
whiskey and soda is too fattening (3.0)- removing from consideration.
tequila sunrise is too fattening (3.0)- removing from consideration.
White Hyborian is too fattening (3.0)- removing from consideration.
Aye Aye, Tooth Tooth is too fattening (2.0)- removing from consideration.
oozenog is too fattening (3.0)- removing from consideration.
Fuzzy Tentacle is too fattening (2.0)- removing from consideration.
Green Burlap is too fattening (2.0)- removing from consideration.
white Canadian is too fattening (3.0)- removing from consideration.
moonberry wine cooler is too fattening (3.0)- removing from consideration.
Aura Libre is too fattening (2.0)- removing from consideration.
bottle of Lieutenant Freeman is too fattening (3.0)- removing from consideration.
rabbit punch is too fattening (3.0)- removing from consideration.
bottle of Jorge Sinsonte is too fattening (3.0)- removing from consideration.
bottle of Domesticated Turkey is too fattening (3.0)- removing from consideration.
boxed champagne is too fattening (3.0)- removing from consideration.
bottle of Definit is too fattening (3.0)- removing from consideration.
bottle of Calcutta Emerald is too fattening (3.0)- removing from consideration.
parisian cathouse is too fattening (3.0)- removing from consideration.
Sazerorc is too fattening (2.0)- removing from consideration.
accidental cider is too fattening (3.0)- removing from consideration.
Mohobo is too fattening (2.0)- removing from consideration.
bilge wine is too fattening (3.0)- removing from consideration.
bottle of popskull is too fattening (2.0)- removing from consideration.
bottle of cooking sherry is too fattening (2.0)- removing from consideration.
Great Old Fashioned is too fattening (2.0)- removing from consideration.
tequila sunset is too fattening (3.0)- removing from consideration.
vodka and tonic is too fattening (3.0)- removing from consideration.
zmobie is too fattening (3.0)- removing from consideration.
mimosette is too fattening (3.0)- removing from consideration.
caipifruta is too fattening (3.0)- removing from consideration.
whiskey bittersweet is too fattening (3.0)- removing from consideration.
gin and tonic is too fattening (3.0)- removing from consideration.
bottle of Pete's Sake is too fattening (3.0)- removing from consideration.
Moonshine Mohobo is too fattening (2.0)- removing from consideration.
teqiwila is too fattening (3.0)- removing from consideration.
Red Dwarf is too fattening (2.0)- removing from consideration.
Cement Mixer is too fattening (2.0)- removing from consideration.
soyburger juice is too fattening (2.0)- removing from consideration.
screwdiver is too fattening (3.0)- removing from consideration.
More Humanitini than Humanitini is too fattening (2.0)- removing from consideration.
Mad Train wine is too fattening (3.0)- removing from consideration.
dew yoana lei is too fattening (3.0)- removing from consideration.
Golden Mean is too fattening (2.0)- removing from consideration.
sham champagne is too fattening (2.0)- removing from consideration.
bottle of rum is too fattening (3.0)- removing from consideration.
boxed wine is too fattening (3.0)- removing from consideration.
ice-cold fotie is too fattening (3.0)- removing from consideration.
bottle of whiskey is too fattening (3.0)- removing from consideration.
bottle of vodka is too fattening (3.0)- removing from consideration.
bottle of gin is too fattening (3.0)- removing from consideration.
Sazuruk-hai is too fattening (2.0)- removing from consideration.
bottle of tequila is too fattening (3.0)- removing from consideration.
slug of rum is too fattening (3.0)- removing from consideration.
slug of shochu is too fattening (3.0)- removing from consideration.
slug of vodka is too fattening (3.0)- removing from consideration.
Aye Aye, Captain is too fattening (2.0)- removing from consideration.
bottle of sake is too fattening (3.0)- removing from consideration.
lychee chuhai is too fattening (3.0)- removing from consideration.
Candy Alexander is too fattening (2.0)- removing from consideration.
Slimosa is too fattening (2.0)- removing from consideration.
Chakra Libre is too fattening (2.0)- removing from consideration.
Locust is too fattening (2.0)- removing from consideration.
Aye Aye is too fattening (2.0)- removing from consideration.
Firewater is too fattening (2.0)- removing from consideration.
Buttery Knob is too fattening (2.0)- removing from consideration.
Punchplanter is too fattening (2.0)- removing from consideration.
Fauna Libre is too fattening (2.0)- removing from consideration.
Lollipop Drop is too fattening (2.0)- removing from consideration.
Suffering Sinner is too fattening (2.0)- removing from consideration.
ridiculous cocktail is too fattening (3.0)- removing from consideration.
Candicaine is too fattening (2.0)- removing from consideration.
green eggnog is too fattening (3.0)- removing from consideration.
corpsebite is too fattening (3.0)- removing from consideration.
The Cooler Out of Space is too fattening (2.0)- removing from consideration.
purple corpsel is too fattening (3.0)- removing from consideration.
If there are favorites still in consideration, they'll be here:
Acqua Del Piatto Merlot is too expensive (300000000)- removing from consideration.
Acque Luride Grezze Cabernet is too expensive (999999998)- removing from consideration.
Uovo Marcio Shiraz is too expensive (300000000)- removing from consideration.
Maiali Sifilitici Pinot Noir is too expensive (300000000)- removing from consideration.
Spasmi Dolorosi Del Rene Champagne is too expensive (999999998)- removing from consideration.
Ferita Del Petto Zinfandel is too expensive (999999998)- removing from consideration.
bottle of single-barrel whiskey is too expensive (205000)- removing from consideration.
around the world is too expensive (999999999)- removing from consideration.
Grimacite Bock is too expensive (20000000)- removing from consideration.
Oreille Divisée brandy is too expensive (999999999)- removing from consideration.
Pan-Dimensional Gargle Blaster is too expensive (999999999)- removing from consideration.
red-headed corpse is too expensive (75000)- removing from consideration.
kamicorpse-ee is too expensive (65000)- removing from consideration.
jar of fermented pickle juice is too expensive (66999)- removing from consideration.
Ralph IX cognac is too expensive (999998)- removing from consideration.
Hodgman's blanket is too expensive (52570)- removing from consideration.
giant glass of brandy is too expensive (125000)- removing from consideration.
bottle of peppermint schnapps is too expensive (64000)- removing from consideration.
salacious screwdiver is too expensive (10500)- removing from consideration.
salacious lychee chuhai is too expensive (11000)- removing from consideration.
decanter of fine Scotch is too expensive (67500)- removing from consideration.
expired bottle of peppermint schnapps is too expensive (710000)- removing from consideration.
missing wine is too expensive (999999999)- removing from consideration.
Cinco Mayo Lager is too expensive (200000)- removing from consideration.
bone aperitif is too expensive (120000)- removing from consideration.
CRIMBCO wine is too expensive (999999999)- removing from consideration.
marshmallow flambé is too expensive (120000)- removing from consideration.
cranberry schnapps is too expensive (195000)- removing from consideration.
breaded beer is too expensive (250000)- removing from consideration.
soy cordial is too expensive (350000)- removing from consideration.
honey mead is too expensive (999999999)- removing from consideration.
Grasshopper is too expensive (13000)- removing from consideration.
Suppurating Sinner is too expensive (14973)- removing from consideration.
Sizzling Sinner is too expensive (19000)- removing from consideration.
Earth and Firewater is too expensive (13888)- removing from consideration.
Extra-slimy Slimosa is too expensive (10950)- removing from consideration.
Green Velvet is too expensive (15000)- removing from consideration.
Green Muslin is too expensive (12998)- removing from consideration.
Drunken Philosopher is too expensive (37000)- removing from consideration.
Drunken Neurologist is too expensive (35000)- removing from consideration.
Drunken Astrophysicist is too expensive (30000)- removing from consideration.
Dark & Starry is too expensive (13034)- removing from consideration.
Black Hole is too expensive (12998)- removing from consideration.
Herring Daiquiri is too expensive (11389)- removing from consideration.
Herring Wallbanger is too expensive (38750)- removing from consideration.
Herringtini is too expensive (27000)- removing from consideration.
Caipiranha is too expensive (11000)- removing from consideration.
Flying Caipiranha is too expensive (13000)- removing from consideration.
Flaming Caipiranha is too expensive (17250)- removing from consideration.
Doublepunchplanter is too expensive (13995)- removing from consideration.
Haymaker is too expensive (18600)- removing from consideration.
If there are favorites still in consideration, they'll be here:
Acqua Del Piatto Merlot is too expensive (300000000)- removing from consideration.
Acque Luride Grezze Cabernet is too expensive (999999998)- removing from consideration.
Uovo Marcio Shiraz is too expensive (300000000)- removing from consideration.
Maiali Sifilitici Pinot Noir is too expensive (300000000)- removing from consideration.
Spasmi Dolorosi Del Rene Champagne is too expensive (999999998)- removing from consideration.
Ferita Del Petto Zinfandel is too expensive (999999998)- removing from consideration.
bottle of single-barrel whiskey is too expensive (205000)- removing from consideration.
around the world is too expensive (999999999)- removing from consideration.
Grimacite Bock is too expensive (20000000)- removing from consideration.
Oreille Divisée brandy is too expensive (999999999)- removing from consideration.
Pan-Dimensional Gargle Blaster is too expensive (999999999)- removing from consideration.
red-headed corpse is too expensive (75000)- removing from consideration.
kamicorpse-ee is too expensive (65000)- removing from consideration.
jar of fermented pickle juice is too expensive (66999)- removing from consideration.
Ralph IX cognac is too expensive (999998)- removing from consideration.
Hodgman's blanket is too expensive (52570)- removing from consideration.
giant glass of brandy is too expensive (125000)- removing from consideration.
bottle of peppermint schnapps is too expensive (64000)- removing from consideration.
salacious screwdiver is too expensive (10500)- removing from consideration.
salacious lychee chuhai is too expensive (11000)- removing from consideration.
decanter of fine Scotch is too expensive (67500)- removing from consideration.
expired bottle of peppermint schnapps is too expensive (710000)- removing from consideration.
missing wine is too expensive (999999999)- removing from consideration.
Cinco Mayo Lager is too expensive (200000)- removing from consideration.
bone aperitif is too expensive (120000)- removing from consideration.
CRIMBCO wine is too expensive (999999999)- removing from consideration.
marshmallow flambé is too expensive (120000)- removing from consideration.
cranberry schnapps is too expensive (195000)- removing from consideration.
breaded beer is too expensive (250000)- removing from consideration.
soy cordial is too expensive (350000)- removing from consideration.
honey mead is too expensive (999999999)- removing from consideration.
Grasshopper is too expensive (13000)- removing from consideration.
Suppurating Sinner is too expensive (14973)- removing from consideration.
Sizzling Sinner is too expensive (19000)- removing from consideration.
Earth and Firewater is too expensive (13888)- removing from consideration.
Extra-slimy Slimosa is too expensive (10950)- removing from consideration.
Green Velvet is too expensive (15000)- removing from consideration.
Green Muslin is too expensive (12998)- removing from consideration.
Drunken Philosopher is too expensive (37000)- removing from consideration.
Drunken Neurologist is too expensive (35000)- removing from consideration.
Drunken Astrophysicist is too expensive (30000)- removing from consideration.
Dark & Starry is too expensive (13034)- removing from consideration.
Black Hole is too expensive (12998)- removing from consideration.
Herring Daiquiri is too expensive (11389)- removing from consideration.
Herring Wallbanger is too expensive (38750)- removing from consideration.
Herringtini is too expensive (27000)- removing from consideration.
Caipiranha is too expensive (11000)- removing from consideration.
Flying Caipiranha is too expensive (13000)- removing from consideration.
Flaming Caipiranha is too expensive (17250)- removing from consideration.
Doublepunchplanter is too expensive (13995)- removing from consideration.
Haymaker is too expensive (18600)- removing from consideration.
If there are favorites still in consideration, they'll be here:
Acqua Del Piatto Merlot is too expensive (300000000)- removing from consideration.
Acque Luride Grezze Cabernet is too expensive (999999998)- removing from consideration.
Uovo Marcio Shiraz is too expensive (300000000)- removing from consideration.
Maiali Sifilitici Pinot Noir is too expensive (300000000)- removing from consideration.
Spasmi Dolorosi Del Rene Champagne is too expensive (999999998)- removing from consideration.
Ferita Del Petto Zinfandel is too expensive (999999998)- removing from consideration.
bottle of single-barrel whiskey is too expensive (205000)- removing from consideration.
around the world is too expensive (999999999)- removing from consideration.
Grimacite Bock is too expensive (20000000)- removing from consideration.
Oreille Divisée brandy is too expensive (999999999)- removing from consideration.
Pan-Dimensional Gargle Blaster is too expensive (999999999)- removing from consideration.
red-headed corpse is too expensive (75000)- removing from consideration.
kamicorpse-ee is too expensive (65000)- removing from consideration.
jar of fermented pickle juice is too expensive (66999)- removing from consideration.
Ralph IX cognac is too expensive (999998)- removing from consideration.
Hodgman's blanket is too expensive (52570)- removing from consideration.
giant glass of brandy is too expensive (125000)- removing from consideration.
bottle of peppermint schnapps is too expensive (64000)- removing from consideration.
salacious screwdiver is too expensive (10500)- removing from consideration.
salacious lychee chuhai is too expensive (11000)- removing from consideration.
decanter of fine Scotch is too expensive (67500)- removing from consideration.
expired bottle of peppermint schnapps is too expensive (710000)- removing from consideration.
missing wine is too expensive (999999999)- removing from consideration.
Cinco Mayo Lager is too expensive (200000)- removing from consideration.
bone aperitif is too expensive (120000)- removing from consideration.
CRIMBCO wine is too expensive (999999999)- removing from consideration.
marshmallow flambé is too expensive (120000)- removing from consideration.
cranberry schnapps is too expensive (195000)- removing from consideration.
breaded beer is too expensive (250000)- removing from consideration.
soy cordial is too expensive (350000)- removing from consideration.
honey mead is too expensive (999999999)- removing from consideration.
Grasshopper is too expensive (13000)- removing from consideration.
Suppurating Sinner is too expensive (14973)- removing from consideration.
Sizzling Sinner is too expensive (19000)- removing from consideration.
Earth and Firewater is too expensive (13888)- removing from consideration.
Extra-slimy Slimosa is too expensive (10950)- removing from consideration.
Green Velvet is too expensive (15000)- removing from consideration.
Green Muslin is too expensive (12998)- removing from consideration.
Drunken Philosopher is too expensive (37000)- removing from consideration.
Drunken Neurologist is too expensive (35000)- removing from consideration.
Drunken Astrophysicist is too expensive (30000)- removing from consideration.
Dark & Starry is too expensive (13034)- removing from consideration.
Black Hole is too expensive (12998)- removing from consideration.
Herring Daiquiri is too expensive (11389)- removing from consideration.
Herring Wallbanger is too expensive (38750)- removing from consideration.
Herringtini is too expensive (27000)- removing from consideration.
Caipiranha is too expensive (11000)- removing from consideration.
Flying Caipiranha is too expensive (13000)- removing from consideration.
Flaming Caipiranha is too expensive (17250)- removing from consideration.
Doublepunchplanter is too expensive (13995)- removing from consideration.
Haymaker is too expensive (18600)- removing from consideration.
If there are favorites still in consideration, they'll be here:
Acqua Del Piatto Merlot is too expensive (300000000)- removing from consideration.
Acque Luride Grezze Cabernet is too expensive (999999998)- removing from consideration.
Uovo Marcio Shiraz is too expensive (300000000)- removing from consideration.
Maiali Sifilitici Pinot Noir is too expensive (300000000)- removing from consideration.
Spasmi Dolorosi Del Rene Champagne is too expensive (999999998)- removing from consideration.
Ferita Del Petto Zinfandel is too expensive (999999998)- removing from consideration.
bottle of single-barrel whiskey is too expensive (205000)- removing from consideration.
around the world is too expensive (999999999)- removing from consideration.
Grimacite Bock is too expensive (20000000)- removing from consideration.
Oreille Divisée brandy is too expensive (999999999)- removing from consideration.
Pan-Dimensional Gargle Blaster is too expensive (999999999)- removing from consideration.
red-headed corpse is too expensive (75000)- removing from consideration.
kamicorpse-ee is too expensive (65000)- removing from consideration.
jar of fermented pickle juice is too expensive (66999)- removing from consideration.
Ralph IX cognac is too expensive (999998)- removing from consideration.
Hodgman's blanket is too expensive (52570)- removing from consideration.
giant glass of brandy is too expensive (125000)- removing from consideration.
bottle of peppermint schnapps is too expensive (64000)- removing from consideration.
salacious screwdiver is too expensive (10500)- removing from consideration.
salacious lychee chuhai is too expensive (11000)- removing from consideration.
decanter of fine Scotch is too expensive (67500)- removing from consideration.
expired bottle of peppermint schnapps is too expensive (710000)- removing from consideration.
missing wine is too expensive (999999999)- removing from consideration.
Cinco Mayo Lager is too expensive (200000)- removing from consideration.
bone aperitif is too expensive (120000)- removing from consideration.
CRIMBCO wine is too expensive (999999999)- removing from consideration.
marshmallow flambé is too expensive (120000)- removing from consideration.
cranberry schnapps is too expensive (195000)- removing from consideration.
breaded beer is too expensive (250000)- removing from consideration.
soy cordial is too expensive (350000)- removing from consideration.
honey mead is too expensive (999999999)- removing from consideration.
Grasshopper is too expensive (13000)- removing from consideration.
Suppurating Sinner is too expensive (14973)- removing from consideration.
Sizzling Sinner is too expensive (19000)- removing from consideration.
Earth and Firewater is too expensive (13888)- removing from consideration.
Extra-slimy Slimosa is too expensive (10950)- removing from consideration.
Green Velvet is too expensive (15000)- removing from consideration.
Green Muslin is too expensive (12998)- removing from consideration.
Drunken Philosopher is too expensive (37000)- removing from consideration.
Drunken Neurologist is too expensive (35000)- removing from consideration.
Drunken Astrophysicist is too expensive (30000)- removing from consideration.
Dark & Starry is too expensive (13034)- removing from consideration.
Black Hole is too expensive (12998)- removing from consideration.
Herring Daiquiri is too expensive (11389)- removing from consideration.
Herring Wallbanger is too expensive (38750)- removing from consideration.
Herringtini is too expensive (27000)- removing from consideration.
Caipiranha is too expensive (11000)- removing from consideration.
Flying Caipiranha is too expensive (13000)- removing from consideration.
Flaming Caipiranha is too expensive (17250)- removing from consideration.
Doublepunchplanter is too expensive (13995)- removing from consideration.
Haymaker is too expensive (18600)- removing from consideration.
If there are favorites still in consideration, they'll be here:
Acqua Del Piatto Merlot is too expensive (300000000)- removing from consideration.
Acque Luride Grezze Cabernet is too expensive (999999998)- removing from consideration.
Uovo Marcio Shiraz is too expensive (300000000)- removing from consideration.
Maiali Sifilitici Pinot Noir is too expensive (300000000)- removing from consideration.
Spasmi Dolorosi Del Rene Champagne is too expensive (999999998)- removing from consideration.
Ferita Del Petto Zinfandel is too expensive (999999998)- removing from consideration.
bottle of single-barrel whiskey is too expensive (205000)- removing from consideration.
around the world is too expensive (999999999)- removing from consideration.
Grimacite Bock is too expensive (20000000)- removing from consideration.
Oreille Divisée brandy is too expensive (999999999)- removing from consideration.
Pan-Dimensional Gargle Blaster is too expensive (999999999)- removing from consideration.
red-headed corpse is too expensive (75000)- removing from consideration.
kamicorpse-ee is too expensive (65000)- removing from consideration.
jar of fermented pickle juice is too expensive (66999)- removing from consideration.
Ralph IX cognac is too expensive (999998)- removing from consideration.
Hodgman's blanket is too expensive (52570)- removing from consideration.
giant glass of brandy is too expensive (125000)- removing from consideration.
bottle of peppermint schnapps is too expensive (64000)- removing from consideration.
salacious screwdiver is too expensive (10500)- removing from consideration.
salacious lychee chuhai is too expensive (11000)- removing from consideration.
decanter of fine Scotch is too expensive (67500)- removing from consideration.
expired bottle of peppermint schnapps is too expensive (710000)- removing from consideration.
missing wine is too expensive (999999999)- removing from consideration.
Cinco Mayo Lager is too expensive (200000)- removing from consideration.
bone aperitif is too expensive (120000)- removing from consideration.
CRIMBCO wine is too expensive (999999999)- removing from consideration.
marshmallow flambé is too expensive (120000)- removing from consideration.
cranberry schnapps is too expensive (195000)- removing from consideration.
breaded beer is too expensive (250000)- removing from consideration.
soy cordial is too expensive (350000)- removing from consideration.
honey mead is too expensive (999999999)- removing from consideration.
Grasshopper is too expensive (13000)- removing from consideration.
Suppurating Sinner is too expensive (14973)- removing from consideration.
Sizzling Sinner is too expensive (19000)- removing from consideration.
Earth and Firewater is too expensive (13888)- removing from consideration.
Extra-slimy Slimosa is too expensive (10950)- removing from consideration.
Green Velvet is too expensive (15000)- removing from consideration.
Green Muslin is too expensive (12998)- removing from consideration.
Drunken Philosopher is too expensive (37000)- removing from consideration.
Drunken Neurologist is too expensive (35000)- removing from consideration.
Drunken Astrophysicist is too expensive (30000)- removing from consideration.
Dark & Starry is too expensive (13034)- removing from consideration.
Black Hole is too expensive (12998)- removing from consideration.
Herring Daiquiri is too expensive (11389)- removing from consideration.
Herring Wallbanger is too expensive (38750)- removing from consideration.
Herringtini is too expensive (27000)- removing from consideration.
Caipiranha is too expensive (11000)- removing from consideration.
Flying Caipiranha is too expensive (13000)- removing from consideration.
Flaming Caipiranha is too expensive (17250)- removing from consideration.
Doublepunchplanter is too expensive (13995)- removing from consideration.
Haymaker is too expensive (18600)- removing from consideration.
If there are favorites still in consideration, they'll be here:
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining Crimbojito to consume.
simulating retrieval of one Crimbojito.
Obtaining CSA cheerfulness ration to consume.
simulating retrieval of one CSA cheerfulness ration.
0: Ode to Booze price: 1683 value: 26817
1: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
2: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
3: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
4: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
5: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
6: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
7: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
8: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
9: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
10: CSA cheerfulness ration lev:6 gain:1.0 adv:4.0 musc:45.0 myst:45.0 mox:45.0 meat:1345 own:93 value:5285
Pass 3: spleen.
Skipping spleen.
Pass 4: drink.
Skipping drink.
choc: Checking non-filling crimbo chocolates - all 3 kinds
For chocolate cigar value -241500 is less than or equal to zero.
If there are favorites still in consideration, they'll be here:
Best find was chocolate saucepan with a value of -200. That's no good, so not consuming and moving on.
For none value 0 is less than or equal to zero.
For vitachoconutriment capsule value -12395 is less than or equal to zero.
Finished. You had -Ode to Booze in effect. Adventures listed above does not reflect that, but this does:
Spent 55350 meat with additional expenditures of 1683 meat. Gained Fullness: 0. Inebriety: 19. Spleen: 0.
Adventures: 126. Muscle: 180. Moxie: 180. Mysticality: 378.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
******************************************
Now, to recap...
******************************************
Starting EatDrink.ash (version 3.2).
Consuming up to 0 food, 19 booze, and 0 spleen
Considering food from inventory Hagnk's Coinmasters NPCs the mall. Per-item budget cap is 75000.0.
Retrieval cap is 10000. Price will be a factor if you own it already.
An adventure has the value of 1500 meat. Mysticality subpoint is 10.0. Nonprime stat subpoint is 2.0.
Simulating only; no purchases or food/drink/spleen consumption.
drink: At 0, consuming to 19 with 19288708 meat.
0: Ode to Booze price: 1683 value: 26817
1: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
2: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
3: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
4: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
5: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
6: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
7: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
8: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
9: Crimbojito lev:2 gain:2.0 adv:11.5 musc:15.0 myst:37.5 mox:15.0 meat:6150 own:0 value:5767
10: CSA cheerfulness ration lev:6 gain:1.0 adv:4.0 musc:45.0 myst:45.0 mox:45.0 meat:1345 own:93 value:5285
choc: Checking non-filling crimbo chocolates - all 3 kinds
Best find was chocolate saucepan with a value of -200. That's no good, so not consuming and moving on.
Finished. You had -Ode to Booze in effect. Adventures listed above does not reflect that, but this does:
Spent 55350 meat with additional expenditures of 1683 meat. Gained Fullness: 0. Inebriety: 19. Spleen: 0.
Adventures: 126. Muscle: 180. Moxie: 180. Mysticality: 378.
Eating, drinking, and spleening complete. Commence merrymaking (at your own discretion).
 

Theraze

Active member
I highly suggest comparing that value to the TPS bit... I posted some code back in 1618 to see a specific food or drink item's value. And some code in 1614 to see ALL available food values.

What you need is something like:
ashq import <eatdrink.ash> update_from_mafia("drink"); update_using_mafia("drink"); foreach it in grub if (grub[it].it == $item[some tps sword drink]) print_html(value(grub[it], false, false));

With the "some tps sword drink" replaced with some tps sword drink's name. :) If it's less than 5767... that's why, because the Crimbojito is a pretty crazy good drink with 5.75 adventures per fullness. TPS drinks only average 4.
 

Magus_Prime

Well-known member
Fluxxdog pointed me to the session log and the missing information was there:

Code:
 > Choosing drink to consume.
 > sangria del diablo is too fattening (6.0)- removing from consideration.
 > cherry bomb is too fattening (6.0)- removing from consideration.
 > grogtini is too fattening (6.0)- removing from consideration.
 > bodyslam is too fattening (6.0)- removing from consideration.
 > dirty martini is too fattening (6.0)- removing from consideration.

The TPS drinks are dumped for being too fattening. With Ode I can get about 90 turns from three TPS drinks while I can get about 103.5 turns from the nine Crimbojitos that EatDrink chose to make.

IMO EatDrink made the correct decision. It is a shame that the TPS drinks have been eclipsed in wonderfulness by a lowly peppermint sprout. :)

Always learning.
 
Last edited:

Theraze

Active member
It's just one of those interesting optimization things that you don't think about until it's put right in front of you and you say... oh. I guess so. :)

I've spun several updated releases of EatDrink this morning generally involving a new eatdrink_shrug variable, defaults to false. Basically, if you're maxed for songs, can't get out of it through equipping gear, and you still want those bonus adventures and have set eatdrink_shrug to true...
1) Check if you have an accordion. If you don't, you won't be able to recast it anyways. That's bad.
2) Find the cheapest song we can cast.
a) If we don't have the song active, skip. It's not stopping us.
b) If we can't cast the song, skip. It's a buffbot or other thing and we can't easily replicate it ourselves.
c) We compare skill cost * turns remaining. Since all AT buffs use the same accordion, we don't really care about how many turns per cast we get (since it's always the same, given a specific accordion) or how much it costs to restore mp (since they're all costing the same meat per restoration). If we don't have a cheapest song yet or the cheapest song is more expensive than this one, mark this as our new cheapest song.
3) If we have a cheapest song saved, shrug it.
 

ereinion

Member
I had a couple of requests...

1. When eatdrink fails to obtain something at the price it thinks the item is available at, could you make it at least an option to have it reconsider the item at the new price?

2. When eatdrink tries to craft an item and it will take turns to make it, mafia asks me if I really want to do that. Is there any chance that you could make eatdrink consider if it might be a good idea to buy the finished product instead, when I click no to that prompt? Just today eatdrink chose to eat spectral pickles instead of lasagnas because I clicked no to spend turns crafting it.

I suppose I could have aborted the script and eaten the lasagna manually, but I was too lazy. Easier to ask you to do all the work ;)

CLI-output, in case you want it - not very high verbosity, I am afraid
Code:
Refreshing stash contents...
Stash list retrieved.
Internal      checkpoint created.
[COLOR=black]Skipping favorites.[/COLOR]
Starting      EatDrink.ash (version 3.2).
Consuming up to 20 food, 14 booze, and 15      spleen
Considering food from inventory closet Hagnk's Coinmasters NPCs      the mall. Per-item budget cap is 125000.0.
Retrieval cap is 20000.      Price will be a factor if you own it already.
An adventure has the      value of [B]1000 meat[/B]. Mysticality subpoint is 0.0. Nonprime stat      subpoint is 0.0.
[COLOR=black]Pass 1: food.[/COLOR]
food: At      0, consuming to 20 with 14361528 meat.
Searching for "potion of the      field gar"...
Search complete.
Searching for "lime"...
Search      complete.
Searching for "pie crust"...
Search complete.
Searching      for "milk of magnesium"...
Search complete.
[COLOR=black]Getting      1 chef-in-the-box in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 25000.0
Searching for      "nothing-in-the-box"...
Search complete.
Searching for      "box"...
Search complete.
Searching for "spring"...
Search      complete.
Searching for "brainy skull"...
Search complete.
Searching      for "disembodied brain"...
Search complete.
Searching for      "smart skull"...
Search complete.
Searching for "chef      skull"...
Search complete.
Searching for "chef's hat"...
Search      complete.
Searching for "chef-in-the-box"...
Search      complete.
Verifying ingredients for chef-in-the-box (1)...
Verifying      ingredients for nothing-in-the-box (1)...
Using cached search results      for box...
Purchasing box (1 @ 500)...
You acquire an item: box
Purchases      complete.
Using cached search results for spring...
Purchasing      spring (1 @ 20)...
You acquire an item: spring
You spent 20 Meat
Purchases      complete.
Creating nothing-in-the-box (1)...
You acquire an item:      nothing-in-the-box
Successfully created nothing-in-the-box (1)
Verifying      ingredients for chef skull (1)...
Using cached search results for      brainy skull...
Purchasing brainy skull (1 @ 1,700)...
You acquire      an item: brainy skull
Purchases complete.
Using cached search      results for chef's hat...
Purchasing chef's hat (1 @ 200)...
You      acquire an item: chef's hat
Purchases complete.
Creating chef skull      (1)...
You acquire an item: chef skull
Successfully created chef      skull (1)
Creating chef-in-the-box (1)...
You acquire an item:      chef-in-the-box
Successfully created chef-in-the-box (1)
autoBuyPriceLimit      => 20000
Using 1 chef-in-the-box...
Finished using 1      chef-in-the-box.
[COLOR=black]Getting 6 fishy fish lasagna in 1      seconds[/COLOR]
Countdown: 1 second...
Waiting completed.
autoBuyPriceLimit      => 5856.0
Searching for "fishy fish"...
Search complete.
Searching      for "displaced fish"...
Search complete.
Searching for      "dehydrated caviar"...
Search complete.
Searching for      "fishy fish casserole"...
Search complete.
Searching for      "Gnollish casserole dish"...
Search complete.
Searching      for "fishy fish lasagna"...
Search complete.
Searching for      "dry noodles"...
Search complete.
Searching for "MSG"...
Search      complete.
autoBuyPriceLimit => 20000
[COLOR=black]Something      went wrong with getting fishy fish lasagna for 4685. Recalculating.[/COLOR]
[COLOR=black]Pass      1: food.[/COLOR]
food: At 0, consuming to 20 with 14349793 meat.
[COLOR=black]Getting      6 long pork lasagna in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 5875.0
Searching for "long pork      chop sandwiches"...
Search complete.
Searching for "long      pork"...
Search complete.
Searching for "black pepper"...
Search      complete.
Searching for "long pork casserole"...
Search      complete.
Searching for "long pork lasagna"...
Search      complete.
autoBuyPriceLimit => 20000
[COLOR=black]Something      went wrong with getting long pork lasagna for 4700. Recalculating.[/COLOR]
[COLOR=black]Pass      1: food.[/COLOR]
food: At 0, consuming to 20 with 14349793 meat.
[COLOR=black]Getting      6 gnat lasagna in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 5906.0
Searching for "gnatloaf"...
Search      complete.
Searching for "filet of tangy gnat ("fotelif")"...
Search      complete.
Searching for "ancient spice"...
Search complete.
Searching      for "gnatloaf casserole"...
Search complete.
Searching for      "gnat lasagna"...
Search complete.
autoBuyPriceLimit =>      20000
[COLOR=black]Something went wrong with getting gnat      lasagna for 4725. Recalculating.[/COLOR]
[COLOR=black]Pass 1:      food.[/COLOR]
food: At 0, consuming to 20 with 14349793 meat.
[COLOR=black]Getting      5 spectral pickle in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 6968.0
Searching for "briny      vinegar"...
Search complete.
Searching for "brine"...
Search      complete.
Searching for "vinegar"...
Search complete.
Searching      for "ghostly pickling solution"...
Search complete.
Searching      for "dill"...
Search complete.
Searching for "spectral      pickle"...
Search complete.
Searching for "ghost cucumber"...
Search      complete.
Using cached search results for spectral pickle...
Purchasing      spectral pickle (5 @ 5,600)...
You acquire spectral pickle (5)
Purchases      complete.
autoBuyPriceLimit => 20000
[COLOR=black]Waiting      to consume...[/COLOR]
[B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0      musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
Countdown: 1      second...
Waiting completed.
[COLOR=black]Getting 1 milk of      magnesium in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 1012.0
Searching for "milk of      magnesium"...
Search complete.
Purchasing milk of magnesium (1      @ 810)...
You acquire an item: milk of magnesium
Purchases complete.
autoBuyPriceLimit      => 20000
Using 1 milk of magnesium...
You acquire an effect: Got      Milk (duration: 10 Adventures)
Finished using 1 milk of magnesium.
0:      [B]milk of magnesium[/B] price: 810 value: 9190.0
[COLOR=black]Getting      1 milk of magnesium in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 1012.0
Using cached search      results for milk of magnesium...
Purchasing milk of magnesium (1 @      810)...
You acquire an item: milk of magnesium
Purchases complete.
autoBuyPriceLimit      => 20000
Using 1 milk of magnesium...
You acquire an effect: Got      Milk (duration: 10 Adventures)
Finished using 1 milk of magnesium.
0:      [B]milk of magnesium[/B] price: 810 value: 9190.0
Eating 1 spectral      pickle...
You gain 29 Adventures
You gain 80 Strengthliness
You      gain 55 Enchantedness
You gain 58 Cheek
You gain 4 Fullness
You      lose some of an effect: Got Milk
Finished eating 1 spectral pickle.
1:      [B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5      mox:29.5 meat:5575 own:0 value:4356
[COLOR=black]Waiting to      consume...[/COLOR]
[B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0      musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
Countdown: 1      second...
Waiting completed.
Eating 1 spectral pickle...
You gain      28 Adventures
You gain 77 Muscleboundness
You gain a Muscle point!
You      gain 61 Magicalness
You gain 47 Chutzpah
You gain 4 Fullness
You      lose some of an effect: Got Milk
Finished eating 1 spectral pickle.
2:      [B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5      mox:29.5 meat:5575 own:0 value:4356
[COLOR=black]Waiting to      consume...[/COLOR]
[B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0      musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
Countdown: 1      second...
Waiting completed.
Eating 1 spectral pickle...
You gain      27 Adventures
You gain 53 Fortitude
You gain 49 Mysteriousness
You      gain 54 Chutzpah
You gain 4 Fullness
You lose some of an effect: Got      Milk
Finished eating 1 spectral pickle.
3: [B]spectral pickle[/B]      lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0      value:4356
[COLOR=black]Waiting to consume...[/COLOR]
[B]spectral      pickle[/B] lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:5575      own:0 value:4356
Countdown: 1 second...
Waiting completed.
Eating      1 spectral pickle...
You gain 29 Adventures
You gain 75      Muscleboundness
You gain 54 Enchantedness
You gain 47 Roguishness
You      gain 4 Fullness
You lose some of an effect: Got Milk
Finished eating      1 spectral pickle.
4: [B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0      musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
[COLOR=black]Waiting      to consume...[/COLOR]
[B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0      musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
Countdown: 1      second...
Waiting completed.
Eating 1 spectral pickle...
You gain      25 Adventures
You gain 59 Beefiness
You gain 68 Magicalness
You      gain 71 Smarm
You gain a Moxie point!
You gain 4 Fullness
You      lose an effect: Got Milk
Finished eating 1 spectral pickle.
5: [B]spectral      pickle[/B] lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:5575      own:0 value:4356
[COLOR=black]Pass 2: drink.[/COLOR]
drink: At      0, consuming to 14 with 14329488 meat.
[COLOR=black]Getting 7      Gin Mint in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 6250.0
Searching for "peppermint      twist"...
Search complete.
Searching for "peppermint sprout"...
Search      complete.
Searching for "Gin Mint"...
Search complete.
Searching      for "bottle of gin"...
Search complete.
Using cached      search results for Gin Mint...
Purchasing Gin Mint (5 @ 5,000)...
You      acquire Gin Mint (5)
[COLOR=red]Stopped purchasing Gin Mint @      6,770.[/COLOR]
[COLOR=red]You need 2 more Gin Mint to continue.[/COLOR]
autoBuyPriceLimit      => 20000
[COLOR=black]Something went wrong with getting Gin      Mint for 5000. Recalculating.[/COLOR]
[COLOR=black]Pass 2: drink.[/COLOR]
drink:      At 0, consuming to 14 with 14303629 meat.
[COLOR=black]Getting 7      Feliz Navidad in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 6250.0
Searching for "Feliz      Navidad"...
Search complete.
Searching for "bottle of      tequila"...
Search complete.
Using cached search results for      Feliz Navidad...
Purchasing Feliz Navidad (5 @ 5,000)...
You acquire      Feliz Navidad (5)
[COLOR=red]Stopped purchasing Feliz Navidad @      6,800.[/COLOR]
[COLOR=red]You need 2 more Feliz Navidad to      continue.[/COLOR]
autoBuyPriceLimit => 20000
[COLOR=black]Something      went wrong with getting Feliz Navidad for 5000. Recalculating.[/COLOR]
[COLOR=black]Pass      2: drink.[/COLOR]
drink: At 0, consuming to 14 with 14278629 meat.
[COLOR=black]Getting      7 bottle of wine in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 2125.0
Searching for "bottle of      wine"...
Search complete.
Purchasing bottle of wine (7 @      1,700)...
You acquire bottle of wine (7)
Purchases complete.
autoBuyPriceLimit      => 20000
[COLOR=black]Waiting to consume...[/COLOR]
[B]bottle      of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
Countdown: 1 second...
Waiting completed.
Drinking      1 bottle of wine...
You gain 10 Adventures
You gain 20 Beefiness
You      gain 21 Mysteriousness
You gain 21 Sarcasm
You gain 2 Drunkenness
You      lose some of an effect: Ode to Booze
Finished drinking 1 bottle of wine.
1:      [B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0      meat:1700 own:0 value:3150
[COLOR=black]Waiting to consume...[/COLOR]
[B]bottle      of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
Countdown: 1 second...
Waiting completed.
Drinking      1 bottle of wine...
You gain 10 Adventures
You gain 23      Muscleboundness
You gain 22 Wizardliness
You gain 22 Smarm
You      gain 2 Drunkenness
You lose some of an effect: Ode to Booze
Finished      drinking 1 bottle of wine.
2: [B]bottle of wine[/B] lev:5 gain:2.0      adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
[COLOR=black]Waiting      to consume...[/COLOR]
[B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0      musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
Countdown: 1      second...
Waiting completed.
Drinking 1 bottle of wine...
You      gain 10 Adventures
You gain 22 Strengthliness
You gain 21      Wizardliness
You gain 19 Roguishness
You gain 2 Drunkenness
You      lose some of an effect: Ode to Booze
Finished drinking 1 bottle of wine.
3:      [B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0      meat:1700 own:0 value:3150
[COLOR=black]Waiting to consume...[/COLOR]
[B]bottle      of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
Countdown: 1 second...
Waiting completed.
Drinking      1 bottle of wine...
You gain 10 Adventures
You gain 21      Muscleboundness
You gain 21 Magicalness
You gain 22 Cheek
You      gain 2 Drunkenness
You lose some of an effect: Ode to Booze
Finished      drinking 1 bottle of wine.
4: [B]bottle of wine[/B] lev:5 gain:2.0      adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
[COLOR=black]Waiting      to consume...[/COLOR]
[B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0      musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
Countdown: 1      second...
Waiting completed.
Drinking 1 bottle of wine...
You      gain 10 Adventures
You gain 23 Muscleboundness
You gain 22      Mysteriousness
You gain 20 Sarcasm
You gain 2 Drunkenness
You      lose some of an effect: Ode to Booze
Finished drinking 1 bottle of wine.
5:      [B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0      meat:1700 own:0 value:3150
[COLOR=black]Waiting to consume...[/COLOR]
[B]bottle      of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
Countdown: 1 second...
Waiting completed.
Drinking      1 bottle of wine...
You gain 10 Adventures
You gain 24      Muscleboundness
You gain a Muscle point!
You gain 22 Enchantedness
You      gain 18 Smarm
You gain 2 Drunkenness
You lose some of an effect: Ode      to Booze
Finished drinking 1 bottle of wine.
6: [B]bottle of wine[/B]      lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0      value:3150
[COLOR=black]Waiting to consume...[/COLOR]
[B]bottle      of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
Countdown: 1 second...
Waiting completed.
Drinking      1 bottle of wine...
You gain 10 Adventures
You gain 22 Strongness
You      gain 20 Mysteriousness
You gain a Mysticality point!
You gain 22      Smarm
You gain 2 Drunkenness
You lose some of an effect: Ode to Booze
Finished      drinking 1 bottle of wine.
7: [B]bottle of wine[/B] lev:5 gain:2.0      adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
[COLOR=black]Pass      3: spleen.[/COLOR]
spleen: At 0, consuming to 15 with 14267588 meat.
[COLOR=black]Getting      3 coffee pixie stick in 1 seconds[/COLOR]
Countdown: 1 second...
Waiting      completed.
autoBuyPriceLimit => 4112.0
Verifying ingredients for      coffee pixie stick (3)...
Searching for "Game Grid ticket"...
Search      complete.
Purchasing Game Grid ticket (30 @ 329)...
You acquire Game      Grid ticket (30)
Purchases complete.
Purchasing coffee pixie stick      (3 @ 10 tickets)...
Visiting the Arcade Ticket Counter...
You      acquire coffee pixie stick (3)
Arcade Ticket Counter successfully      looted!
Successfully created coffee pixie stick (3)
autoBuyPriceLimit      => 20000
[COLOR=black]Getting 1 carrot juice in 1 seconds[/COLOR]
Countdown:      1 second...
Waiting completed.
autoBuyPriceLimit => 2125.0
Searching      for "carrot juice"...
Search complete.
Searching for      "carrot nose"...
Search complete.
Verifying ingredients      for carrot juice (1)...
Using cached search results for carrot nose...
Purchasing      carrot nose (1 @ 1,500)...
You acquire an item: carrot nose
Purchases      complete.
Creating carrot juice (1)...
You acquire an item: carrot      juice
Successfully created carrot juice (1)
autoBuyPriceLimit =>      20000
[COLOR=black]Waiting to consume...[/COLOR]
[B]coffee      pixie stick[/B] lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:3290      own:0 value:1052
Countdown: 1 second...
Waiting completed.
Using      1 coffee pixie stick...
You gain 5 Adventures
Finished using 1      coffee pixie stick.
1: [B]coffee pixie stick[/B] lev:4 gain:4.0 adv:7.5      musc:0.0 myst:0.0 mox:0.0 meat:3290 own:0 value:1052
[COLOR=black]Waiting      to consume...[/COLOR]
[B]coffee pixie stick[/B] lev:4 gain:4.0 adv:7.5      musc:0.0 myst:0.0 mox:0.0 meat:3290 own:0 value:1052
Countdown: 1      second...
Waiting completed.
Using 1 coffee pixie stick...
You      gain 7 Adventures
Finished using 1 coffee pixie stick.
2: [B]coffee      pixie stick[/B] lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:3290      own:0 value:1052
[COLOR=black]Spleen value is 1052; mojo filter      to get it costs 2300[/COLOR]
[COLOR=black]Waiting to consume...[/COLOR]
[B]coffee      pixie stick[/B] lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:3290      own:0 value:1052
Countdown: 1 second...
Waiting completed.
Using      1 coffee pixie stick...
You gain 5 Adventures
Finished using 1      coffee pixie stick.
3: [B]coffee pixie stick[/B] lev:4 gain:4.0 adv:7.5      musc:0.0 myst:0.0 mox:0.0 meat:3290 own:0 value:1052
[COLOR=black]Waiting      to consume...[/COLOR]
[B]carrot juice[/B] lev:1 gain:3.0 adv:4.5      musc:0.0 myst:0.0 mox:0.0 meat:1700 own:0 value:933
Countdown: 1      second...
Waiting completed.
Using 1 carrot juice...
You gain 5      Adventures
You acquire an effect: Pla-see-bo (duration: 10 Adventures)
Finished      using 1 carrot juice.
4: [B]carrot juice[/B] lev:1 gain:3.0 adv:4.5      musc:0.0 myst:0.0 mox:0.0 meat:1700 own:0 value:933
[COLOR=black]Pass      4: drink.[/COLOR]
[COLOR=black]Skipping drink.[/COLOR]
choc:      Checking non-filling crimbo chocolates - all 3 kinds
Best find was      chocolate pasta spoon with a value of -2000. That's no good, so not      consuming and moving on.
Finished. You had -Ode to Booze in effect.      Adventures listed above does not reflect that, but this does:
Spent      105310 meat. Gained Fullness: 20. Inebriety: 14. Spleen: 15.
Adventures:      230. Muscle: 499. Moxie: 421. Mysticality: 436.
Eating, drinking, and      spleening complete. Commence merrymaking (at your own discretion).
******************************************
Now,      to recap...
******************************************
Starting      EatDrink.ash (version 3.2).
Consuming up to 20 food, 14 booze, and 15      spleen
Considering food from inventory closet Hagnk's Coinmasters NPCs      the mall. Per-item budget cap is 125000.0.
Retrieval cap is 20000.      Price will be a factor if you own it already.
An adventure has the      value of [B]1000 meat[/B]. Mysticality subpoint is 0.0. Nonprime stat      subpoint is 0.0.
food: At 0, consuming to 20 with 14361528 meat.
food:      At 0, consuming to 20 with 14349793 meat.
food: At 0, consuming to 20      with 14349793 meat.
food: At 0, consuming to 20 with 14349793 meat.
0:      [B]milk of magnesium[/B] price: 810 value: 9190.0
0: [B]milk of      magnesium[/B] price: 810 value: 9190.0
1: [B]spectral pickle[/B] lev:8      gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
2:      [B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5      mox:29.5 meat:5575 own:0 value:4356
3: [B]spectral pickle[/B] lev:8      gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
4:      [B]spectral pickle[/B] lev:8 gain:4.0 adv:23.0 musc:29.5 myst:29.5      mox:29.5 meat:5575 own:0 value:4356
5: [B]spectral pickle[/B] lev:8      gain:4.0 adv:23.0 musc:29.5 myst:29.5 mox:29.5 meat:5575 own:0 value:4356
drink:      At 0, consuming to 14 with 14329488 meat.
drink: At 0, consuming to 14      with 14303629 meat.
drink: At 0, consuming to 14 with 14278629 meat.
1:      [B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0      meat:1700 own:0 value:3150
2: [B]bottle of wine[/B] lev:5 gain:2.0      adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
3: [B]bottle      of wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
4: [B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0      musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
5: [B]bottle of      wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
6: [B]bottle of wine[/B] lev:5 gain:2.0 adv:8.0      musc:20.0 myst:20.0 mox:20.0 meat:1700 own:0 value:3150
7: [B]bottle of      wine[/B] lev:5 gain:2.0 adv:8.0 musc:20.0 myst:20.0 mox:20.0 meat:1700      own:0 value:3150
spleen: At 0, consuming to 15 with 14267588 meat.
1:      [B]coffee pixie stick[/B] lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0      meat:3290 own:0 value:1052
2: [B]coffee pixie stick[/B] lev:4 gain:4.0      adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:3290 own:0 value:1052
3: [B]coffee      pixie stick[/B] lev:4 gain:4.0 adv:7.5 musc:0.0 myst:0.0 mox:0.0 meat:3290      own:0 value:1052
4: [B]carrot juice[/B] lev:1 gain:3.0 adv:4.5 musc:0.0      myst:0.0 mox:0.0 meat:1700 own:0 value:933
choc: Checking non-filling      crimbo chocolates - all 3 kinds
Best find was chocolate pasta spoon      with a value of -2000. That's no good, so not consuming and moving on.
Finished.      You had -Ode to Booze in effect. Adventures listed above does not reflect      that, but this does:
Spent 105310 meat. Gained Fullness: 20. Inebriety:      14. Spleen: 15.
Adventures: 230. Muscle: 499. Moxie: 421. Mysticality:      436.
Eating, drinking, and spleening complete. Commence merrymaking (at      your own discretion).
 
Last edited:

Theraze

Active member
1) Maybe. Depends on if we can track that anything got found. We were having issues with infinite loops before, so... that's why we remove options when the collection fails. I think removing items is still a good default, but we could potentially have a variable for unsafe continuance.
2) Because we are using retrieve_item, if it suggests crafting, it's because it's the cheapest option. Buying it is more expensive. And therefore is not a good choice. Even counting crafting turns. As such, we're not really going to completely wipe out the item retrieval code for if you disagree with mafia.
 

Mrs Trout

New member
Every day the script ends up making me consume 3 advs and no twinkly wads, filling only 12 spleen. I get this message "Best find was none with a value of 0. That's no good, so not consuming and moving on. No spleen available that's good enough. Found 3 items first. Moving on. Waiting to consume..." I am sure there are cheaper ways to fill spleen than agua de vida but it never chooses them, what's going on and how can I stop it?
 

Theraze

Active member
You may have set your minimum adventures too high, you may have run out of money if you were using step meat or the auto closetting, you may have listed them as an avoidance item due to trying to keep them for the travelling trader... the list of possibilities for why it's disallowed are nearly endless.
 

ereinion

Member
1) Maybe. Depends on if we can track that anything got found. We were having issues with infinite loops before, so... that's why we remove options when the collection fails. I think removing items is still a good default, but we could potentially have a variable for unsafe continuance.
2) Because we are using retrieve_item, if it suggests crafting, it's because it's the cheapest option. Buying it is more expensive. And therefore is not a good choice. Even counting crafting turns. As such, we're not really going to completely wipe out the item retrieval code for if you disagree with mafia.
Fair enough, thanks for considering it at least :)
 

Theraze

Active member
Trying to see if we can complete partial item retrieval and recalculate when it fails. If we can get any, don't remove the item from consideration. Hopefully this should work better for those cases where either price goes up radically or something else causes problems...
 

roippi

Developer
You may have set your minimum adventures too high, you may have run out of money if you were using step meat or the auto closetting, you may have listed them as an avoidance item due to trying to keep them for the travelling trader... the list of possibilities for why it's disallowed are nearly endless.

Since one of these questions pops up on nearly every page, it might behoove you to embed a debug() function in the app that would harvest all the relevant settings/values you can think of and print them.
 

Theraze

Active member
zlib eatdrink
get valueOfAdventure

We'd still have people confused and not checking or setting their values properly. Having a function to show that won't make it any easier since people would then need to ashq import <eatdrink.ash> displayEatDrinkValues();
 

roippi

Developer
The point is for a nicely-formatted thing that we can tell people to run so we/you can actually do the debugging. It doesn't matter what form it's in, but a boilerplate "copy/paste this and tell us what it says" is infinitely more useful of a response to a question than "the list of possibilities for why it's disallowed are nearly endless."

Your program, your rules, just trying to help.
 

Theraze

Active member
Well, it could be disallowed in about 50 different places depending on how everything is being specifically run and how the general settings are. A single function would only tell us what the general values are for a specific issue, and doubling the script length with additional logging sections for people who don't want to copy-paste lines from here, who won't actually know what is where and which information they can get...

Useful additions, great. All for those. Functions for the sake of having a function? Meh.

Speaking of which, at some point I should probably remove the legacy handling for Ascend, since that script is now in the PD and can be updated for anyone who actually cares.
 

fronobulax

Developer
Staff member
Speaking of which, at some point I should probably remove the legacy handling for Ascend, since that script is now in the PD and can be updated for anyone who actually cares.

Yes.

I am in favor of a standardized way to get a system/environment dump to be used to diagnose things but I'm not sure what form that would take...
 

Theraze

Active member
The problem with a 'standardized' format is that most people are wondering either about one specific item - why it was removed - or about why it decided not to fill them to capacity. Copy-pasting the regular gCLI input tells us... a lot.

For example, ereinion's example shows us that stepMeat is set to infinite, VoA is 1000, Budget is set to 125k, aBPL is set to 20k, the current steel organ is the stomach, etc... But we can only tell that because the gCLI input was pasted. If Mrs Trout had given us similar output, we could have given her more clear results.
 

lostcalpolydude

Developer
Staff member
For example, ereinion's example shows us that stepMeat is set to infinite, VoA is 1000, Budget is set to 125k, aBPL is set to 20k, the current steel organ is the stomach, etc... But we can only tell that because the gCLI input was pasted. If Mrs Trout had given us similar output, we could have given her more clear results.

Do those values change during script execution? If not, a single function could just print all of those values.
 

Theraze

Active member
Some values do change, such as that we set and restore aBPL using a try/finally block to reduce chances of problems, and stepMeat is dropped as the step goes on if the user hasn't set theirs to infinite. If we see that we have -573 meat available for this step though, that means that everything is going to fail and we need to find out how that happened. Posting the gCLI gives better and more accurate results than static output would...
 
Top