Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25

Thread: Carriageman Feeder

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Posts
    131

    Default Carriageman Feeder

    A pretty simple thingy, but I haven't seen it yet, so here it is!

    This--DreadDrunk.ash--will find the most cost-efficient booze (given a non-insane number of mall searches) for making the Carriageman drunk as a Dreadsylvanian skunk, buy as much as it needs, and dump it down his throat. By default, it'll buy enough to unlock the Castle, but you can use "dreaddrunk village" to go halfway, or enter an exact number of sheets between 1 and 2000 to aim for.

    For now, going from 0 to the Castle costs 52,000 meat-worth of Typical Tavern Swill, but this will vary with mall prices.

    Please report any weird sheets values, because some of them are...weird, and must be adjusted for manually.

    Installin': Paste this into the CLI:

    Code:
    svn checkout https://svn.code.sf.net/p/guyymafia/code/dreaddrunk
    Then type "DreadDrunk [input]" to run it.
    Last edited by guyy; 07-30-2013 at 10:01 PM.

  2. #2
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,267

    Default

    Interesting. Thank you.

    On scripts like this, when possible, I am always comfortable with a simulation mode - tell me what will be done but don't do it. That might not make sense with mall prices changing but optionally dumping a table of drink, price, sheets per drink and meat per sheet sorted by the latter would scratch the same itch.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  3. #3
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,582

    Default

    I see that you are using item.adventures to get the adventure range of a booze. Cool! But, I am curious about the "weird" ones that require manual adjustment.

    A "snifter of thoroughly aged brandy" (supposedly) has an adventure range of 2-6, average 4 - but yields 3 sheets.
    A "Corpsedriver" (supposedly) has an adventure range of 19-25, average 22 - but yields 21 sheets.
    (ditto for all the other "big" corpse drinks).

    Since I assume that KoL's "sheets" value is based on the same calculation - average adventures - if their number disagrees with ours, I suspect that our data is wrong - one (or both) of the ends of the adventure range is off, say.

    I agree with frono (again ) that a "simulation" mode would be nice; there are some things I'd rather not use for this - like buckets of wine that I made myself. But, nice job!
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  4. #4
    Senior Member
    Join Date
    Apr 2012
    Posts
    131

    Default

    The trouble with doing a sim-mode is that I can't find any way to determine how much of something is left at a certain price without buying it. (cli "searchmall" works, but seemingly can't send its output to a script.) Or how to tell Mafia to ignore low-priced items in a mall search. Usually it ends up buying several different things, switching between them when the mall runs out of something, often buying the same thing at different prices with other things bought in between, so it's kind of a mess.

    Listing the available drinks wouldn't be hard to do, though.

    Edit: The corpse drinks have a claimed range of 19-23, average 21, on the wiki. Aged brandy is 2-6 on the wiki, too, but apparently this is wrong. Probably should be 2-4 or something. (Could also be 3-4; the sheets value is rounded down.)
    Last edited by guyy; 07-31-2013 at 01:31 PM.

  5. #5
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,582

    Default

    Revision 12367 fixes the adventure range for the big corpse drinks. I am now pondering the brandy.
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

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

    Default

    The trouble with doing a sim-mode is that I can't find any way to determine how much of something is left at a certain price without buying it.
    Originally Posted by guyy View Post
    That is deliberate on the part of mafia, to inhibit it being used for mall bots. What I have done for pseudo simulation in cases like this is to report the results as if an infinite number of items are available at the historical price. That is usually "close enough" and doesn't have many server hits.

    I would use such a simulation mode in two cases. First, it would give me a ballpark cost so I could choose to not run the script or to closet meat before running, "just in case". Second, I have a display case full of summoned drinks that I never consume because I have a TPS. So I might choose to pull some of them out of my DC and "feed" them manually rather than have the script buy something else.
    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,746

    Default

    There was a proposal a while ago to give the mall price for a given number of items, but it stalled out. This was proposed something like mall_price(100, $item[typical tavern swill]) to find out how much it would cost (roughly) to get 100 swills, and allow for better simulation without making mall bots much easier than they currently are. Where it stalled was whether to start the 6-count at the 6th lowest price or the 10th, since mall_price(1, item) will be the price for the 5th lowest. When dealing with items that get pricey, the difference between those can be in the millions of meat range...

  8. #8
    Senior Member
    Join Date
    Apr 2012
    Posts
    131

    Default

    Just updated; "dreaddrunk list" will list all valid drinks in order of efficiency, and give the rough-estimated price of reaching the Castle, without buying or feeding anything.

    Amusingly, the dream of a dog can theoretically be fed to him; though at 480,000 meat per sheet, this is only slightly better than autoselling it to buy 3/4ths of a swill.

  9. #9
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,582

    Default

    I just used this to open the Castle in one of my private clans. Worked like a charm; the carriageman is now sheet-faced drunk.

    Thanks!
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  10. #10
    Junior Member
    Join Date
    Sep 2011
    Posts
    4

    Default

    I'm trying to run this script, but no matter what I enter as my input I keep getting the error message "Division by zero (DreadDrunk.ash, line 108)." Any idea how to fix this?

Similar Threads

  1. Familiar Feeder
    By slyz in forum Relay Override Scripts
    Replies: 97
    Last Post: 09-13-2013, 01:48 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
  •