Recent content by Miser

  1. M

    Bug Superlikelies and the digitize counter

    While running my barf script, I have noticed that if I digitize an embezzler, and immediately afterwards encounter the rollercoaster superlikely, the embezzler will appear one turn late compared to when mafia thinks it should. Checking my logs, it seems that this has been happening ever since...
  2. M

    New Content - Implemented 2019 April IOTM - PirateRealm membership packet

    Has anyone had time to look at my patch? I think it's a desirable feature not just for myself, as in some cases the ring is only worth using until the volcoino drops.
  3. M

    New Content - Implemented 2019 April IOTM - PirateRealm membership packet

    Since the lucky gold ring can only drop one volcoino per day, I made a patch to track this in the property `_luckyGoldRingVolcoino`. According to the wiki, the gold ring is the only way volcoinos can drop after combat, so the logic should be fine.
  4. M

    New Content - Implemented September 2019 IotM - Pocket Professor

    Strange, it applies for me on a freshly checked out repo. Does anyone have an idea what could be going wrong here?
  5. M

    New Content - Implemented September 2019 IotM - Pocket Professor

    I added a counter for the professor's lectures to the charpane. This is my first patch to Mafia, so please tell me if I made some mistake.
  6. M

    New Content IOTM 2019 February - Lil' Doctor™ bag

    When used against a monster that can't be instakilled, Chest X-Ray instead does some amount of damage. This still uses up one of the 3 uses per day, but currently, mafia doesn't count it. Unfortunately, I didn't catch the combat message when this happens, and I'm out of uses for the day.
  7. M

    Feature Matching items of a specific type in ASH.

    I can equip to a particular slot, but I can't figure out whether a string corresponds to an accessory to begin with. I want the script to work with other types of equipment as well. Also, my script receives user input, and it is inconvenient to always type the full name into the command line...
  8. M

    Feature Matching items of a specific type in ASH.

    Yes, this is exactly what I had in mind. Thank you for putting it much better than I could. Of course, I can do with just the current "to_item", I just have to relearn how much I need to type for each item, and I thought this might be useful for other applications as well. The reason I can't...
  9. M

    Feature Matching items of a specific type in ASH.

    Thanks for your reply. It wasn't my intent to hardcode partial item names into a script, but to find items based on user input from the script invocation. The script I was writing is meant to be invoked from the command line with multiple equipments as arguments, where using fuzzy matching is...
  10. M

    Feature Matching items of a specific type in ASH.

    Certain CLI commands, such as equip, match only items of a certain type, so that for example "equip mayfly" knows to equip the "mayfly bait necklace" and not the "packet of mayfly bait". However, I have found no way to replicate this in ASH. Would it be possible to expose this functionality? If...
  11. M

    Including CLI commands in HTML?

    It's possible to execute CLI commands from the relay browser, but it's not exactly perfect. Having a link like this: <a href="/KoLmafia/sideCommand?cmd=win+game&pwd=[hash]"> will execute the command in the CLI, but the browser window (or the frame) will change to the char pane. See my...
  12. M

    charpane.php override - buff warnings

    Since I often use effects during ascension that I don't want in a mood because I don't want to run them all the time, like Musk or Aria for example, yet I still don't want to forget to recast them when they run out, I wrote this script some time ago. It will display a warning in the charpane...
  13. M

    melt.ash (multiform IotM)

    This script is for people like me who make heavy use of some of the three multiform IotMs, the iceberglet, the Great Ball of Frozen Fire and the naughty origami kit. (even though the name is not appropriate for the last one) You call the script with a substring of the item you want and the...
  14. M

    Editing relay counters

    Sometimes, when I eat a fortune cookie, it is obvious which number is the right one. However, Mafia will still create counters for each one. So, unless I waste another fullness for a second cookie, I may have false counters interrupting my auto adventuring and thus confusing my scripts. So...
  15. M

    fight.php override - action buttons and a little fight-related library

    Line 93 in fight_helper.ash: ret.def = min(1, ret.id.monster_defense() * 0.9); You are basically setting every monter's defense to 1 ;) Also, I think you misunderstood the meaning of the "?+" I added sometimes before melee attacks. It didn't mean that you would always miss, but that the...
Top