Search results

  1. T

    Features I wish ASH supported...

    I am, like everyone else, amazed at the power that ASH has gained over the past few weeks and months. I'm very amused at what a chimera the keyword list has become; very modern things like map access alongside constructs like downto which I haven't seen in twenty years when I was writing in...
  2. T

    Price comparison of healing via skill vs. other method, etc...

    There are two reasons I'd be leery of taking this on. The first is that it is a very complex problem. Of the sixteen HP restoration techniques that KoLmafia manages, I don't think that more than three of them can immediately be ruled out as the wrong strategy for any situation. I'm not even...
  3. T

    I would like a script for farming Pixels...

    Since we moved this over to k-mails, I'll say for the sake of closure that the first problem was that his version of mafia didn't support the slot user type, and the second problem really really forced him to upgrade from version 6.8.
  4. T

    I would like a script for farming Pixels...

    Your problem seems to be that you aren't using the most advanced version of KoLmafia. Go ahead and use this script instead, which won't check for the continuum transfunctioner but other than that will put on your baby gravy fairy and the eye-pod and use all your adventures in the 8-bit realm.
  5. T

    I would like a script for farming Pixels...

    I think that this will take care of what you're asking for. I'll give it a quick test when I've got an adventurer with some turns to spare later today, but it should be fairly straightforward. Edit: it seems to work for me. Right now, it exits with an error if you're not wearing the continuum...
  6. T

    Converting strings

    It doesn't exist. I had occasion to check the reference a few days ago and thought that it was quite up-to-date, although four or five new functions have been added in the past couple days and the reference probably won't get updated until the next public release at the earliest. Out of...
  7. T

    So what are you working on?

    Over the past week or so, I've been doing a lot more writing of scripts than posting of them, and I wonder if I'm not alone. So I thought I'd write about the things that I'm doing that may or may not turn into future submissions and see if y'all wanted to share too. My main focus has been on a...
  8. T

    Anyone have any scripts for stargazing?

    I think this might work. I'd be happy to fix it if it doesn't work, but I'm not quite into adventure sinks today. :) edit: just updated it, as it struck me that the first "random" number generated was between 0 and 99, and the altitude only goes up to 89.
  9. T

    Bat Cave quests

    That's a very good point. Until I permed Elemental Saucesphere, I usually did wait until I was out of ronin before doing this quest, but I used three biscuits that I had farmed from a previous run rather than buying them. But they are just about 100 meat each, so no one who has mall access...
  10. T

    intermittent results (not really it seems)

    Re: intermittent results My first thought would be to add a print command near the top of DoMushroomFields(), at least before the field harvest. That way, when the script aborts early you'd have an idea if the problem was in IsZodiacStat() or in the cli_execute. Just for a lark, you might...
  11. T

    Bat Cave quests

    The logic gets really ugly in a hurry. I don't even need to check the side rooms -- I could do something like this (in very sloppy pseudo-code): boolean ready_to_fight_but_did_i_get_enough_biscuits() { while(true) { adventure(1, boss bat chamber); if (have a bandana) return true...
  12. T

    Bat Cave quests

    This script will take care of your progress through the Boss Bat quest. It seems pretty good at taking care of whatever sort of run you're on: softcore or hardcore and with a large selection of skill sets. In a nutshell, if you have three biscuits and can be buffed enough to have a good shot at...
  13. T

    String into slot question

    Perhaps the best way to handle that is with an external funciton like this: slot int_to_acc_slot(int n) { if (n==1) return $slot[acc1]; if (n==2) return $slot[acc2]; if (n==3) return $slot[acc3]; cli_execute("abort illegal accessory slot number"); return $slot[familiar]; } I have to...
  14. T

    String into slot question

    The parameter for $slot isn't a string. I don't know quite what it is, I guess there are two thousand built-in constants in the program. But you want to say $slot[acc1], not $slot["acc1"] or anything like that. What is it that you're trying to do? I have a feeling that we can script around...
  15. T

    Mosquito Larva quest

    Thanks! They're fun to write, and I'm glad that other people can get some use out of them as well. I'm sitting on a snazzy bat hole script that is nearly done being debugged. Once that's taken care of, I can move on to Cobb's Knob. :)
  16. T

    confused about eating

    If you have a script that works, then you're not missing anything! :) Seriously, if people had been saying that that script aborted prematurely, then it was part of the massive framework redesign that Veracity did for version 7.5. Now internal commands that used to abort will not return false...
  17. T

    Mosquito Larva quest

    This script will undertake the Mosquito Larva quest for you. While waiting for the larva adventure to show up, if you happen to find yourself with wooden stakes in your inventory, then the script will equip them and go vampire hunting as much as possible. This entails some switching of the...
  18. T

    sending gifts

    Not as such. You may want to investigate recording a script in which you send one box out and then see how much trouble it would be to modify it to create a function where you pass the name of a player to send a box to. But I've never really tried recording scripts so I wouldn't know for sure...
  19. T

    Variable passing question

    that would be void funcName (int amount, item it) { ... } item is the variable type, and $item[...] is a built-in function that returns an item. Similarly for location, class, stat, skill, slot, zodiac, and maybe one or two others that I can't remember off the top of my head. Check out the ASH...
  20. T

    All Purpose Bitchin' Meat Car

    The location names changed with the release of KoLmafia 7.2. You could fix that yourself by popping into this ash file, searching for "Market Sewer (Unlucky)", and replacing it with "Unlucky Sewer".
Back
Top