Skip to content

Instantly share code, notes, and snippets.

View jandersson's full-sized avatar

Jonas Andersson jandersson

  • Klarna
  • Stockholm, Sweden
View GitHub Profile
What is Lich?: https://elanthipedia.play.net/Lich_scripting_engine
Lich New User Guide: https://lichproject.org/new-user-guide.html
What is Dependency?: https://elanthipedia.play.net/Dependency
Dependency First Time Setup: https://github.com/rpherbig/dr-scripts/wiki/First-Time-Setup
Dependency Script Documentation: https://elanthipedia.play.net/Lich_script_repository
DR-Scripts Tutorials: https://github.com/rpherbig/dr-scripts/wiki/DR-Scripts-Tutorials
YAML Validator: http://yaml-online-parser.appspot.com/
Lich mapping guide: https://elanthipedia.play.net/Lich_mapping_reference
Player Shops: https://dr-scripts.firebaseapp.com/
Hunting Ladder Spreadsheet: http://i.imgur.com/lCcb3rD.jpg
@jandersson
jandersson / flags.rb
Created April 27, 2018 18:58
basic lich trigger
# This line is required, it basically includes the Flags we'll use to monitor the game text
custom_require.call %w[events]
# Create a Flag. This monitors the game text in the background. The first argument is the name. The second part is the text to match. You can use regular expressions here if you want.
Flags.add('watch-for-trouble', 'Trouble just arrived!')
# Make a simple loop (make all your Flags outside of the loop)
loop do
# Check the status of your flag. If the flag was tripped, then the if part here will evaluate to true. If it did not then the code inside the if gets skipped
@jandersson
jandersson / steps.md
Last active February 14, 2019 18:39
Lich Installation Hell

Documenting the steps to recreate an exciting tuesday evening

  • Windows 10
  • Ruby 2.6.1
  • Lich 4.12.0f
  1. install Ruby using RubyInstaller

  2. edit lich.rbw to use --no-document instead of --no-ri --no-rdoc and use gem.cmd instead of gem.bat (find and replace for now)

@jandersson
jandersson / Crannach-research.yaml
Last active February 25, 2019 19:57
training magic with research and crossing-training
# Sorcery not supported!
use_research: true
research_skills:
- Warding
- Utility
#- Sorcery
crossing_training:
- Warding
- Utility
#- Sorcery
@jandersson
jandersson / unlit_room_disco.md
Last active October 9, 2019 23:28
dark room stuff

You get two sets of room data if you have a light source and move into an unlit room. You'll first get the unlit room data (which is not shown in your front end) and the lit room data.

If you have a light source and are in an unlit room and use the 'look' command, you get only the lit room data.

This means you might be able to refresh the room state by 'look'ing for each step you take in a dark area. The area also has to be mapped (manually? no automap? not sure).

Something more robust might involve checking room descriptions for the string "It's pitch dark and you can't see a thing!"

You can use the ;logxml script from ;repository to check or capture more data :)

@jandersson
jandersson / install-lich-on-pi.md
Last active September 21, 2020 21:26
Installing lich on Raspi

Documenting the steps to get lich going on a raspi while trying to follow the lichproject.org ubuntu 14.10 instructions.

Specs

pi@vaxtron:~ $ neofetch
  `.::///+:/-.        --///+//-:``    pi@vaxtron
 `+oooooooooooo:   `+oooooooooooo:    ----------
  /oooo++//ooooo:  ooooo+//+ooooo.    OS: Raspbian GNU/Linux 10 (buster) armv7l
  `+ooooooo:-:oo-  +o+::/ooooooo:     Host: Raspberry Pi 2 Model B Rev 1.1
 `:oooooooo+`` `.oooooooo+- Kernel: 4.19.97-v7+