From 48ecccb86c692bf0c3db15e206aecc258dd46749 Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Mon, 5 Jun 2023 09:06:39 -0400 Subject: [PATCH 01/11] adding some basic pulls to dailies for LoL --- .../autoscend/paths/legacy_of_loathing.ash | 38 ++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash index f472dc34b..ee01874f4 100644 --- a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash +++ b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash @@ -215,4 +215,40 @@ void auto_LegacyOfLoathingDailies() { use(1, $item[replica Smith\'s Tome]); // get items } -} + + pullXWhenHaveY($item[Breathitin™], 1, 0); + if (item_amount($item[Breathitin™]) > 0) + { + use(1, $item[Breathitin™]); // get free outdoor fight charges + } + else + { + print("Failed to pull a Breathitin","red"); + } + + if (get_property(homebodylCharges).to_int() == 0) + { + pullXWhenHaveY($item[Homebodyl™], 1, 0); + if (item_amount($item[Homebodyl™]) > 0) + { + use(1, $item[Homebodyl™]); // get free craft charges + } + else + { + print("Failed to pull a Homebodyl","red"); + } + } + + if (get_property(chasmBridgeProgress).to_int() < 30) + { + pullXWhenHaveY($item[smut orc keepsake box], 1, 0); + if (item_amount($item[smut orc keepsake box]) > 0) + { + use(1, $item[smut orc keepsake box]); // get bridge parts + } + else + { + print("Failed to pull a smut orc keepsake box","red"); + } + } +} \ No newline at end of file From 86cfe7b534dda7278d6b55fd5d57e9061b224279 Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Mon, 5 Jun 2023 09:07:22 -0400 Subject: [PATCH 02/11] attempting to enable replica Deck of Every Card usage in LoL --- RELEASE/scripts/autoscend/iotms/mr2015.ash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE/scripts/autoscend/iotms/mr2015.ash b/RELEASE/scripts/autoscend/iotms/mr2015.ash index d79dd4983..4d540d011 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2015.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2015.ash @@ -613,7 +613,7 @@ boolean chateauPainting() boolean deck_available() { - return ((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])); + return (((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])) || ((item_amount($item[Replica Deck of Every Card]) > 0) && (in_lol()))); } int deck_draws_left() From 904ad0ab98fb45b36253b975cd120581758652bb Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Mon, 5 Jun 2023 10:28:45 -0400 Subject: [PATCH 03/11] fixing pull formatting / syntax --- .../autoscend/paths/legacy_of_loathing.ash | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash index ee01874f4..549ce9f17 100644 --- a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash +++ b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash @@ -31,10 +31,14 @@ boolean lol_buyReplicas() // attempt to buy 2023 IOTM first as if you one them, they are immediately available // then attempt to buy sequentially year by year starting with 2004 // note with enough progress, can a second option up to year 2012 - if(contains_text(page, "cincho")) //2023 + if(contains_text(page, "cincho")) //May 2023 { buy($coinmaster[Replica Mr. Store], 1, $item[replica Cincho de Mayo]); } + else if(contains_text(page,"2002")) //June 2023 + { + buy($coinmaster[Replica Mr. Store], 1, $item[Replica 2002 Mr. Store Catalog]); //no mafia support yet, but at least buy it + } else if(contains_text(page, "2004")) { if(!contains_text(page, "replica dark jill-o-lantern") || !contains_text(page, "replica hand turkey outline")) @@ -216,22 +220,22 @@ void auto_LegacyOfLoathingDailies() use(1, $item[replica Smith\'s Tome]); // get items } - pullXWhenHaveY($item[Breathitin™], 1, 0); - if (item_amount($item[Breathitin™]) > 0) + pullXWhenHaveY($item[Breathitin™], 1, 0); + if (item_amount($item[Breathitin™]) > 0) { - use(1, $item[Breathitin™]); // get free outdoor fight charges + use(1, $item[Breathitin™]); // get free outdoor fight charges } else { print("Failed to pull a Breathitin","red"); } - if (get_property(homebodylCharges).to_int() == 0) + if (get_property("homebodylCharges").to_int() == 0) { - pullXWhenHaveY($item[Homebodyl™], 1, 0); - if (item_amount($item[Homebodyl™]) > 0) + pullXWhenHaveY($item[Homebodyl™], 1, 0); + if (item_amount($item[Homebodyl™]) > 0) { - use(1, $item[Homebodyl™]); // get free craft charges + use(1, $item[Homebodyl™]); // get free craft charges } else { @@ -239,7 +243,7 @@ void auto_LegacyOfLoathingDailies() } } - if (get_property(chasmBridgeProgress).to_int() < 30) + if (get_property("chasmBridgeProgress").to_int() < 30) { pullXWhenHaveY($item[smut orc keepsake box], 1, 0); if (item_amount($item[smut orc keepsake box]) > 0) @@ -251,4 +255,4 @@ void auto_LegacyOfLoathingDailies() print("Failed to pull a smut orc keepsake box","red"); } } -} \ No newline at end of file +} From ac66777bc7673cbeea5edeacab0011adf045277d Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Mon, 5 Jun 2023 10:45:51 -0400 Subject: [PATCH 04/11] super basic 2002 catalog stuff, disabling replica deck support pending troubleshooting --- RELEASE/scripts/autoscend/iotms/mr2015.ash | 3 ++- RELEASE/scripts/autoscend/iotms/mr2023.ash | 21 +++++++++++++++++++ .../autoscend/paths/legacy_of_loathing.ash | 5 +++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/RELEASE/scripts/autoscend/iotms/mr2015.ash b/RELEASE/scripts/autoscend/iotms/mr2015.ash index 4d540d011..0abbadc7d 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2015.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2015.ash @@ -613,7 +613,8 @@ boolean chateauPainting() boolean deck_available() { - return (((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])) || ((item_amount($item[Replica Deck of Every Card]) > 0) && (in_lol()))); + //return (((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])) || ((item_amount($item[Replica Deck of Every Card]) > 0) && (in_lol()))); + return ((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])); } int deck_draws_left() diff --git a/RELEASE/scripts/autoscend/iotms/mr2023.ash b/RELEASE/scripts/autoscend/iotms/mr2023.ash index 2260636f0..50099a820 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2023.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2023.ash @@ -263,3 +263,24 @@ boolean shouldCinchoConfetti() // canSurvive checked in calling location. This function is only available to combat files return true; } + +boolean auto_haveCatalog() +{ + // check for normal version + static item catalog = $item[2002 Mr. Store Catalog]; + if(auto_is_valid(catalog) && (item_amount(catalog) > 0)) + { + return true; + } + + // check for replica in LoL path + static item replicaCatalog = $item[replica 2002 Mr. Store Catalog]; + return auto_is_valid(replicaCatalog) && (item_amount(replicaCatalog) > 0); + +} + +boolean auto_useCatalog() +{ + //http://127.0.0.1:60080/inv_use.php?pwd=e9b6ac69c68f79351fa5dd7016617c4d&which=3&whichitem=11280 + +} \ No newline at end of file diff --git a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash index 549ce9f17..982159cd2 100644 --- a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash +++ b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash @@ -220,6 +220,11 @@ void auto_LegacyOfLoathingDailies() use(1, $item[replica Smith\'s Tome]); // get items } + if(item_amount($item[Replica 2002 Mr. Store Catalog]) > 0) + { + use(1, $item[Replica 2002 Mr. Store Catalog]); //get catalog credits + } + pullXWhenHaveY($item[Breathitin™], 1, 0); if (item_amount($item[Breathitin™]) > 0) { From 2427e57288e398c58af5a8b7d1284b0dd55bf38c Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Mon, 5 Jun 2023 10:47:31 -0400 Subject: [PATCH 05/11] cleanup --- RELEASE/scripts/autoscend/iotms/mr2023.ash | 6 ------ 1 file changed, 6 deletions(-) diff --git a/RELEASE/scripts/autoscend/iotms/mr2023.ash b/RELEASE/scripts/autoscend/iotms/mr2023.ash index 50099a820..d2b1ef25f 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2023.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2023.ash @@ -277,10 +277,4 @@ boolean auto_haveCatalog() static item replicaCatalog = $item[replica 2002 Mr. Store Catalog]; return auto_is_valid(replicaCatalog) && (item_amount(replicaCatalog) > 0); -} - -boolean auto_useCatalog() -{ - //http://127.0.0.1:60080/inv_use.php?pwd=e9b6ac69c68f79351fa5dd7016617c4d&which=3&whichitem=11280 - } \ No newline at end of file From 76640e54cdc53a05e366ae64efab670f6c65cbba Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Thu, 8 Jun 2023 10:45:58 -0400 Subject: [PATCH 06/11] updating since to account for coinmaster updates --- RELEASE/scripts/autoscend.ash | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/RELEASE/scripts/autoscend.ash b/RELEASE/scripts/autoscend.ash index d8e23026a..849843822 100644 --- a/RELEASE/scripts/autoscend.ash +++ b/RELEASE/scripts/autoscend.ash @@ -1,4 +1,4 @@ -since r27374; // track noncombat forcers +since r27400; // Coinmaster support for Mr. Replica /*** autoscend_header.ash must be first import All non-accessory scripts must be imported here @@ -1107,6 +1107,21 @@ boolean dailyEvents() } } + if(!isActuallyEd() && day > 1) + { + pullXWhenHaveY($item[Breathitin™], 1, 0); + if (item_amount($item[Breathitin™]) > 0) + { + use(1, $item[Breathitin™]); // get free outdoor fight charges + auto_log_info("Huffing some Breathitin before adventuring for the day. That's the stuff!","blue"); + } + else + { + auto_log_info("Couldn't pull a Breathitin. Be a lot cooler if we could.","red"); + } + } + + auto_getGuzzlrCocktailSet(); auto_latheAppropriateWeapon(); auto_harvestBatteries(); From fdaf10c9c2e98b64a140d286083d9ad722e593e5 Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Thu, 8 Jun 2023 10:46:44 -0400 Subject: [PATCH 07/11] moving pull logic around to where it makes more sense --- .../autoscend/paths/legacy_of_loathing.ash | 25 +------------------ RELEASE/scripts/autoscend/quests/level_05.ash | 14 +++++++++++ RELEASE/scripts/autoscend/quests/level_09.ash | 14 +++++++++++ RELEASE/scripts/autoscend/quests/level_11.ash | 13 ++++++++++ 4 files changed, 42 insertions(+), 24 deletions(-) diff --git a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash index 982159cd2..c8bb8e32a 100644 --- a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash +++ b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash @@ -225,30 +225,7 @@ void auto_LegacyOfLoathingDailies() use(1, $item[Replica 2002 Mr. Store Catalog]); //get catalog credits } - pullXWhenHaveY($item[Breathitin™], 1, 0); - if (item_amount($item[Breathitin™]) > 0) - { - use(1, $item[Breathitin™]); // get free outdoor fight charges - } - else - { - print("Failed to pull a Breathitin","red"); - } - - if (get_property("homebodylCharges").to_int() == 0) - { - pullXWhenHaveY($item[Homebodyl™], 1, 0); - if (item_amount($item[Homebodyl™]) > 0) - { - use(1, $item[Homebodyl™]); // get free craft charges - } - else - { - print("Failed to pull a Homebodyl","red"); - } - } - - if (get_property("chasmBridgeProgress").to_int() < 30) + if (get_property("chasmBridgeProgress").to_int() == 0) { pullXWhenHaveY($item[smut orc keepsake box], 1, 0); if (item_amount($item[smut orc keepsake box]) > 0) diff --git a/RELEASE/scripts/autoscend/quests/level_05.ash b/RELEASE/scripts/autoscend/quests/level_05.ash index 283ea1560..71ab476ec 100644 --- a/RELEASE/scripts/autoscend/quests/level_05.ash +++ b/RELEASE/scripts/autoscend/quests/level_05.ash @@ -30,6 +30,20 @@ boolean L5_getEncryptionKey() } } + if(!isActuallyEd()) + { + pullXWhenHaveY($item[Breathitin™], 1, 0); + if (item_amount($item[Breathitin™]) > 0) + { + use(1, $item[Breathitin™]); // get free outdoor fight charges + auto_log_info("Huffing some Breathitin before looking for the encryption key. That's the stuff!","blue"); + } + else + { + auto_log_info("Couldn't pull a Breathitin. Be a lot cooler if we could.","red"); + } + } + auto_log_info("Looking for the knob.", "blue"); return autoAdv($location[The Outskirts of Cobb\'s Knob]); } diff --git a/RELEASE/scripts/autoscend/quests/level_09.ash b/RELEASE/scripts/autoscend/quests/level_09.ash index 3e8425e7a..f2bca38b1 100644 --- a/RELEASE/scripts/autoscend/quests/level_09.ash +++ b/RELEASE/scripts/autoscend/quests/level_09.ash @@ -210,6 +210,19 @@ void prepareForSmutOrcs() // This adds a tonne of damage and NC progress buffMaintain($effect[Triple-Sized]); + + // pull a keepsake box if we can + pullXWhenHaveY($item[smut orc keepsake box], 1, 0); + if (item_amount($item[smut orc keepsake box]) > 0) + { + use(1, $item[smut orc keepsake box]); // get bridge parts + auto_log_info("Pulled a smut orc keepsake box and opened it. Ew.","blue"); + } + else + { + auto_log_info("Failed to pull a smut orc keepsake box. I don't think you really wanted to know what was in there, though.","red"); + } + if(get_property("smutOrcNoncombatProgress").to_int() == 15) { @@ -310,6 +323,7 @@ boolean L9_chasmBuild() visit_url("place.php?whichplace=orc_chasm&action=bridge"+(to_int(get_property("chasmBridgeProgress")))); // use any keepsake boxes we have + if(item_amount($item[Smut Orc Keepsake Box]) > 0 && auto_is_valid($item[Smut Orc Keepsake Box])) { use(1, $item[Smut Orc Keepsake Box]); diff --git a/RELEASE/scripts/autoscend/quests/level_11.ash b/RELEASE/scripts/autoscend/quests/level_11.ash index 73779b5e6..e9394bf40 100644 --- a/RELEASE/scripts/autoscend/quests/level_11.ash +++ b/RELEASE/scripts/autoscend/quests/level_11.ash @@ -2205,6 +2205,19 @@ boolean L11_mauriceSpookyraven() { auto_log_info("Time to cook up something explosive! Science fair unstable fulminate time!", "green"); ovenHandle(); + if(freeCrafts() == 0) + { + pullXWhenHaveY($item[Homebodyl™], 1, 0); + if (item_amount($item[Homebodyl™]) > 0) + { + use(1, $item[Homebodyl™]); // get free craft charges + auto_log_info("Huffing some Homebodyl and hyperfocusing on kitchen-grade demolitions.","blue"); + } + else + { + auto_log_info("Couldn't pull a Homebodyl. Square.","red"); + } + } autoCraft("cook", 1, $item[bottle of Chateau de Vinegar], $item[blasting soda]); if(item_amount($item[Unstable Fulminate]) == 0) { From 5a46e29471d85bb92d494bdc57a23dff9c288230 Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Thu, 8 Jun 2023 11:06:44 -0400 Subject: [PATCH 08/11] day -> my_daycount(), bumping since to the version used for current testing --- RELEASE/scripts/autoscend.ash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE/scripts/autoscend.ash b/RELEASE/scripts/autoscend.ash index 849843822..6b9eb006e 100644 --- a/RELEASE/scripts/autoscend.ash +++ b/RELEASE/scripts/autoscend.ash @@ -1,4 +1,4 @@ -since r27400; // Coinmaster support for Mr. Replica +since r27402; // Coinmaster support for Mr. Replica /*** autoscend_header.ash must be first import All non-accessory scripts must be imported here @@ -1107,7 +1107,7 @@ boolean dailyEvents() } } - if(!isActuallyEd() && day > 1) + if(!isActuallyEd() && my_daycount() > 1) { pullXWhenHaveY($item[Breathitin™], 1, 0); if (item_amount($item[Breathitin™]) > 0) From d8331531b166065d4b724f202a08ea425c1b81c9 Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Thu, 8 Jun 2023 11:34:15 -0400 Subject: [PATCH 09/11] commenting out catalog until the coinmaster supports it --- RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash index c8bb8e32a..202792a7a 100644 --- a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash +++ b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash @@ -35,10 +35,10 @@ boolean lol_buyReplicas() { buy($coinmaster[Replica Mr. Store], 1, $item[replica Cincho de Mayo]); } - else if(contains_text(page,"2002")) //June 2023 - { - buy($coinmaster[Replica Mr. Store], 1, $item[Replica 2002 Mr. Store Catalog]); //no mafia support yet, but at least buy it - } + //else if(contains_text(page,"2002")) //June 2023 + //{ + // buy($coinmaster[Replica Mr. Store], 1, $item[Replica 2002 Mr. Store Catalog]); //no mafia support yet, but at least buy it + //} else if(contains_text(page, "2004")) { if(!contains_text(page, "replica dark jill-o-lantern") || !contains_text(page, "replica hand turkey outline")) From 99931360ea271b74a1a810a34d52581593f15322 Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Thu, 8 Jun 2023 11:34:55 -0400 Subject: [PATCH 10/11] Enabling Deck support --- RELEASE/scripts/autoscend/iotms/mr2015.ash | 26 ++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/RELEASE/scripts/autoscend/iotms/mr2015.ash b/RELEASE/scripts/autoscend/iotms/mr2015.ash index 0abbadc7d..9ed1e52de 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2015.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2015.ash @@ -613,8 +613,7 @@ boolean chateauPainting() boolean deck_available() { - //return (((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])) || ((item_amount($item[Replica Deck of Every Card]) > 0) && (in_lol()))); - return ((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])); + return (((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])) || ((item_amount($item[Replica Deck of Every Card]) > 0) && (in_lol()))); } int deck_draws_left() @@ -645,7 +644,17 @@ boolean deck_draw() { return false; } - string page = visit_url("inv_use.php?pwd=&which=3&whichitem=8382"); + + string deckItemId = ""; + if(in_lol()) + { + deckItemId = "11230"; + } + else + { + deckItemId = "8382"; + } + string page = visit_url("inv_use.php?cheat=1&pwd=&whichitem=" + deckItemId); page = visit_url("choice.php?pwd=&whichchoice=1085&option=1", true); return true; } @@ -780,8 +789,17 @@ boolean deck_cheat(string cheat) } } + string deckItemId = ""; - string page = visit_url("inv_use.php?cheat=1&pwd=&whichitem=8382"); + if(in_lol()) + { + deckItemId = "11230"; + } + else + { + deckItemId = "8382"; + } + string page = visit_url("inv_use.php?cheat=1&pwd=&whichitem=" + deckItemId); // Check that a valid card was selected, otherwise this wastes 5 draws. if(card != 0) From 639802453a8e92c8f0f44f3b029954b696ec3e05 Mon Sep 17 00:00:00 2001 From: SaucedButLeaking Date: Fri, 16 Jun 2023 11:22:25 -0400 Subject: [PATCH 11/11] tidying, adding checks, and moving some logic around --- RELEASE/scripts/autoscend.ash | 12 ++++++++--- RELEASE/scripts/autoscend/iotms/mr2015.ash | 1 + .../autoscend/paths/legacy_of_loathing.ash | 19 +++-------------- RELEASE/scripts/autoscend/quests/level_05.ash | 2 +- RELEASE/scripts/autoscend/quests/level_09.ash | 21 +++++++------------ RELEASE/scripts/autoscend/quests/level_11.ash | 13 ------------ 6 files changed, 22 insertions(+), 46 deletions(-) diff --git a/RELEASE/scripts/autoscend.ash b/RELEASE/scripts/autoscend.ash index 6b9eb006e..8047980e5 100644 --- a/RELEASE/scripts/autoscend.ash +++ b/RELEASE/scripts/autoscend.ash @@ -1115,11 +1115,17 @@ boolean dailyEvents() use(1, $item[Breathitin™]); // get free outdoor fight charges auto_log_info("Huffing some Breathitin before adventuring for the day. That's the stuff!","blue"); } - else + } + + if(freeCrafts() == 0 && canChew($item[Homebodyl™]) && spleen_left() >= $item[Homebodyl™].spleen) { - auto_log_info("Couldn't pull a Breathitin. Be a lot cooler if we could.","red"); + pullXWhenHaveY($item[Homebodyl™], 1, 0); + if (item_amount($item[Homebodyl™]) > 0) + { + use(1, $item[Homebodyl™]); // get free craft charges + auto_log_info("Huffing some Homebodyl and hyperfocusing on kitchen-grade demolitions.","blue"); + } } - } auto_getGuzzlrCocktailSet(); diff --git a/RELEASE/scripts/autoscend/iotms/mr2015.ash b/RELEASE/scripts/autoscend/iotms/mr2015.ash index 9ed1e52de..a6f2aba36 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2015.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2015.ash @@ -793,6 +793,7 @@ boolean deck_cheat(string cheat) if(in_lol()) { + //replica Deck id for when in Legacy of Loathing deckItemId = "11230"; } else diff --git a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash index 202792a7a..319b22540 100644 --- a/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash +++ b/RELEASE/scripts/autoscend/paths/legacy_of_loathing.ash @@ -210,31 +210,18 @@ boolean lol_buyReplicas() void auto_LegacyOfLoathingDailies() { - if(item_amount($item[replica Libram of Resolutions]) > 0) + if(item_amount($item[replica Libram of Resolutions]) > 0 && get_property("_replicaResolutionsLibramUsed") == "false") { use(1, $item[replica Libram of Resolutions]); // get items } - if(item_amount($item[replica Smith\'s Tome]) > 0) + if(item_amount($item[replica Smith\'s Tome]) > 0 && get_property("_replicaSmithsTomeUsed") == "false") { use(1, $item[replica Smith\'s Tome]); // get items } - if(item_amount($item[Replica 2002 Mr. Store Catalog]) > 0) + if(item_amount($item[Replica 2002 Mr. Store Catalog]) > 0 && get_property("_2002MrStoreCreditsCollected") == "false") { use(1, $item[Replica 2002 Mr. Store Catalog]); //get catalog credits } - - if (get_property("chasmBridgeProgress").to_int() == 0) - { - pullXWhenHaveY($item[smut orc keepsake box], 1, 0); - if (item_amount($item[smut orc keepsake box]) > 0) - { - use(1, $item[smut orc keepsake box]); // get bridge parts - } - else - { - print("Failed to pull a smut orc keepsake box","red"); - } - } } diff --git a/RELEASE/scripts/autoscend/quests/level_05.ash b/RELEASE/scripts/autoscend/quests/level_05.ash index 71ab476ec..90ef8d05f 100644 --- a/RELEASE/scripts/autoscend/quests/level_05.ash +++ b/RELEASE/scripts/autoscend/quests/level_05.ash @@ -30,7 +30,7 @@ boolean L5_getEncryptionKey() } } - if(!isActuallyEd()) + if(!isActuallyEd() && canChew($item[Breathitin™]) && spleen_left() >= $item[Breathitin™].spleen)) { pullXWhenHaveY($item[Breathitin™], 1, 0); if (item_amount($item[Breathitin™]) > 0) diff --git a/RELEASE/scripts/autoscend/quests/level_09.ash b/RELEASE/scripts/autoscend/quests/level_09.ash index f2bca38b1..dd5288628 100644 --- a/RELEASE/scripts/autoscend/quests/level_09.ash +++ b/RELEASE/scripts/autoscend/quests/level_09.ash @@ -210,19 +210,6 @@ void prepareForSmutOrcs() // This adds a tonne of damage and NC progress buffMaintain($effect[Triple-Sized]); - - // pull a keepsake box if we can - pullXWhenHaveY($item[smut orc keepsake box], 1, 0); - if (item_amount($item[smut orc keepsake box]) > 0) - { - use(1, $item[smut orc keepsake box]); // get bridge parts - auto_log_info("Pulled a smut orc keepsake box and opened it. Ew.","blue"); - } - else - { - auto_log_info("Failed to pull a smut orc keepsake box. I don't think you really wanted to know what was in there, though.","red"); - } - if(get_property("smutOrcNoncombatProgress").to_int() == 15) { @@ -322,6 +309,14 @@ boolean L9_chasmBuild() // make sure our progress count is correct before we do anything. visit_url("place.php?whichplace=orc_chasm&action=bridge"+(to_int(get_property("chasmBridgeProgress")))); + // pull a keepsake box if we can + pullXWhenHaveY($item[smut orc keepsake box], 1, 0); + if (item_amount($item[smut orc keepsake box]) > 0) + { + use(1, $item[smut orc keepsake box]); // get bridge parts + auto_log_info("Pulled a smut orc keepsake box and opened it. Ew.","blue"); + } + // use any keepsake boxes we have if(item_amount($item[Smut Orc Keepsake Box]) > 0 && auto_is_valid($item[Smut Orc Keepsake Box])) diff --git a/RELEASE/scripts/autoscend/quests/level_11.ash b/RELEASE/scripts/autoscend/quests/level_11.ash index e9394bf40..73779b5e6 100644 --- a/RELEASE/scripts/autoscend/quests/level_11.ash +++ b/RELEASE/scripts/autoscend/quests/level_11.ash @@ -2205,19 +2205,6 @@ boolean L11_mauriceSpookyraven() { auto_log_info("Time to cook up something explosive! Science fair unstable fulminate time!", "green"); ovenHandle(); - if(freeCrafts() == 0) - { - pullXWhenHaveY($item[Homebodyl™], 1, 0); - if (item_amount($item[Homebodyl™]) > 0) - { - use(1, $item[Homebodyl™]); // get free craft charges - auto_log_info("Huffing some Homebodyl and hyperfocusing on kitchen-grade demolitions.","blue"); - } - else - { - auto_log_info("Couldn't pull a Homebodyl. Square.","red"); - } - } autoCraft("cook", 1, $item[bottle of Chateau de Vinegar], $item[blasting soda]); if(item_amount($item[Unstable Fulminate]) == 0) {