Search results

  1. S

    desc_item.php from $item?

    I'd like to access the description page (desc_item.php) for a given ASH $item using visit_url. Is there an existing function that will get the KoL item number out of an ASH $item, or should I manually parse through the itemdescs.txt data file? I've tried doing a simple to_int(item), but that...
  2. S

    Referencing other sections in .ccs

    Today is the Feast of Boris and I find myself a level 27 TT adventuring without a weapon (trust me, there's a reason). I'm more than capable of killing the Boris monsters with Spectral Snapper, but I'd like to be able to easily change the action when I have a weapon again. Here's what I'd like...
  3. S

    buffbot command - how does it work?

    I've decided to try my hand at running a buffbot for my clan. I'll probably customize the bot later with a script, but right now I'm going for basics: the `buffbot` CLI command. Here is my current understanding of the `buffbot` command: - As described by the help function, "buffbot number -...
  4. S

    Getting the last index of a map

    Is it possible to get the last index of a map when the value of the index is unknown? For example, I would like to do something like this: int[string] map; map["a"] = 8; map["b"] = 2; map["c"] = 1; map["x"] = 4; map["y"] = 9; map["z"] = 3; string last = last_index_of(map); print (...
  5. S

    ascensionChecklist.ash: Make sure you have the items for a painless run

    Have you ever hit the 'Ascend' button, only to realize seconds later that you forgot to make a maid/food/drink/house/whatever? Fear not! ascensionChecklist.ash ensures you have the correct items for your ascension by compiling an easy-to-read list of the desired item amounts and...
  6. S

    -MP items not being unequipped when restoring HP in relay browser

    I've noticed that "-MP to use skill" items (specifically the stainless steel solitaire, but I'm assuming it's a property of the functionality rater than the item) are not being unequipped when clicking the "Restore your HP" link on the left pane of the relay browser. Steps to recreate what I'm...
  7. S

    Max food/booze adventures from storage items

    I recently a run, and I would like to get out of Ronin as quickly as possible (shocking, I know). To that end, I want to consume food and booze every day that gives me the greatest number of additional adventures. Because I don't feel like clicking eight hundred links every time I want to check...
  8. S

    Is is possible to fully parse internal data files?

    I've been trying to load the KoLMafia data files into maps. Specifically, I'm interested in the data in fullness.txt and inebriety.txt. I can get a record of the items with the following code: item[item] fullnessMap; fullnessMap = file_to_map("fullness.txt", fullnessMap); "fullnessMap" then...
  9. S

    Can I sort an array? Can I call a method if given a reference?

    Couple of questions here, I'm hoping someone will know the answer to one or both. 1. Is there built-in functionality to sort an ASH array? 2. Is there a way to call a method if given a reference to the method? The only reference I can think of in ASH is the method's name. The code I'm looking...
  10. S

    Created "is_ingredient" and "part_of_recipe" utility functions

    One of my friends wanted a script that would tell him if a particular item was part of any recipes. Don't ask me why he wanted it, but it gave me something to do. I figured I'd share the wealth, in case anyone else wanted this for some reason. PLEASE NOTE that this script will create/overwrite...
Top