void improve_spirits() {
if(stills_available() < 1)
return;
item [item] upgrade;
upgrade[$item[bottle of gin]] = $item[bottle of Calcutta Emerald];
upgrade[$item[bottle of rum]] = $item[bottle of Lieutenant Freeman];
upgrade[$item[bottle of tequila]] = $item[bottle of Jorge Sinsonte];
upgrade[$item[bottle of vodka]] = $item[bottle of Definit];
upgrade[$item[bottle of whiskey]] = $item[bottle of Domesticated Turkey];
upgrade[$item[boxed wine]] = $item[boxed champagne];
upgrade[$item[grapefruit]] = $item[tangerine];
upgrade[$item[lemon]] = $item[kiwi];
upgrade[$item[olive]] = $item[cocktail onion];
upgrade[$item[orange]] = $item[kumquat];
upgrade[$item[soda water]] = $item[tonic water];
upgrade[$item[strawberry]] = $item[raspberry];
upgrade[$item[bottle of sewage schnapps]] = $item[bottle of Ooze-O];
upgrade[$item[bottle of sake]] = $item[bottle of Pete's Sake];
item best;
int profit = 0;
int test_profit;
foreach key in upgrade {
if(historical_age(upgrade[key])>1) mall_price(upgrade[key]);
if(historical_age(key)>1) mall_price(key);
test_profit = historical_price(upgrade[key]) - historical_price(key);
if(test_profit > profit) {
best = key;
profit = test_profit;
}
}
print("Creating " + stills_available()+ " " +upgrade[best]+ " to sell @ "+historical_price(upgrade[best]), "blue");
retrieve_item(stills_available(), best);
create(stills_available(), upgrade[best]);
put_shop(historical_price(upgrade[best]), 0, upgrade[best]);
}
I have a couple of requests, I apologise if these have been brought up in the 61 pages of posts before!
1: Could you add alternate row colouring in the tables.
2: Could you add rollover highlighting to the table so you can see which row you are looking at (this would require javascript as :hover pseudo class doesn't work for table row/cell)
Awesome work, more powerful than I first though!
I've seen a number of references to a PAtoOCD script. I've searched everywhere I can think of, but can't actually find a copy of this script. I think it'd be really useful in helping me set up OCD for the first time. I'm a very new KoL player and find myself paralyzed trying to figure out what to sell and what to keep for the future.
Can anyone link to the script, if it still exists?
I was all set to give you a snarky response and then realized I can't find it using the board's search either. I had to use Google and a bunch of educated guesses.
What I can't do is remember how to get a search to return individual posts as opposed to the 60+ page thread with one or more relavent posts ;-)