Search results

  1. M

    First (real) attempt to make an ash script: Sewer.ash

    I was in the middle of writing a grate/valve check. I was hoping to set it so that if less than 20 grates/valves have been opened/turned, the script would be helpful and open/turn the grates/valves, and then take the tunnels when all the grates/valves have been opened/turned. Since I want to...
  2. M

    First (real) attempt to make an ash script: Sewer.ash

    Oh man, this is the 5th time I'm rewritting this post. At the beginning, I still had no idea what you all were talking about. Now I finally get it. It turns out that the whole problem was caused by an epic misreading of the to_int page on the mafia wiki. Whoops! The code I had before only...
  3. M

    First (real) attempt to make an ash script: Sewer.ash

    OK, after reading this, I am thoroughly confused. I was under the impression that when you save something via set_property, it would save it as a string, even when it should be something else. That's why I set up a string to int conversion. The glyph checker would come up with the number of...
  4. M

    First (real) attempt to make an ash script: Sewer.ash

    In case of human error. You can manually set how many hobo glyphs you have if you never want to run the glyph checker. What if someone accidentally sets hoboGlyphs = 23 instead of 12? I felt it would be a common enough error to just left the script automatically alert the user to what the...
  5. M

    First (real) attempt to make an ash script: Sewer.ash

    Thank you Theraze! That fixed it. Huh, I wonder why that slight complication would mess it up... Anyway, here's my new version of sewer.ash. Changelog: 1/4/11 There are a large number of user preferences at the top of the script. Be sure to look at them before you run the script! You...
  6. M

    First (real) attempt to make an ash script: Sewer.ash

    Hey everyone, sorry for disappearing for a couple of weeks. It's been a crazy Crimbo. Winterbay, thank you! I'll take you up on that hopefully tomorrow! I'm almost ready to release the version I've been working on. I've run into a problem I don't quite understand. Here's what I have: if...
  7. M

    First (real) attempt to make an ash script: Sewer.ash

    Indeed. I've been doing my best to only ask people how to do things if I couldn't find the answer on the wiki first. What I said about getting to learn how to import scripts, I didn't mean to say it with sarcasm or anything. I'm a practical person. It's hard for me to learn theory unless I...
  8. M

    First (real) attempt to make an ash script: Sewer.ash

    Hmm... I was thinking about making the script adventure for an additional 10 adventures should you decide to gnaw out of the cage. Would something like this work? adventure(100 , $location[a maze of sewer tunnels] ); // If you get trapped in the cage, and you decide to gnaw your way out //...
  9. M

    First (real) attempt to make an ash script: Sewer.ash

    Good point Grotfang. I've made the changes you've suggested. Doing that gave me a couple of ideas that needed to be added to the script. First of all, I want to gnaw through the bars, but just in case I don't, I have a user preference set to easily change that. I've also added a check that...
  10. M

    CounterChecker: Wormwood, Semi-rares, Dance Cards and more

    Thank you! Soon there won't be a semi-rare that can hide from me...
  11. M

    CounterChecker: Wormwood, Semi-rares, Dance Cards and more

    Is there a way to get a specific semi-rare using counterchecker? Instead of it searching for the semi-rares with the best mallprice, can you switch it to a mode where it gets only a couple of user defined semi-rares?
  12. M

    First (real) attempt to make an ash script: Sewer.ash

    Thank you everyone! Unless anyone else has any more suggestions, I've finished my first real ash script! If anyone wants a copy of it as it stands right now, here it is.
  13. M

    First (real) attempt to make an ash script: Sewer.ash

    Ok, I made the changes you guys suggested, and it worked great!... But while I was at it, I decided that if I wanted to change my outfit, mood, or familiar, I don't want to go searching the script to find it. So I attempted to make some user preferences at the top of the script. The problem...
  14. M

    First (real) attempt to make an ash script: Sewer.ash

    Hmm... if that's the case, what's the advantage of using a map in this situation?
  15. M

    First (real) attempt to make an ash script: Sewer.ash

    Sweet! Thank you Veracity! Without all those "if"s running around, I was able to debug the rest, and it works! Icon315, thank you for the ash equivalent for getting a familiar! And Icon, at the start of this post, I had no idea what on earth your first suggestion was doing. I made this...
  16. M

    First (real) attempt to make an ash script: Sewer.ash

    Hey everyone! I'm somewhat new to ash scripting. I've made some scripts for mafia before... but they all exclusively used "cli_execute" before it did anything. This is my first attempt to use ash commands, as well as make the script think for itself a little. This script is designed to get...
  17. M

    Bug - Fixed  has no matches

    This was discussed a little here: http://kolmafia.us/showthread.php?5231-*-has-no-matches Here's a summery of the thread: Every once in awhile, the cli doesn't handle commas well. Most of the time, if you put in: mallsell * item a, * item b, * etc Everything will work fine. But every...
  18. M

    has no matches

    Grr... today I ran the script in the first post, without making any changes. I had farmed in the kitchens again today, so I had all the items I needed the script to handle... and it worked just fine. Though when I did something similar just using the cli, selling just 4 items, it failed. And...
  19. M

    has no matches

    Here's my debug log: Unexpected error, debug log printed. class java.lang.NumberFormatException: Knob java.lang.NumberFormatException: Knob at net.sourceforge.kolmafia.utilities.StringUtilities.parseIntInternal1(StringUtilities.java:721) at...
  20. M

    has no matches

    I use cli_execute because I'm still very new at this. I'm working my way through the advance scripting guides on the wiki, but I'm not comfortable enough with it yet to use ash commands. Give me a week's worth of free time and I'll make the switch :p. I thought it was worth mentioning because...
Back
Top