Sanowret Crystal Settings - elanthia-online/dr-scripts GitHub Wiki

Description

Trains Arcana with your sanowret crystal. Whenever Arcana is low, it uses EXHALE or GAZE on the crystal. It can also manifest an ephemeron every two hours. Left running, it checks every 10 seconds in the background. With run, it checks once and exits.

It only uses the crystal at full concentration and with Arcana below 25 mindstates, and waits while you're hidden or invisible.
It exits straight away once you have 1750 Arcana ranks.

Settings

YAML Settings

Your own sanowret_no_use_scripts and sanowret_no_use_rooms replace the base lists completely. Copy the defaults (see Full example) and add to them.

Your crystal

sanowret_adjective: sanowret
Setting Default Purpose
sanowret_adjective sanowret The adjective of your crystal, used as "adjective crystal".

Each check, it TAPs the crystal to find it:

  • Worn: used where it is. It remembers that for the rest of the run and stops tapping.
  • In a container: it waits for a free hand, gets the crystal, uses it and stows it. It waits for as long as both your hands are full.
  • In your hand: used, then stowed.
  • Not found: "Sanowret crystal not found, exiting!"
If you start or stop wearing the crystal, restart the script.

Exhale or gaze

sanowret_force_exhale: false
Setting Default Purpose
sanowret_force_exhale false Always EXHALE, never GAZE. Same as the exhale argument. Better when your other scripts need your concentration.
  • EXHALE when forced.
  • GAZE when the crystal is worn and Arcana is at 10 mindstates or below.
  • EXHALE otherwise.

When not to use it

sanowret_no_use_scripts:
  - combat-trainer
  - go2
sanowret_no_use_rooms:
  - Carousel Chamber
  - 1900
Setting Default Purpose
sanowret_no_use_scripts 20 scripts (see Full example) Don't use the crystal or the ephemeron while any of these scripts is running.
sanowret_no_use_rooms Carousel Chamber, Carousel Booth, 1900 and Knife Clan, Triage Don't use the crystal in these rooms. Each entry is part of a room title, or a room id. Tome uses this list too.
  • A title entry is read as a regular expression. Leave out the [ ](/elanthia-online/dr-scripts/wiki/-): brackets make it match almost any room.
  • A blank entry matches every room, so the crystal is never used.
  • When the game says "This is not a good place for that.", it says "Could not use crystal in room title." and "Consider adding entry to your sanowret_no_use_rooms settings." The entry is the room id or, for a room Lich hasn't mapped, the title without its brackets. It also asks you to post the room in the Lich Discord so it can be added to base.yaml for everyone. It skips that room for the rest of the run.
  • When the tap says "Not here," or you feel "a wave of Corruption magic", it suggests adding the room: "If this room always refuses the crystal, add entry to your sanowret_no_use_rooms settings." Then it pauses until you move to another room, for up to 5 minutes, and tries again. With run, it says "Cannot use the sanowret crystal in this room." and exits.

Ephemeron

ephemeron:
Setting Default Purpose
ephemeron The ephemeron to manifest every two hours, as you'd name it in EPHEMERON MANIFEST. Leave it blank to never manifest one.
  • It manifests while Arcana is below 25 mindstates and none of your sanowret_no_use_scripts is running. It doesn't check your concentration, the room, or whether you're hidden or invisible.
  • The two-hour timer is kept between runs. The first time ever, it manifests straight away.
  • If the ephemeron isn't one you have, or isn't one the game knows: "Could not manifest your specified ephemeron: name. Please check your YAML setting for 'ephemeron:'." It stops trying for the rest of the run.
  • If the game says you should stop practicing, it tries again in about 2 minutes.

What each check does

There are no settings for these; this is what to expect.

  1. Manifests your ephemeron, if it's due.
  2. Leaves the crystal alone if your concentration isn't full, Arcana is at 25 mindstates or more, you're hidden or invisible, a no-use script is running, or you're in a no-use room or one that refused the crystal this run.
  3. Finds the crystal (see Your crystal) and uses EXHALE or GAZE.
  4. Puts it away again, unless it's worn.

Then it waits 10 seconds and checks again. With run, it exits instead.

Full example

These are the defaults from base.yaml.

sanowret_adjective: sanowret
sanowret_force_exhale: false
ephemeron:
sanowret_no_use_scripts:
  - alchemy
  - astrology
  - buff
  - burgle
  - carve
  - combat-trainer
  - craft
  - enchant
  - forge
  - get2
  - go2
  - magic-training
  - outdoorsmanship
  - remedy
  - sew
  - shape
  - smelt
  - smith
  - tinker
  - workorders
  # add your own scripts here
sanowret_no_use_rooms:
  - Carousel Chamber
  - Carousel Booth
  - 1900
  - Knife Clan, Triage

Argument Settings

Argument Purpose
run Check once, then exit.
exhale Always EXHALE. Same as sanowret_force_exhale: true.

Usage

;sanowret-crystal

;sanowret-crystal run

;sanowret-crystal exhale

Running it in the background

Start ;sanowret-crystal once, for example from your autostarts, and leave it running. Stop it with ;kill sanowret-crystal.

Crossing Training

Crossing Training trains Arcana with ;sanowret-crystal run, unless use_research is on and Arcana is in your research_skills.

Coordinator

Add :pause_sanowret: true to a town or hunting task to pause sanowret-crystal while that task runs:

coordinator_town_tasks:
  - :script: astrology
    :pause_sanowret: true
    :start_on:
      skill_under:
        skill: Astrology
        target: 5

T2

In your training_list:

- skill: Arcana
  start: 10
  scripts:
  - sanowret-crystal run