From 38731e0804f6b974b4fa1f91608af1b3e66dd1d2 Mon Sep 17 00:00:00 2001 From: Alium58 Date: Sun, 15 Oct 2023 08:08:52 -0500 Subject: [PATCH] working on getting quest --- RELEASE/scripts/autoscend/auto_choice_adv.ash | 4 ++++ RELEASE/scripts/autoscend/autoscend_header.ash | 3 ++- RELEASE/scripts/autoscend/iotms/mr2023.ash | 15 +++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/RELEASE/scripts/autoscend/auto_choice_adv.ash b/RELEASE/scripts/autoscend/auto_choice_adv.ash index 92fa6f7b2..222a9a766 100644 --- a/RELEASE/scripts/autoscend/auto_choice_adv.ash +++ b/RELEASE/scripts/autoscend/auto_choice_adv.ash @@ -659,6 +659,10 @@ boolean auto_run_choice(int choice, string page) run_choice(2); //Insectologist (S.I.T. Course) } break; + case 1497: // Calling Rufus + // get artifact quest + run_choice(2); + break; default: break; } diff --git a/RELEASE/scripts/autoscend/autoscend_header.ash b/RELEASE/scripts/autoscend/autoscend_header.ash index 611035964..0d59506c0 100644 --- a/RELEASE/scripts/autoscend/autoscend_header.ash +++ b/RELEASE/scripts/autoscend/autoscend_header.ash @@ -504,8 +504,9 @@ boolean wantToThrowGravel(location loc, monster enemy); boolean auto_haveSITCourse(); void auto_SITCourse(); location auto_availableBrickRift(); -boolean auto_doPhoneQuest(); boolean auto_havePayPhone(); +boolean auto_getPhoneQuest(); +boolean auto_doPhoneQuest(); boolean auto_haveMonkeyPaw(); boolean auto_makeMonkeyPawWish(effect wish); boolean auto_makeMonkeyPawWish(item wish); diff --git a/RELEASE/scripts/autoscend/iotms/mr2023.ash b/RELEASE/scripts/autoscend/iotms/mr2023.ash index 7d0513e21..c58127984 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2023.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2023.ash @@ -129,6 +129,21 @@ location auto_availableBrickRift() return $location[none]; } +boolean auto_getPhoneQuest() +{ + if(get_property("questRufus") != "unstarted") + { + // already started quest + return true; + } + + // get artifact quest + // auto_choice_adv handles actually picking it + use($item[closed-circuit pay phone]); + + return get_property("questRufus") != "unstarted"; +} + boolean auto_doPhoneQuest() { if(!auto_havePayPhone())