Search results

  1. C

    can_drink() and inebriety_limit() after Teet Path Drop

    In one of my scripts I submit a URL using cli_execute to drop the Teetotaler path after getting Stomach of Steel: cli_execute("account.php?action=unpath&pwd&confirm=on"); cli_execute("status refresh"); but I cannot find a way to get Mafia to update the can_drink() and inebriety_limit()...
  2. C

    Question about 'foreach'

    I'd like to know how to use the Foreach construct in ASH.  I have a map declared at the beginning of one of my scripts: string [string] CarColor; that I add items to during the course of the script: CarColor["Toyota"]="red"; CarColor["Ford"]="white"; CarColor["MBW"]="black"; at various points...
  3. C

    Automated Softcore Ascension

    It may not be obvious unless you're following the thread, but I removed my ascension script files from this thread because it enables the implementation of a fully automated softcore ascension, which the admins of this board may not want published. The only reason I posted here is to re-open the...
  4. C

    Quest Status Check

    I've been trying to build a set of functions to enable someone to check the status of any of the quests in the game.  I've been using the visit_url() function along with the contains_text() function to try and check out the campground quest log pages, but I'm running into a problem because in...
  5. C

    Welcome cjswimmer!

    Daychilde I sent you a PM requesting an account to the wiki. It details my short term goals for additions.
  6. C

    Powerleveling past Level 11

    This is the script I use for powerleveling after I beat the Sorceress when I need to get to a 12+ level for a particular guild skill.  This script assumes that you are in Softcore and out of Ronin.  A lot of the functions are taken from other script files that I import, but I put them all...
  7. C

    Mafia Area Hit + Avoid Ratings in ASH?

    Is there any way to determine the Mafia To Hit% and Avoid% numbers for a particular area from inside an ASH script? I currently have a script that has ratings for each area, but it doesn't calculate the percentages, just whether you're past the 'safe level' for avoidance.
  8. C

    KolMafia Pre-Release Test Script

    I'm not sure if this is the right place to start this idea, but I've been having some concerns with bugs that have appeared in the latest releases of KOLMafia. There are multiple developers that can check in changes to the program, and I know that one of the senior developers reviews the changes...
  9. C

    Tavern (ASH)

    not so much a quest, but Nightmist found the URL for turning off the faucet after using the built-in tavern quest command cli_execute("tavern"); cli_execute( "rats.php?action=faucetoff");
  10. C

    Cobb's Knob (ASH)

    void Quest_CobbKnob() { cli_execute("conditions clear"); while( item_amount($item[knob goblin harem pants]) == 0 || item_amount($item[knob goblin harem veil]) == 0 || item_amount($item[knob goblin perfume]) == 0 || item_amount($item[Cobb's Knob Lab Key]) == 0) { if (...
  11. C

    Friars (ASH)

    void Quest_Friars() { //This function depends on the Teetotaler path to be active.  You can use this //for other paths by adding or removing the can_drink() and can_eat() functions cli_execute("conditions clear"); if ((can_drink() == false) && ( my_level() >= 6 )) { if ( item_amount(...
  12. C

    Bitchin Meatcar (ASH)

    void Quest_MeatCar() { //I need to change this to test for a muscle zodiac sign to just buy the parts int ToolboxCount; cli_execute("guild.php?place=paco"); cli_execute("town_right.php?place=untinker"); while( item_amount($item[spring]) == 0 || item_amount($item[sprocket]) == 0 ||...
  13. C

    Giant Castle (ASH)

    here is the current version of my Giant Castle script.  stat Lookup_PrimaryStat() { stat ReturnStat; if( my_class() == $class[turtle tamer] || my_class() == $class[seal clubber]) { ReturnStat = $stat[muscle]; }   if( my_class() == $class[pastamancer] || my_class() == $class[sauceror]) {...
  14. C

    Orc Chasm (ASH)

    Orc Chasm void Quest_OrcChasm() { boolean GoForStatScript; GoForStatScript = false; int 334Count; int 30669Count; cli_execute("conditions clear"); council(); if (GoForStatScript == true) {334Count = 4; 30669Count = 2; } else {334Count = 2; 30669Count = 1; } if ( item_amount($item[334...
Top