Search results

  1. 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...
  2. S

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

    @zarqon Those are excellent points. I see now that the call solution is indeed viable, and I may end up using it. Thanks! @Veracity It's like (apply #'function args...) in Lisp, or invokeMethod in Java. You're exactly right. I actually learned to program in Scheme, so I tend to yearn for the...
  3. S

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

    Two things: 1. I was under the impression that it was a bad idea to call one ASH script from within another. Does wrapping the call in a cli_execute make this "better"? 2. The cli_execute solution has some inherent problems of its own. To my knowledge, cli_execute() has no return value, and...
  4. S

    Standardized ash libs

    Is the std ASH library still being compiled? I threw together an "implode" function for zarqon a few days ago that may be useful to others (see msg post here: http://kolmafia.us/index.php/topic,2030.msg9971.html#msg9971).
  5. S

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

    Sorry to resurrect, but I'm writing some new scripts and would very much like a concrete answer to my #2 question from above: zarqon pointed out that cli_execute() will do exactly that. However, I'm only aware of how to use cli_execute() to call built-in cli functions (as opposed to...
  6. S

    Chat Script & Compiling Issues

    It's very strange that the JDK won't install properly on your system. XP is definitely supported by Sun; I'd try to troubleshoot the JDK installation with them.
  7. S

    Is there a complement to string_split()? e.g. implode()

    It's the least I can do for the Wossname.ash author. ;) Easily my favorite script.
  8. S

    Need help with a Hardcore recoveryScript

    I wouldn't tailor anything to how I play. ;-) I'm going to horrify a lot of people by saying this, but I alternate adventuring with an NPZR and a sombrero when I'm in HC, so MP is rarely an issue; I heal with skills. As for keeping pixel potions, etc. on hand, maybe the user could specify that...
  9. S

    Is there a complement to string_split()? e.g. implode()

    Hopefully this will help: string implode(string[int] source, string glue) { string result = ""; int c = count(source); int i = 0; // Compiling most of the data... while (i < c - 1) { result = result + source[i] + glue; i = i + 1; } // Compiling final result = result + source[i]...
  10. S

    Need help with a Hardcore recoveryScript

    Bale, this looks like a fantastic script concept. Here's my suggestion for improvement: create a priority list of the restorers (resting, inventory items, purchased items, mp), and allow the user to edit the list. For example, a user who was really trying hard to save meat for some big ticket...
  11. S

    bug/feature: 31337 scroll before 64735 scroll, when bounty hunting

    I thought the default conditions for that area were 1 64735 scroll and 1 lowercase n. Replacing one condition set with another is something else entirely. In the case of a bounty, it wouldn't make sense for the conditions to include a 67345 scroll, as the scroll has nothing to do with a bounty...
  12. S

    Chat Script & Compiling Issues

    What is "the only java compiler you've found"? Is Sun's JDK not supported on your system?
  13. S

    is this possible?

    You're looking for moon_phase(). moon_phase will return an integer from 0 to 16 that denotes the current stage of Ronald and Grimace (the comet is not factored into this number). Depending on what particular phases you're looking for, you can check for various values. On a mildly related note...
  14. 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...
  15. S

    Max food/booze adventures from storage items

    You're quite welcome. I've actually been toying around with some enhancements to the script, making it easily customizable and whatnot. I'll try to post the new versions within the next week or two.
  16. S

    KoLmafia on a server

    In order to run kolmafia, you're going to need at least a java runtime installed. If you want to compile daily builds, you'll need an SDK java installation. If your server does not have java installed, then it can't run java programs. If you have root access on the server, you should be able to...
  17. S

    Modified mushroom script to produce 3rd +4th gen crop

    Definitely. My script is by no means optimal; it was sort of a "proof of concept" that got fleshed out and documented. ;-) If you want to make your own script off my base, go right ahead. Please keep my name on it somewhere, but you'd be the script author. Happy coding!
  18. S

    One-Click Wossname -- automatic level 12 quest completion

    For those interested, this code adds support for a nun-area familiar. It does NOT remove the previous functionality of "best meat" familiar, so it's entirely possible I was simply using the "best familiar" functionality incorrectly. In any case, this allows the hobo monkey to override the...
  19. S

    New ASH function request! retrieve_item_cheapskate()

    It seems the powers that be have decreed "thou shalt not search the mall for lowest price, lest thine creation result in a mallbot." See topics: http://kolmafia.us/index.php/topic,1362.0.html http://kolmafia.us/index.php/topic,41.0.html http://kolmafia.us/index.php/topic,352.0.html...
  20. S

    New ASH function request! retrieve_item_cheapskate()

    I don't think any of those ideas need to be implemented in ASH itself. I'm fairly certain ASH programmers/I would be able to make things like "retrieve_item(int quantity, item it, int budget)" as wrappers to existing functions. If you're interested, I'd be happy to offer out my services for hire...
Back
Top