Page 3 of 221 FirstFirst 1 2 3 4 5 13 53 103 ... LastLast
Results 21 to 30 of 2201

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

  1. #21
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Good catch on the bugfix, it'll be in the next update.

    The way I designed it (but by no means the way you should necessarily use it) is that you fine-tune the cost-per-adventure until it produces the kind of results you want. Then you set the max budget to something that's high enough it's irrelevant, and it's basically just a safety valve in case the code goes wonky and tries to buy something too expensive. You can definitely use it at a low enough value that it contributes to the filter, but it will disproportionately punish high-fullness items (since it only filters based on item cost).

    Glad the TPS code is seeing some use, too. One gotcha about that - if you have, say, a grogtini in inventory, then grogtinis will be cheap but other TPS drinks will be expensive. If you have a TPS, then all TPS drinks will be cheap. So if you want to get optimal TPS recommendations, drink your grogtini before running eatdrink.
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  2. #22
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Here's what I ate today. There's some folks selling cheap food and booze with a limit of one - the cool thing is that the code picks up on it, buys the cheap one, then switches to something else. When you're simulating it can't do that (it has no way to know that only one hi mein is available at that price) but when you're actually buying it gets it right (note the simulation you ran incorrectly assumed you could buy a bunch of hi meins at 300 meat).

    Code:
    Consuming up to 15 food and 19 booze and then finishing off with the stiffest drink we can find.
    Considering food from inventory Hagnk's the mall. Per-item budget cap is 25000.0.
    Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 1000 meat each.
    An adventure has the value of 200 meat. Prime stat subpoint is 4. Nonprime is 1.
    Ronin (e.g. everything costs 1 pull) is not being simulated (but will be calculated anyway if true).
    Now at fullness of 0, eating to 15.
    1: Crimbo pie lev:7 gain:3.0 adv:11.0 musc:35.0 myst:0.0 moxie:0.0 price:160 own:0 value:691
    2: pear tart lev:7 gain:3.0 adv:11.0 musc:0.0 myst:35.0 moxie:0.0 price:445 own:0 value:631
    3: pear tart lev:7 gain:3.0 adv:11.0 musc:0.0 myst:35.0 moxie:0.0 price:450 own:0 value:629
    4: pear tart lev:7 gain:3.0 adv:11.0 musc:0.0 myst:35.0 moxie:0.0 price:450 own:0 value:629
    5: pear tart lev:7 gain:3.0 adv:11.0 musc:0.0 myst:35.0 moxie:0.0 price:450 own:0 value:629
    Now at inebriety of 0, drinking to 19.
    1: horizontal tango lev:4 gain:4.0 adv:12.0 musc:0.0 myst:35.0 moxie:0.0 price:230 own:0 value:578
    2: fuzzbump lev:4 gain:4.0 adv:12.0 musc:35.0 myst:0.0 moxie:0.0 price:230 own:0 value:551
    3: fuzzbump lev:4 gain:4.0 adv:12.0 musc:35.0 myst:0.0 moxie:0.0 price:230 own:0 value:551
    4: fuzzbump lev:4 gain:4.0 adv:12.0 musc:35.0 myst:0.0 moxie:0.0 price:230 own:0 value:551
    5: can of Swiller lev:10 gain:1.0 adv:3.0 musc:12.5 myst:0.0 moxie:0.0 price:156 own:0 value:456
    6: can of Swiller lev:10 gain:1.0 adv:3.0 musc:12.5 myst:0.0 moxie:0.0 price:170 own:0 value:442
    7: can of Swiller lev:10 gain:1.0 adv:3.0 musc:12.5 myst:0.0 moxie:0.0 price:170 own:0 value:442
    Now finishing with one big stiff drink.
    8: sangria del diablo lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 moxie:0.0 price:2105 own:0 value:2310
    Finished. Spent 5720 meat. Gained Fullness: 15. Inebriety: 25. Adventures: 162. Muscle: 175. Moxie: 0. Mysticality: 212.
    Eating and drinking complet
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  3. #23
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Here's an even better example. Not to toot my own - but the code is a terrific bargain hunter (when you're actually consuming; because of pricing restrictions, it's not so efficient at simulating). It picks up on very small price efficiencies - so note the variety in consumption, and how the code scooped up the dirt-cheap one-off spooky hi mein. And if you're meatfarming, you have to be pretty darn productive to justify paying the price premium for noodle dishes vs. pear tarts...

    Anyone else have interesting diets?

    Code:
    An adventure has the value of 200 meat. Prime stat subpoint is 4. Nonprime is 1.
    1: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:288 own:0 value:1011
    2: Crimbo pie lev:7 gain:3.0 adv:11.0 musc:35.0 myst:0.0 moxie:0.0 price:160 own:0 value:691
    3: pear tart lev:7 gain:3.0 adv:11.0 musc:0.0 myst:35.0 moxie:0.0 price:450 own:0 value:629
    4: pear tart lev:7 gain:3.0 adv:11.0 musc:0.0 myst:35.0 moxie:0.0 price:450 own:0 value:629
    5: brain-meltingly-hot chicken wings lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 moxie:0.0 price:170 own:0 value:542
    1: Mae West lev:6 gain:4.0 adv:16.0 musc:0.0 myst:0.0 moxie:43.5 price:320 own:0 value:730
    2: fuzzbump lev:4 gain:4.0 adv:12.0 musc:35.0 myst:0.0 moxie:0.0 price:230 own:0 value:551
    3: sangria del diablo lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 moxie:0.0 price:2109 own:0 value:461
    4: shot of pear schnapps lev:8 gain:2.0 adv:6.0 musc:0.0 myst:17.0 moxie:0.0 price:437 own:0 value:416
    5: white lightning lev:3 gain:3.0 adv:7.5 musc:0.0 myst:0.0 moxie:0.0 price:295 own:0 value:402
    Now finishing with one big stiff drink.
    6: cherry bomb lev:6 gain:6.0 adv:24.0 musc:0.0 myst:18.0 moxie:0.0 price:2131 own:0 value:2286
    Finished. Spent 7328 meat. Gained Fullness: 15. Inebriety: 25. Adventures: 172. Muscle: 119. Moxie: 98. Mysticality: 203.
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  4. #24
    Minion asturia's Avatar
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    199

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

    Here is mine:
    Code:
    Now, to recap...
    ******************************************
    Consuming up to 15 food and 19 booze
    Considering food from inventory Hagnk's the mall. Per-item budget cap is 25000.0.
    Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 1000 meat each.
    An adventure has the value of 1000 meat. Prime stat subpoint is 20. Nonprime is 5.
    Ronin (e.g. everything costs 1 pull) is not being simulated (but will be calculated anyway if true).
    Now at fullness of 0, drinking to 15.
    1: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:288 own:0 value:5118
    2: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:288 own:0 value:5118
    3: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:360 own:0 value:5103
    4: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:450 own:0 value:5085
    5: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:562 own:0 value:5063
    6: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:702 own:0 value:5035
    7: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:877 own:0 value:5000
    8: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:1096 own:0 value:4956
    9: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:1370 own:0 value:4901
    10: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:1712 own:0 value:4833
    11: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:2140 own:0 value:4747
    12: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:100 own:0 value:4687
    13: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:125 own:0 value:4675
    14: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:156 own:0 value:4659
    15: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:195 own:0 value:4640
    16: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:2675 own:0 value:4640
    17: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:243 own:0 value:4616
    18: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:303 own:0 value:4586
    19: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:378 own:0 value:4548
    20: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:3343 own:0 value:4507
    21: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:472 own:0 value:4501
    22: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:590 own:0 value:4442
    23: fancy canapés lev:5 gain:2.0 adv:8.5 musc:32.5 myst:32.5 moxie:32.5 price:737 own:0 value:4369
    24: spooky hi mein lev:7 gain:5.0 adv:25.0 musc:17.5 myst:73.0 moxie:32.5 price:4178 own:0 value:4340
    25: Knob sausage chow mein lev:7 gain:5.0 adv:25.0 musc:74.0 myst:0.0 moxie:0.0 price:5000 own:0 value:4296
    26: Knob sausage chow mein lev:7 gain:5.0 adv:25.0 musc:74.0 myst:0.0 moxie:0.0 price:4989 own:0 value:4299
    Now at inebriety of 0, drinking to 19.
    1: Mon Tiki lev:6 gain:4.0 adv:16.0 musc:43.5 myst:0.0 moxie:0.0 price:320 own:14 value:4137
    2: Mon Tiki lev:6 gain:4.0 adv:16.0 musc:43.5 myst:0.0 moxie:0.0 price:320 own:13 value:4137
    3: Mon Tiki lev:6 gain:4.0 adv:16.0 musc:43.5 myst:0.0 moxie:0.0 price:320 own:12 value:4137
    4: Mon Tiki lev:6 gain:4.0 adv:16.0 musc:43.5 myst:0.0 moxie:0.0 price:320 own:11 value:4137
    5: cup of primitive beer lev:12 gain:1.0 adv:3.5 musc:57.5 myst:0.0 moxie:0.0 price:1150 own:0 value:3500
    6: cup of primitive beer lev:12 gain:1.0 adv:3.5 musc:57.5 myst:0.0 moxie:0.0 price:1100 own:0 value:3550
    7: cup of primitive beer lev:12 gain:1.0 adv:3.5 musc:57.5 myst:0.0 moxie:0.0 price:1100 own:0 value:3550
    Finished. Spent 13566 meat. Gained Fullness: 15. Inebriety: 19. Adventures: 184. Muscle: 520. Moxie: 43. Mysticality: 71.
    Eating and drinking complete. Commence merrymaking (at your own discretion).

  5. #25
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Thanks asturia... you motivated me to clean up the output code. The new version, 1.07, should produce cleaner output. It also fixes some other details, like prompting you if you want to simulate or not at runtime.
    Attached Files
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  6. #26
    Minion asturia's Avatar
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    199

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

    no problem will post another log tomorrow.

  7. #27
    Minion asturia's Avatar
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    199

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

    here is another log of mine:
    Code:
    Consuming up to 15 food and 19 booze
    Considering food from inventory Hagnk's the mall. Per-item budget cap is 12500.0.
    Price will be a factor if you own it already. Hagnk's pulls (if enabled) will cost 1000 meat each.
    An adventure has the value of 200 meat. Prime stat subpoint is 4. Nonprime is 1.
    Ronin (e.g. everything costs 1 pull) is not being simulated (but will be calculated anyway if true).
    Now at fullness of 0, eating to 15.
    1: blob-shaped Crimbo cookie lev:7 gain:2.0 adv:9.0 musc:0.0 myst:0.0 moxie:0.0 price:100 own:2 value:850
    2: blob-shaped Crimbo cookie lev:7 gain:2.0 adv:9.0 musc:0.0 myst:0.0 moxie:0.0 price:100 own:1 value:850
    3: Crimbo pie lev:7 gain:3.0 adv:11.0 musc:35.0 myst:0.0 moxie:0.0 price:160 own:0 value:726
    4: Crimbo pie lev:7 gain:3.0 adv:11.0 musc:35.0 myst:0.0 moxie:0.0 price:390 own:0 value:649
    5: Crimbo pie lev:7 gain:3.0 adv:11.0 musc:35.0 myst:0.0 moxie:0.0 price:450 own:0 value:629
    6: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 moxie:0.0 price:100 own:10 value:612
    7: Genalen™ Bottle lev:10 gain:1.0 adv:3.0 musc:22.5 myst:22.5 moxie:0.0 price:100 own:9 value:612
    Now at inebriety of 0, drinking to 19.
    1: black & tan lev:7 gain:2.0 adv:6.5 musc:11.0 myst:11.0 moxie:11.0 price:100 own:3 value:633
    2: black & tan lev:7 gain:2.0 adv:6.5 musc:11.0 myst:11.0 moxie:11.0 price:100 own:2 value:633
    3: black & tan lev:7 gain:2.0 adv:6.5 musc:11.0 myst:11.0 moxie:11.0 price:100 own:1 value:633
    4: fuzzbump lev:4 gain:4.0 adv:12.0 musc:35.0 myst:0.0 moxie:0.0 price:230 own:1 value:578
    5: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:11 value:475
    6: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:10 value:475
    7: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:9 value:475
    8: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:8 value:475
    9: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:7 value:475
    10: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:6 value:475
    11: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:5 value:475
    12: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:4 value:475
    13: thistle wine lev:10 gain:1.0 adv:3.0 musc:0.0 myst:0.0 moxie:45.0 price:170 own:3 value:475
    Finished. Spent 1060 meat. Gained Fullness: 15. Inebriety: 19. Adventures: 144. Muscle: 209. Moxie: 453. Mysticality: 80.
    Eating and drinking complete. Commence merrymaking (at your own discretion).

  8. #28
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Cool! Now, simulating is a very imperfect art because there's often only one (or none!) available at the price the websites list. I'd love to see the log when you turn off "sim" and use it to consume for real. Note that if you do this and watch closely with your finger on the escape key, you have plenty of time to abort any actions before they're committed (in case you're curious but not fully trusting!).
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

  9. #29
    Minion asturia's Avatar
    Join Date
    Apr 2006
    Location
    Belgium
    Posts
    199

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

    that was a real log
    I'll submit another one soon.

  10. #30
    Senior Member
    Join Date
    Sep 2008
    Posts
    795

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

    Doh! Sorry, just looked at the absurdly low price of the first item. Unfortunately, if you have the item in inventory, it has to use the web lookup for the price - which can be wildly inaccurate. It's at its best when it's shopping for you, since it can refine the prices very precisely.

    Big update coming shortly, with full milk of magnesium support and more...
    My scripts: Ascend for automatic ascensions, Farm to make more money than castlefarming, EatDrink for the maximum number of turns each day, LevelUp to gain a level safely, and PullCrap to manage your pulls in ronin.

Similar Threads

  1. 14784: optimize a bit by reusing the same xml serializer
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 10-02-2014, 03:21 AM
  2. 600 - 700 ADV diet!! T
    By scrambles in forum Item Handling Scripts
    Replies: 20
    Last Post: 08-08-2012, 07:32 AM
  3. 11060: optimize table renderer a bit
    By RSS Bot in forum Latest SVN Changes
    Replies: 0
    Last Post: 06-01-2012, 05:50 PM
  4. consumption.ash -- an EatDrink alternative
    By heeheehee in forum Informational Scripts
    Replies: 6
    Last Post: 11-17-2011, 05:43 AM
  5. PvP Diet Balance and Wine tasting. [spoilers]
    By Darkness in forum Scripting Discussion
    Replies: 2
    Last Post: 03-12-2007, 04:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •