Skip to content
MahtraDR edited this page Feb 1, 2022 · 14 revisions

Buff spells to use while hunting.

It is assumed that your cambrinth can be used while worn.

Supported options:

  • abbrev: The spell abbreviation, or spell name if it does not have an abbreviation
  • recast: The time remaining on a buff before recasting it; -1 means to let it fade
  • recast_every: The spell will be cast every # seconds
  • mana: The amount to harness (via attunement)
  • cambrinth: An array of charge amounts (each number indicating one use of charge)
  • cyclic: Whether or not the spell is a cyclic (use -1 for recast)
  • expire: Text which will trigger recasting the spell (use -1 for recast)
  • cast: Custom action to output instead of 'cast'
  • use_auto_mana: Uses discern to decide on the mana and cambrinth options.
  • before: actions used before casting, they require matching
  • after: actions used after casting, they require matching
  • pet_type: name of pet goes here; specifies the spell is for a pet, only 1 buff per pet is supported at this time; requires a recast_every timer as well

Basic examples

This would prep Instinct (INST) with 10 mana harnessed, charge your cambrinth with 5 mana, and then charge your cambrinth a second time with 5 mana. The spell would only be recast when the spell has 1 minute left.

Instinct:
  abbrev: INST
  recast: 1
  mana: 10
  cambrinth:
  - 5
  - 5

This would discern Instinct (INST) and prep it at appropriate harness followed by up to four charges of cambrinth. The spell would only be recast when the spell has 1 minute left.

Instinct:
  abbrev: INST
  recast: 1
  use_auto_mana: true

Recast when an expiration message is seen

This would prep Ethereal Fissure (ETF) with 20 mana harnessed, charge your cambrinth with 10 mana, and then charge your cambrinth a second time with 5 mana. Once fully prepared, the script would use cast fire instead of the default, cast. The spell would only be recast when fissure collapses in on itself, winking out of existence is seen.

Ethereal Fissure:
  abbrev: ETF
  recast: -1
  mana: 20
  cambrinth:
  - 10
  - 5
  expire: fissure collapses in on itself, winking out of existence
  cast: cast fire

Cyclic buff spell

This would prep Phoenix's Pyre (PYRE) with 5 mana harnessed. The spell would not be cast again since it is marked as a cyclic.

Phoenix's Pyre:
  abbrev: PYRE
  recast: -1
  mana: 5
  cyclic: true
  expire: this is a cyclic

Pet buff spell

This would prep Vigor and cast it on the pet warrior.

vigpet:
  Vigor:
    pet_type: warrior
    recast_every: 2100 # 35 minutes
    cast: cast warrior
    mana: 50
    cambrinth:
    - 50

Befores and Afters

The befores are actions done before casting and the afters are exactly the opposite. They require matches.

  Shadowling:
    mana: 50
    cambrinth:
    - 50
    after:
    - message: invoke shadowling
      matches: You gesture

base-spells.yaml

Please note that a lot of settings are in the base-spells.yaml. This means a lot of spells can just be listed with their name. Please check the lich/scripts/data/base-spells.yaml file for all the spells that are supported and what they have as default values. As with all settings, you can override any of them by including it in your YAMLs.

Vigor:
  mana: 50
  cambrinth:
  - 50

Spell Stands

Leveraging befores and after above, we can define spell stances per spell.

Here is See the Wind for max duration as an example.

    See the Wind:
      mana: 45
      cambrinth: [20,25]
      recast: 5
      before:
      - message: spell stance 100 130 70
      after:
      - message: spell stance 100 100 100

or Benediction going into an OM orb, where duration isn't a factor.

    Benediction:
      mana: 25
      abbrev: bene
      cambrinth: [25, 25]
      cast: touch orb
      before:
      - message: spell stance 130 70 100
      after:
      - message: spell stance 100 100 100

Note that as as per this note in the Spell command wiki page, "think of Potency, Integrity, and Duration as three separate meters you fill up with mana. The system is designed that max mana is filling up all three meters as high as they go." Hence, spell stances aren't a factor when casting at max mana.

Clone this wiki locally