Mystia
Member
I've had good experiences using cli_execute();, and now I'd like to move on to some more advanced things. Below, I've altered an existing script that runs entirely on cli_execute(); functions to one that uses a little more complexity
Old version:
New version:
Now a lot of this was reverse engineered, so I don't exactly understand some of these, if they work at all.
1) The "Breakfastbooze" boolean, is that how I use that command? How would I refer to it later in the code, rather than repeating it as Dinnerbooze?
2) the "If/else" line in the Breakfastbooze boolean, I just kinda placed those there. Is that how that works?
3) Are the "Tastyfood", "Spleentastic", and "Ghettodrinks" variables done correctly?
4) If I ran this script on a character that had all the skills, outfits, and familiars mentioned in the script, would it run correctly?
Old version:
Code:
cli_execute("cast * pastamastery");
cli_execute("mallsell * dry noodle");
cli_execute("cast 3 sugar");
cli_execute("mallsell 3 sugar sheet");
cli_execute("cast 20 leash");
cli_execute("acquire 21 Knob Goblin Nasal Spray");
cli_execute("use 21 Knob Goblin Nasal Spray");
cli_execute("acquire milk of magnesium");
cli_execute("acquire 15 twinkly wad");
cli_execute("use 15 twinkly wad");
cli_execute("acquire 19 blackberry schnapps");
cli_execute("drink 19 blackberry schnapps");
cli_execute("acquire 3 spooky hi mein");
cli_execute("use 1 milk of magnesium");
cli_execute("eat 3 spooky hi mein");
cli_execute("outfit Castle");
cli_execute("familiar leprechaun");
cli_execute("equip meat detector");
cli_execute("adventure * Giant's Castle");
cli_execute("autosell * heavy D, * Original G, * disturbing fanfic, * furry fur, * wolf mask, * awful poetry journal, * thin black candle, * chaos butterfly, * plot hole, * probability potion, * procrastination potion, * angry farmer candy, * giant needle, * Mick's IcyVapoHotness Rub, * rave whistle");
cli_execute("acquire 1 roll in the hay");
cli_execute("drink 1 roll in the hay");
cli_execute("use * Warm Subject gift certificate");
cli_execute("outfit Rollover");
New version:
Code:
cli_execute("cast * pastamastery");
cli_execute("mallsell * dry noodle");
cli_execute("cast 3 sugar");
cli_execute("mallsell 3 sugar sheet");
cli_execute("cast 20 leash");
cli_execute("acquire 21 Knob Goblin Nasal Spray");
cli_execute("use 21 Knob Goblin Nasal Spray");
cli_execute("acquire milk of magnesium");
cli_execute("use 1 milk of magnesium");
item Tastyfood() {
item [int] Tastyfood;
foreach key in $items[Hot Hi Mein, Cold Hi Mein, Sleazy Hi Mein, Stinky Hi Mein, Spooky Hi Mein]
Tastyfood[count(Tastyfood)] = key;
cheapest_first(Tastyfood);
return Tastyfood[0];
}
retrieve_item(3, $item[Tastyfood])
eat(3, $item[Tastyfood]);
item Spleentastic() {
item [int] Wadsyo;
foreach key in $items[Twinkly Wad, Hot Wad, Sleaze Wad, Spooky Wad, Cold Wad, Hot Wad, Stench Wad]
Wadsyo[count(Wadsyo)] = key;
cheapest_first(Wadsyo);
return Wadsyo[0];
}
retrieve_item(15, $item[Wadsyo])
use(15, $item[Wadsyo]);
boolean Breakfastbooze( The Ode to Booze )
{
if ( !have_skill( The Ode to Booze ))
return true;
return ( use_skill( 1, The Ode to Booze ) );
else ()
return false;
}
cli_execute("acquire 19 blackberry schnapps");
cli_execute("drink 19 blackberry schnapps");
cli_execute("outfit Castle");
cli_execute("familiar leprechaun");
cli_execute("equip meat detector");
cli_execute("adventure * Giant's Castle");
cli_execute("autosell * heavy D, * Original G, * disturbing fanfic, * furry fur, * wolf mask, * awful poetry journal, * thin black candle, * chaos butterfly, * plot hole, * probability potion, * procrastination potion, * angry farmer candy, * giant needle, * Mick's IcyVapoHotness Rub, * rave whistle");
boolean Dinnerbooze( The Ode to Booze )
{
if ( !have_skill( The Ode to Booze ))
return true;
return ( use_skill( 1, The Ode to Booze ) );
else ()
return false;
item Ghettodrinks() {
item [int] Nightcap;
foreach key in $items[a little sump'm sump'm, an evil little sump'm sump'm, around the world, blended frozen swill, calle de miel, ducha de oro, evil ducha de oro, evil horizontal tango, evil roll in the hay, fruity girl swill, fuzzbump,
horizontal tango, ocean motion, perpendicular hula, pink pony, rockin' wagon, roll in the hay, slap and tickle, slip 'n' slide, tropical swill]
Nightcap[count(Nightcap)] = key;
cheapest_first(Nightcap);
return Nightcap[0];
}
retrieve_item(1, $item[Ghettodrinks])
drink(1, $item[Ghettodrinks]);
cli_execute("use * Warm Subject gift certificate");
cli_execute("outfit Rollover");
Now a lot of this was reverse engineered, so I don't exactly understand some of these, if they work at all.
1) The "Breakfastbooze" boolean, is that how I use that command? How would I refer to it later in the code, rather than repeating it as Dinnerbooze?
2) the "If/else" line in the Breakfastbooze boolean, I just kinda placed those there. Is that how that works?
3) Are the "Tastyfood", "Spleentastic", and "Ghettodrinks" variables done correctly?
4) If I ran this script on a character that had all the skills, outfits, and familiars mentioned in the script, would it run correctly?