From c31faa63308c95fbd4d1b2ded0fe41b9fb4df236 Mon Sep 17 00:00:00 2001 From: Alium58 Date: Sun, 20 Oct 2024 22:56:40 -0500 Subject: [PATCH 1/3] initial checkin --- RELEASE/scripts/autoscend.ash | 1 + .../scripts/autoscend/autoscend_header.ash | 3 + RELEASE/scripts/autoscend/iotms/mr2024.ash | 67 +++++++++++++++++++ 3 files changed, 71 insertions(+) diff --git a/RELEASE/scripts/autoscend.ash b/RELEASE/scripts/autoscend.ash index a0426cd3a..baeb40656 100644 --- a/RELEASE/scripts/autoscend.ash +++ b/RELEASE/scripts/autoscend.ash @@ -1177,6 +1177,7 @@ boolean dailyEvents() auto_useBlackMonolith(); auto_scepterSkills(); auto_getAprilingBandItems(); + auto_buyFromSeptEmberStore(); return true; } diff --git a/RELEASE/scripts/autoscend/autoscend_header.ash b/RELEASE/scripts/autoscend/autoscend_header.ash index 93f5c4194..f1ff62a85 100644 --- a/RELEASE/scripts/autoscend/autoscend_header.ash +++ b/RELEASE/scripts/autoscend/autoscend_header.ash @@ -571,6 +571,9 @@ boolean auto_MayamClaimAll(); boolean auto_haveRoman(); boolean auto_haveBatWings(); boolean auto_canLeapBridge(); +boolean auto_haveSeptEmberCenser(); +int remainingEmbers(); +void auto_buyFromSeptEmberStore(); ######################################################################################################## //Defined in autoscend/paths/actually_ed_the_undying.ash diff --git a/RELEASE/scripts/autoscend/iotms/mr2024.ash b/RELEASE/scripts/autoscend/iotms/mr2024.ash index c1392eea4..26f9d9ed0 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2024.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2024.ash @@ -381,3 +381,70 @@ boolean auto_canLeapBridge() } return true; } + +boolean auto_haveSeptEmberCenser() +{ + if(auto_is_valid($item[Sept-Ember Censer]) && available_amount($item[Sept-Ember Censer]) > 0 ) + { + return true; + } + return false; +} + +int remainingEmbers() +{ + if(!auto_haveSeptEmberCenser()) + { + return 0; + } + if(!get_property("_septEmberBalanceChecked").to_boolean()) + { + // go to ember shop to check our balance + use($item[Sept-Ember Censer]); + } + return get_property("availableSeptEmbers").to_int(); +} + +void auto_buyFromSeptEmberStore() +{ + if(remainingEmbers() == 0) + { + return; + } + auto_log_debug("Have " + remainingEmbers() + " embers(s) to buy from Sept-Ember Censer. Let's spend them!"); + // get structural ember if can't cross bridge + item itemConsidering = $item[Structural ember]; + if(remainingEmbers() >= 4 && get_property("chasmBridgeProgress").to_int() < bridgeGoal() && + !get_property("_structuralEmberUsed").to_boolean() && auto_is_valid(itemConsidering)) + { + buy($coinmaster[Sept-Ember Censer], 1, itemConsidering); + use(itemConsidering); + } + // get 1 bembershoot to support mouthwash leveling or general quest help + itemConsidering = $item[bembershoot]; + if(remainingEmbers() >= 1 && !possessEquipment(itemConsidering) && auto_is_valid(itemConsidering)) + { + buy($coinmaster[Sept-Ember Censer], 1, itemConsidering); + } + // mouthwash for leveling + itemConsidering = $item[Mmm-brr! brand mouthwash]; + if(remainingEmbers() >= 2 && (my_level() < 13 || get_property("auto_disregardInstantKarma").to_boolean()) && auto_is_valid(itemConsidering)) + { + // get as much cold res as possible + int [element] resGoal; + resGoal[$element[cold]] = 100; + // get cold res. Use noob cave as generic place holder + provideResistances(resGoal, $location[noob cave], true); + equipMaximizedGear(); + // buy mouthwash and use it + buy($coinmaster[Sept-Ember Censer], 1, itemConsidering); + use(itemConsidering); + } + // if still have embers, get hat for mp regen + itemConsidering = $item[Hat of remembering]; + if(remainingEmbers() >= 1 && !possessEquipment(itemConsidering) && auto_is_valid(itemConsidering)) + { + buy($coinmaster[Sept-Ember Censer], 1, itemConsidering); + } + // consider throwin' ember for banish or summoning charm for pickpocket in future PR +} From d743974ad5e35161aab61f4be1b47fd31e790e9c Mon Sep 17 00:00:00 2001 From: Alium58 Date: Mon, 21 Oct 2024 07:32:57 -0500 Subject: [PATCH 2/3] record cold res when using mouthwash --- RELEASE/scripts/autoscend/iotms/mr2024.ash | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE/scripts/autoscend/iotms/mr2024.ash b/RELEASE/scripts/autoscend/iotms/mr2024.ash index 26f9d9ed0..884cdd122 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2024.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2024.ash @@ -438,6 +438,7 @@ void auto_buyFromSeptEmberStore() equipMaximizedGear(); // buy mouthwash and use it buy($coinmaster[Sept-Ember Censer], 1, itemConsidering); + auto_log_debug(`Using mouthwash with {numeric_modifier("cold Resistance")} cold resistance`); use(itemConsidering); } // if still have embers, get hat for mp regen From b5aba5774a16cdc049b7e9c85b061f45e34ae1aa Mon Sep 17 00:00:00 2001 From: Alium58 Date: Mon, 21 Oct 2024 18:49:05 -0500 Subject: [PATCH 3/3] wish for more cold res --- RELEASE/scripts/autoscend/iotms/mr2024.ash | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE/scripts/autoscend/iotms/mr2024.ash b/RELEASE/scripts/autoscend/iotms/mr2024.ash index 884cdd122..0bbdf7a0c 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2024.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2024.ash @@ -434,6 +434,7 @@ void auto_buyFromSeptEmberStore() int [element] resGoal; resGoal[$element[cold]] = 100; // get cold res. Use noob cave as generic place holder + auto_wishForEffect($effect[Fever From the Flavor]); provideResistances(resGoal, $location[noob cave], true); equipMaximizedGear(); // buy mouthwash and use it