Search results

  1. S

    New Content January 2019 IotM - Kramco Sausage-o-Matic™

    Could a counter for sausage goblins be added with similar functionality to “trackVoteMonster”?
  2. S

    Bug - Fixed [Patch] Modifier Maximizer does not prioritize boolean modifiers over shortcuts

    I made a script to automatically use Unaccompanied Miner with Anemone Mine, and accessing it requires a way to breathe underwater. It does not require your familiar to breathe underwater, though, and it is actually helpful not to have that: adventuring normally does require that, and that makes...
  3. S

    Bug - Fixed [Patch] Modifier Maximizer does not prioritize boolean modifiers over shortcuts

    Right now, the Modifier Maximizer parses input with the following precedence: Exact name of numeric modifier Abbreviations and shortcuts Exact name of boolean modifier Error There is an obvious problem with this: certain boolean modifiers cannot be specified, as they are ignored in favor of...
  4. S

    counterScript Trigger

    I recently started writing my own counterScript, and I’ve noticed a serious issue: It doesn’t seem to trigger reliably when running certain scripts (for example, Ezandora’s FantasyRealm script). I imagine this is related to the specific functions these scripts use, so I’d like to know exactly...
  5. S

    Buy Script Intended Use

    In summary: Buy Scripts are implemented with the assumption that KoLmafia’s default behavior for creating or purchasing items is desired, and they are only meant to choose between the two. Anything beyond that is undefined behavior, and should not be relied upon.
  6. S

    Feature - Rejected Option to re-equip item

    I checked the code, and it actually does appear to just do that, so I wrote a little library for getting and equipping item [slot] maps. I’ve already retrofitted a lot of my scripts with it, it works quite well. I tried to make the equip function relatively atomic, so it should be reliable...
  7. S

    Buy Script Intended Use

    I saw that, and came to a similar conclusion. While I’m fairly sure this would work, I don’t want to do it unless it is actually supposed to work that way. Anything else is undefined behavior, and this is a very dangerous thing to mess up. That’s why this thread is titled “Buy Script Intended Use”.
  8. S

    Feature - Rejected Option to re-equip item

    boolean fight_vote_monster(location loc) { slot get_slot() { foreach acc in $slots[acc2, acc3] { if(equipped_item(acc) == $item[none]) return acc; } return $slot[acc1]; } if(get_counters("Vote Monster", 0, 0) == "Vote...
  9. S

    Feature - Rejected Option to re-equip item

    I wrote a script for automatically using the Vote Monster free fights in aftercore (starting with areas that unlock latte ingredients, followed by areas like Dreadsylvania where lovebugs can help). I encountered a similar annoyance. What’d I really like is an ASH function that mimics the...
  10. S

    Buy Script Intended Use

    I want to override the behavior of the retrieve_item() to use the Clan Stash for items that are min-priced in the mall, along with a few other conditions according to the rules of my clan. The min-price bit isn’t technically a rule of my clan, but that should make it obvious what I’m going for...
  11. S

    Buy Script Intended Use

    I’ve gathered that a buyScript script is meant to resolve to a boolean value, where “true” means “purchase” and “false” means “create”. However, I’m interested in creating a buyScript that can actually procure the items. If running the script changes the quantity of items you have, would...
  12. S

    New Content - Implemented December 2018 IotM - Boxing Daycare!

    Could a setting for tracking whether you’ve gotten PVP fights from sparring be added? Note that you only get them the first time you spar each day, even if that means they were wasted. Basically, all KoLmafia has to do is set something to true when you spar at all.
  13. S

    Feature - Implemented Track free mining with Unaccompanied Miner

    I don’t suppose someone could actually implement this, seven years later?
  14. S

    Getting Mall category of arbitrary items

    I don’t see this being particularly difficult to track, and it would make it much easier to optimize mall searches. For instance, the mall_prices() function introduced in r18937 could search for each item specified or search by category, depending on which approach took fewer server hits. At the...
  15. S

    Getting Mall category of arbitrary items

    My current strategy is a combination of historical_age and mall_prices: I use mall_prices(“allitems”) if the price is too old, and since that updates the price of all items, it won’t run again for quite a while. If I used any specific category, the scenario I’ve outlined above could occur. It...
  16. S

    Getting Mall category of arbitrary items

    I already pulled all of that from the source code of the webpage. My concern is that a lot of items don’t cleanly fall into a given category. Are items that act as accessories guaranteed to be under “acc”, even if they are also Mr. Store Items or unlock content? And what about content that...
  17. S

    Daily Deed String Conditions

    Is it possible for Daily Deeds to do string comparisons with properties? I want to have a button only appear when get_property(“_questPartyFair”) == “unstarted” || get_property(“_questPartyFair”) == “started”. I don’t want to create a new property just for that, not least because it will go out...
  18. S

    Getting Mall category of arbitrary items

    When making a large number of mall searches (like a modified copy of PriceAdvisor), the best bet seems to be the undocumented mall_prices() function. This function accepts a category of item in the Mall as a raw string, then iterates through every page in the category rather than making any...
  19. S

    Bug - Fixed [Patch] God Lobster is variable based on equipment

    The God Lobster familiar is not marked as variable, despite changing dramatically based on the equipment given to it. It also isn’t marked as underwater. The attached patch rectifies both of these oversights.
  20. S

    get_property question

    Wait, to_int() is a type method of strings in ASH? I thought it was just a pure function.
Back
Top