Search results

  1. Ulti

    Feature Refresh topmenu on ascension

    I think implementing this change natively would takes its toll one way or another. If KoLMafia decides we need to preform some sort of operation, rather than some sort of expensive change like running an Ajax request every 2 seconds from game.php, I think a good solution is to edit charpane.php...
  2. Ulti

    Bug - Fixed Can't break from foreach for aggregates of depth 3

    Figured it out: foreach k in agg{ foreach v,v2 in agg[k] { print(k+' , '+v+' , '+v2); } break; }
  3. Ulti

    Bug - Fixed Can't break from foreach for aggregates of depth 3

    This works as expected, breaking after printing 'a -> apple' and hiding the 2nd two. ash string[string] agg;agg['a']='apple';agg['b']='blue';agg['c']='carrot';foreach k,v, in agg{print(k+' -> '+v);break;} Now, if I add an additional layer of depth, I'm unable to break from the loop and all 3...
  4. Ulti

    garbage collecting CLI command?

    Is there a CLi command for garbage collecting, the "Collect Garbage" icon on the top right in Mafia which results in something like "Reclaimed 42197 KB of memory". I'd like to be able to clear the garbage when memory is the lowest when the CLI is responding to scripts through the relay browser...
  5. Ulti

    Edscension - Your #1 Karma Farming Script

    Just looking through the code, I can see this is gonna be the next best thing since bumcheekascend. But as a general purpose script, an Ed-specific script won't completely replace it.
  6. Ulti

    Bug xpath() fails to handle node-set unions correctly which use the "|" operator

    xpath() fails to handle node-set unions correctly which use the "|" operator The mafia version I'm using is r15777. Run this and you'll get an "invalid xpath expression ()" error: ashq string[int] s=xpath(visit_url('questlog.php?which=7'),'//a[@href="campground.php"]/text() |...
  7. Ulti

    Universal Recovery Script

    well, with "Rest at your campground" and "Sleep on your clan sofa" available, I'd greatly enjoy such an addition so I get stats when resting.
  8. Ulti

    Universal Recovery Script

    Is there a way to config the script to include "rest at the chateau" regardless of free rests remaining, as a fallback if out of other recovery sources?
  9. Ulti

    bumcheekcend.ash - A zero setup semi-automated ascension script!

    Ah, score. ^_^ Odd, thought I had BBB installed before, must've forgot to run "set betweenBattleScript=BestBetweenBattle.ash". I feel like an idiot now, thanks for the advice.
  10. Ulti

    bumcheekcend.ash - A zero setup semi-automated ascension script!

    I have 3 smithsness-based outfits I use in hardcore: my main outfit: Hat: Hairpiece On Fire Weapon: Saucepanic Off-Hand: A Light that Never Goes Out Pants: Vicar's Tutu Accessory 1: Hand in Glove Accessory 2: astral mask my outfit for beefy bats and nuns: Hat: Hairpiece On Fire Weapon...
  11. Ulti

    bumcheekcend.ash - A zero setup semi-automated ascension script!

    What's the point of running the script with the "don't touch stuff" option enabled from the beginning of an ascension if the script is destined to eventually get stuck in a loop? I think an abort here would be very helpful to avoid the senseless turn-dumping, if it can simply check if it is...
  12. Ulti

    bumcheekcend.ash - A zero setup semi-automated ascension script!

    I noticed an issue with "don't touch stuff" when set to true and in possession of the "Knob Goblin Elite Guard Uniform" outfit but not wearing it, when trying to complete the goblin king quest, that it dumps all your turns into the kitchen, I current have 50 Knob mushrooms, in an attempt to get...
  13. Ulti

    bumcheekcend.ash - A zero setup semi-automated ascension script!

    The script, for multiple ascensions now, I've had to do the hidden city manually. It gets the machete, clears the vines, (it prompts me on the NCs to open the relay browser to open the side zones), but then it gets stuck here: //2 - Clear all vines and unlock hidden city area. openStage(346...
  14. Ulti

    bumcheekcend.ash - A zero setup semi-automated ascension script!

    Ya but it aborts before reaching if (have_effect($effect[Beaten Up]) > 0) abort("Script could not remove Beaten Up."); due to the returning false to main block I mentioned, which left me wondering what parts of the script to comment out if I want to adventure with beaten up active. I was...
  15. Ulti

    bumcheekcend.ash - A zero setup semi-automated ascension script!

    Been noticing the script aborting a lot. Without a way to remove beaten up in hardcore, when running cli_execute("uneffect beaten up") cli_execute returns false because it fails, and returning false to the main block aborts the script entirely. I had to wrap all the cli_execute calls around an...
  16. Ulti

    Feature ability to predefine records enabling record recursion

    Hmm, perhaps what I'd need then is a pair of functions aggregate_to_record and record_to_aggregate so it can be used as a wrapper.
  17. Ulti

    Feature ability to predefine records enabling record recursion

    What if there was added, to the language, a unifying record type, namely "record", so an instance of any record could be assigned to the record? record nestedSetTree { record nestedSetNode { string data; int left; int right; record tree;//accept any record type }[int] node; };
  18. Ulti

    Feature ability to predefine records enabling record recursion

    Both work and the point of this thread is to avoid having to use either ugly lack-of-recursion workaround. The first way defines the registry as an entity as itself and is thus more flexible if I need to add more fields to it down the line. What would I need to add? Who knows, ask my future...
  19. Ulti

    Feature ability to predefine records enabling record recursion

    While trying to create an ash equivalent of simple_html_dom.php to add to the framework I've been working on, I've been creating many workarounds to overcome ash's limitations. You can get an idea of what I've been busy with by running this state-of-the-art masterpiece in the making...
  20. Ulti

    the DOM, regex, scalability, and other jargony words

    Couldn't you just walk the nodes and reconstruct the innerHTML? Regarding giving ash node objects, I believe you could define a "record" containing integers referencing internal Java objects. I was trying to create some sort of union/mixed type before using records...
Back
Top