Deathless Assassin
Member
This is a pair of scripts for stasising the basement for mimic farming, due to the creatures there having a 50 round limit. The first script attempts to get to check for all the appropriate consumables, then use them, then check for all needed potions, then use them. I'm using specified items in lieu of something like eatdrink because I'm on the vesper consumption leaderboards, and the remainder of the optimal diet is unlikely to change. For the adventuring script, I want it to fling turns at Fernswarthy's grandfather 100 times to charge my stinky cheese, then fling the rest of my turns without the cheese equipped. Then nightcap and put on rollover gear.
How could I get it so it chooses the correct chocolate class instrument for anyone?
I tried to make it so that it would calculate how many buff potions of each type I would need based on how many turns I have (adding an additional 5 to account for a time's arrow), but I almost certainly did it incorrectly. I also need to factor in any existing turns of the buff somehow.
How can I get it to automatically replace a bartender if mine explodes in the midst of its duties?
I'll be running and getting a free runaway 20% of the time. How can I either fix it so I use 100 combats, as opposed to 100 turns, or make it so it automatically unequips the stinky cheese item as soon as it's completely charged?
As you can tell, I didn't put much effort into the second script, because I'm almost certain I would have gotten everything pretty much 100% wrong, due to the basement potentially needing different commands, and my inability to figure out how to set something that's not an item as a goal.
Do I need to specifiy that I want the script to use a CCS, or will it default to what I have selected in the custom combat tab?
I tried, I really did. It's not too ugly is it?
How could I get it so it chooses the correct chocolate class instrument for anyone?
I tried to make it so that it would calculate how many buff potions of each type I would need based on how many turns I have (adding an additional 5 to account for a time's arrow), but I almost certainly did it incorrectly. I also need to factor in any existing turns of the buff somehow.
How can I get it to automatically replace a bartender if mine explodes in the midst of its duties?
I'll be running and getting a free runaway 20% of the time. How can I either fix it so I use 100 combats, as opposed to 100 turns, or make it so it automatically unequips the stinky cheese item as soon as it's completely charged?
As you can tell, I didn't put much effort into the second script, because I'm almost certain I would have gotten everything pretty much 100% wrong, due to the basement potentially needing different commands, and my inability to figure out how to set something that's not an item as a goal.
Do I need to specifiy that I want the script to use a CCS, or will it default to what I have selected in the custom combat tab?
Code:
{
if (have_item($items[fishy fish lasagna]) < 4)
print ("Plenty of lasagna")
else
{
print ("You need lasagna")
abort
{
{
if (have_item($items[milk of magnesium]) < 0)
print ("Plenty of milk")
else
{
print ("You need milk")
abort
{
{
if (have_item($items[potion of the field gar]) < 0)
print ("Plenty of Field Gar potions")
else
{
print ("You need Field Gar potions")
abort
{
if(have_effect($effect[Ode to Booze]) < 19)
cast 2 ode to booze
if(have_effect($effect[Ode to Booze]) < 18)
print ("Plenty of ode")
else
{
print ("You need ode")
abort
{
if (have_item($items[mojo filter]) < 0)
print ("Plenty of mojo filters")
else
{
print ("You need a mojo filter")
abort
{
if (have_item($items[coffee pixie stick]) < 3)
print ("Plenty of piie sticks")
else
{
print ("You need pixie sticks")
abort
{
if (have_item($items[go-wassail]) < 0)
print ("Plenty of wassail")
else
{
print ("You need wassail")
abort
{
if (have_item($items[tiny plastic sword]) < 0)
print ("TPS present")
else
{
print ("Where's the TPS?")
abort
{
if (have_item($items[jumbo olive]) < 3)
print ("Jumbo olives present")
else
{
print ("Need more jumbo olives")
abort
{
if (have_item($items[dry vodka martini]) < 3)
print ("Dry vodka martini present")
else
{
print ("Need more dry vodka martinis")
abort
{
if (have_item($items[chocolate stolen accordion]) < 3)
print ("Chocolate present")
else
{
print ("Need chocolate")
abort
{
use potion of the field gar
use milk of magnesium
use chocolate stolen accordion
eat 5 fishy fish lasagna
use 3 coffee pixie stick
use mojo filter
use coffee pixie stick
drink go-wassail
mix vesper
drink vesper
mix vesper
drink vesper
mix vesper
drink vesper
mix vesper
int choraleShotsNeeded [(my_adventures()+5)/20]
int petSprayNeeded [(my_adventures()+5)/10]
int punctualPotionsNeeded [(my_adventures()+5)/30]
if (have_item($items[recording of Chorale of Companionship]) < choraleShotsNeeded)
print ("Chorale present")
else
{
print ("Need chorale")
abort
{
if (have_item($items[potion of punctual companionship]) < punctualPotionsNeeded)
print ("Punctual potions present")
else
{
print ("Need punctual potions")
abort
{
if (have_item($items[Travoltan trousers]) < 0)
print ("Travoltans present")
else
{
print ("Need Travoltans")
abort
{
equip ( [pants], Travoltan trousers )
buy petSprayNeeded knob goblin pet-buffing spray
use petSprayNeeded knob goblin pet-buffing spray
use punctualPotionsNeeded potion of punctual companionship
use choraleShotsNeeded recording of Chorale of Companionship
Code:
outfit (stasis1)
use_familiar (stocking mimic)
fold loathing legion helicopter
equip( [familiar], loathing legion helicopter )
Print ("Adventuring with stinky cheese")
Fling self and Fernswarthy's grandfather using a CCS until cheese is fully charged, buffs run out, or there's a probem (beaten up, out of MP mid combat)
outfit (stasis2)
Print ("Stinky cheese charged, finishing turns")
Fling self and Fernswarthy's grandfather using a CCS until no turns remain, buffs run out, or there's a probem (beaten up, out of MP mid combat)
use_familiar (disembodied hand)
fold loathing legion moondial
maximize (adv)
cast ode
if(have_effect($effect[Ode to Booze]) > 5)
drink vesper
else
{
print ("Problem casting ode)
abort
}
Print ("Mission accomplished. Now get back to work.")
I tried, I really did. It's not too ugly is it?