Results 1 to 7 of 7

Thread: consumption.ash -- an EatDrink alternative

  1. #1
    Developer
    Join Date
    Aug 2009
    Posts
    2,716

    Default consumption.ash -- an EatDrink alternative

    version: 0.2.6

    Here's some script that I've had for a while. Basically, it solves UKP via dynamic programming and fills up your belly based on MPA.

    Who should use this? People farming in aftercore who know their MPA.

    Why use this over EatDrink? Well, it's fast, for one, and for another, it optimizes profit as determined by MPA * advYield - dietCost. I have no idea what EatDrink does, or how it does it.


    Usage for script writers:
    consumptionConfig is a string => string map contains various configurables: simulate, overdrink, semirares, valueOfSemi, valOfNontradeables. These should be fairly straightforward. weightMin and weightMax allow you to be more or less pessimistic: these *should* add up to 1, but this isn't a strict requirement.

    consumptionNamespace(float MPA) is the function to call, after configuring options as desired.


    Have fun.
    Attached Files
    Last edited by heeheehee; 11-16-2011 at 10:08 PM.

  2. #2
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Great... force me to rename consumption.ash to consumed.ash.

    Edit: Actually, I think I'll call my copy of this consume. That makes the other scripts break less. Heh.

    Quick alias to test this, using the filename of consume (and alias name as well):
    sconsume => ashq import <Consume.ash>; consumptionConfig["simulate"] = "true"; consumptionNamespace(get_property("valueOfAdventur e").to_float());
    Unfortunately, it doesn't check if it's possible, just tells you what would be nice.
    > sconsume

    You should use milk of magnesium.
    Knob sausage chow mein (3)
    Ode is cheap. You should use it.
    can of Swiller (2)
    rockin' wagon (3)
    Mojo filters taken into account.
    agua de vida (3)
    twinkly wad (3)

    > my_meat

    Returned: 369

    > cheapest chow mein

    pr0n chow mein @ 3,478
    rat appendix chow mein @ 4,725
    bat wing chow mein @ 4,734
    Knob sausage chow mein @ 4,900
    tofu chow mein @ 5,135
    Not sure how it's going to get me 3 chow meins valued at 4900 each as a seal clubber with 369 meat, but... if I can figure that out, I'll start doing accounting for the government.
    Last edited by Theraze; 11-16-2011 at 10:34 PM.

  3. #3
    Developer
    Join Date
    Aug 2009
    Posts
    2,716

    Default

    It doesn't actually take into account the amount of meat you have on hand. OBVIOUSLY. Just lower your MPA. :P

  4. #4
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Heh. Well, another problem is that it suggests items that, due to being HC and/or wrong class, I can't get.

    Does look like it should be worth checking out if I ever hit extended aftercore, though.

  5. #5
    Developer
    Join Date
    Aug 2009
    Posts
    2,716

    Default

    "Who should use this? People farming in aftercore who know their MPA."

    HC support would probably come eventually, except that when I'm in a HC run, I tend to not do all of my consumption at once. Also, I like manually controlling what I consume, and when.

  6. #6
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    3,852

    Default

    Great... force me to rename consumption.ash to consumed.ash.
    Originally Posted by Theraze View Post
    Wow. An active script from a thread that has been dormant for 18 months.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  7. #7
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,741

    Default

    Actually, it's more from this one, which is under 2 months old...

    http://kolmafia.us/showthread.php?79...-don-t-have-to

Similar Threads

  1. Replies: 2200
    Last Post: 01-10-2018, 11:01 PM
  2. calling an ash script (eatdrink.ash) from gCLI
    By zekaonar in forum Scripting Discussion
    Replies: 3
    Last Post: 03-17-2014, 09:30 PM
  3. myLittleConsumer.ash - An Unwanted Alternative to EatDrink.ash
    By me259259 in forum Item Handling Scripts
    Replies: 34
    Last Post: 12-28-2012, 05:44 AM
  4. alternative buffbot?
    By kotinka in forum Scripting Discussion
    Replies: 7
    Last Post: 08-18-2011, 04:13 AM
  5. Alternative auto-reprice
    By Metraxis in forum Community Support
    Replies: 2
    Last Post: 12-10-2007, 05:15 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
  •