Lich:Software: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
(→‎F.A.Q and Common commands.: updated for Lich 5.7.0 commands)
 
(97 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{3rd-party}}
=About=
<div class="alert alert-info"><center>'''{{mono|;TUNE TOWNCRIER }}to join the TownCrier channel and get GS news and tips every five minutes. There is no chat on this channel.'''</center></div>
'''The Lich''' is third-party software that expands on both [[Wizard (front end)|The Wizard]] and [[StormFront]], allowing players to script using the Ruby Programming Language, a high-level programming language with almost limitless capability. The program comes bundled with several scripts, such as scripts that calculate a character's [[redux]], move from any location to another within a database, walk through an area until a creature is found, and spell up a character using all available spells. Also, there is a repository that allows for the quick, easy downloading of user-made scripts through The Lich, itself. Scripts can range from being very simple to quite advanced; for example, there is a script, titled xpSF, that modifies the experience window in StormFront to display additional information about the character's experience level that updates itself when experience is gained.


===About===
The Lich is written to be compatible with other third-party software, such as [[PsiNet]] and [[Black Lightning]].
<section begin=About />
'''The Lich''' is third-party software that expands scripting capabilities on Simutronics front end clients ([[Wizard (front end)|The Wizard]] and [[Wrayth]] for Windows users, and [[Avalon]] for Mac OS X users), allowing players to script using the Ruby Programming Language, a high-level programming language with almost limitless capability. The program comes bundled with several scripts, such as scripts that calculate a character's [[redux]], move from any location to another within a database, walk through an area until a creature is found, and spell up a character using all available spells. Also, there is a repository that allows for the quick, easy downloading of user-made scripts through The Lich, itself. Scripts can range from being very simple to quite advanced; for example, there is a script, titled xpSF, that modifies the experience window in Wrayth to display additional information about the character's experience level that updates itself when experience is gained. <section end=About />


<div {{prettydiv}}>
=Installation=
All the following instructions are pulled from [http://lichproject.org/ Tillmen's Lich] update website. Please visit his site for the latest downloads and instructions on how to install Lich.


<CENTER>{{boldmono|<tt>Installation Guides</tt>}}</CENTER>
==Windows==
===Windows + Stormfront/WizardFE + Lich===


* '''Windows'''
# Download and install the [http://www.play.net/software/lnchInst.exe Simutronics Launcher] if it is not already installed.
** [[Lich_(software)/Installation#Windows|Windows]]
# Download and install [http://lichproject.org/download.html Ruby 1.8.6].
*'''Mac'''
# Download and '''extract''' [http://lichproject.org/download.html lich-4.2.7.zip].
** [[Mac_Installation_-_Lich_(software)|Mac OS X]]
# Double-click on lich.rbw
* '''Linux'''
# Log in using Lich's game entry.
** [[Lich_(software)/Installation#Chromebook_.26_Debian_variants|Chromebook & Debian Variants]]
** [[Lich_(software)/Installation#Fedora|Fedora Installation - Lich (software)]]
</div>


==What is "Lich"?==
'''Optional''':
Lich is an open source scripting engine for text-based MUDs. It is not a complete front-end in and of itself: it operates much like a proxy server and communicates with the user through their chosen front-end (effectively giving the appearance of expanding the front-end's features with its own). It allows you to write and run scripts for a text-based MUD in the Ruby language.
# Download and install the [http://www.play.net/software/sg32inst.exe Simutronics Game Entry] if it is not already installed.
==How Does Lich Function==
# Double-click on lich.rbw
Lich defaults on Windows to a Lich 5 folder on your desktop. Lich launches by double clicking on the lich.rbw file. Folders are created inside the Lich 5 directory, the primary ones of user interest are the <CODE>/scripts</CODE> directory and the <CODE>/data</CODE> directory. Scripts contains user downloaded scripts and the Data directory contains information used by lich. The most notable items here are <CODE>alias.db3</CODE>
# Click on the install tab.
<CODE>entry.dat</CODE>
# Click the install button.
<CODE>lich.db3</CODE> which contains all your user information. This file should be backed up often, preferable with something like ;Lich Script:
# Log in use the Simutronics Game Entry.


Lich was originally created by [http://lichproject.sourceforge.net/ Shaelun], who brought it up from an idea to version 3.57. Starting with version 3.58 through 4.6.56, Lich was maintained by [http://lichproject.org/ Tillmen]. Tillmen's versions focused more heavily on Simutronics games, specifically Gemstone IV. If you are interested in non-Simutronics games, you might be better served with Shaelun's version. Starting with Lich v5, Lich has been forked over by the team at [https://github.com/elanthia-online/lich-5/ Elanthia-Online] to update and continue development in a collaborative format with contributions from both GemstoneIV and DragonRealms contributors. Current [[Lich_(software)/Installation|installation]] instructions now use Lich v5.
===Windows + Stormfront + Lich + PsiNet===
# Uninstall PsiNet if it is installed.
# Download and install the [http://www.play.net/software/lnchInst.exe Simutronics Launcher] '''even if it's already installed'''. This will help clean up the typical case of PsiNet not uninstalling completely.
# Download and install the [http://www.play.net/software/sg32inst.exe Simutronics Game Entry] if it is not already installed.
# Download and install [http://lichproject.org/download.html Ruby 1.8.6].
# Download and '''extract''' [http://lichproject.org/download.html lich-4.2.7.zip].
# Double-click on lich.rbw
# Click on the install tab.
# Make sure the "Use PsiNet compatible install method" is checked.
# Click the install button.
# Install PsiNet.
# Log in using the Simutronics Game Entry.


===Windows + WizardFE + Lich + PsiNet===
# Uninstall PsiNet if it is installed.
# Download and install the [http://www.play.net/software/lnchInst.exe Simutronics Launcher] '''even if it's already installed'''. This will help clean up the typical case of PsiNet not uninstalling completely.
# Download and install the [http://www.play.net/software/sg32inst.exe Simutronics Game Entry] if it is not already installed.
# Download and install [http://lichproject.org/download.html Ruby 1.8.6].
# Download and '''extract''' [http://lichproject.org/download.html lich-4.2.7.zip].
# Double-click on lich.rbw
# Click on the install tab.
# Make sure the "Use PsiNet compatible install method" is checked.
# Click the install button.
# Put a file named fakestormfront.txt in your Lich directory. (The directory containing lich.rbw)
# Install PsiNet.
# Log in using the Simutronics Game Entry and '''select Stormfront as your frontend'''. (Yes, select Stromfront even though you want to use the WizardFE. We have to trick PsiNet into connecting to the right server.)


==Linux==
==How do I use it==
Lich itself doesn't do much. At it's core, it parses incoming XML from the game and runs it through an engine. Scripts that a user downloads perform a varity of functions with that information.
===Ubuntu + Stormfront/WizardFE + Lich===
Download and install the [http://www.play.net/software/lnchInst.exe Simutronics Launcher] using WINE if it is not already installed.


{{#section:Lich:Script Repository|popularscripts}}
The ruby-gtk bindings in the Ubuntu repository don't work with Lich for some reason, so you'll have to compile them yourself. It's pretty simple, just open a terminal and enter the commands below. Some of the commands will prompt you for something or other.


==F.A.Q and Common commands.==
(update: Compiling the ruby-gtk bindings yourself may not be needed anymore. If you try the ruby-gtk bindings from the Ubuntu repositoy, let me know if it works or not. Also, check to see if your processor is stuck at 100% while using them.)
'''Q: Where did my inventory windows go?'''
: A: If you use inventory windows in Wrayth, you’ll find they have disappeared the first time you run Lich on each character. Lich hijacks the setting to provide container contents to scripts. In doing so, it’s unable to tell what the setting was to start with, so it turns it off (from Wrayth’s point of view). Just type “set inv on” to turn it back on.


'''Q: Why do I keep disconnecting immediately after login?'''
* sudo apt-get install ruby libopenssl-ruby build-essential checkinstall ruby-dev libgtk2.0-dev
: A: This generally happens on only one character, and affects only Wrayth. It seems to be caused by Wrayth downloading a characters settings from the Simu server. To fix it, change Wrayth to store scripts/highlights/macros/etc locally, or log in once on Wrayth without Lich to allow it to do whatever it’s trying to do.
* wget http://sourceforge.net/projects/ruby-gnome2/files/ruby-gnome2/ruby-gnome2-0.19.3/ruby-gtk2-0.19.3.tar.gz/download
* tar -xf ruby-gtk2-0.19.3.tar.gz
* cd ruby-gtk2-0.19.3
* ruby extconf.rb
* make
* sudo checkinstall
* cd ..
* wget http://lichproject.org/download/lich-4.2.7.zip
* sudo apt-get install p7zip-full
* 7z x lich-4.2.7.zip
* cd lich
* mv lich.rb{w,}
* chmod u+x lich.rb
* ./lich.rb


'''Q: How come when I cast spells on people it doesn't tell the correct duration for the spell?'''
==Mac==
: A: This is due to not setting permissions correctly with LNet once logged in. In general, most people should be fine with typing: ;LNET ALLOW ALL ALL. This should allow anyone with Lich installed to detect your spell durations. It also allows other things, to see exactly what you can do type ;LNET HELP ingame and read over the output it provides.
===Mac + Avalon + Lich===
# You may need to install Xcode in order to use MacPorts. You can find the Xcode install package in the "Optional Installs" folder on your OS X Install DVD.
# Follow part 1 and Part 2 of [http://davidbaumgold.com/tutorials/wine-mac/ this guide to install MacPorts].
# Open a terminal and type the following to install Ruby with GTK bindings:
sudo port install rb-gnome
# Download and extract [http://lichproject.org/download.html lich-4.2.7.zip].
# Run Lich using one of these commands:
## sudo ruby lich.rbw --gemstone --avalon
## sudo ruby lich.rbw --gemstone --platinum --avalon
## sudo ruby lich.rbw --shattered --avalon
# Log in using Avalon. (After starting Lich, you have two minutes to log in before it times out.)
Note: Avalon needs an update to connect to Shattered. If Simu hasn't done it by the time you read this, here's how to do it yourself (as posted by Naos):


'''Q: How do I enable or disable the various LichID or RealID in room description title?'''
# Quit any instances of Avalon you have launched. You will need to update all copies that you may have downloaded or created.
: A: To enable/disable the LichID or RealID you would use one of the following commands in-game:
# Locate your Avalon.app application bundle using Finder -- I expect it lives in most people's Applications folder.
<syntaxhighlight lang="ruby">
# Select the application bundle in Finder, Control-Click (or Right-Click) on the icon, and select Show Package Contents from the context menu. (If you don't see this option in the context menu, you can try clicking on the toolbar button with a gear icon, which should give you a similar menu with the option.)
# LichID
# Open the Contents folder. Open the Resources folder. You should see a list of file including "Custom Games.plist" -- this is the file of interest.
;display lichid <true|false>
# Open the Text Edit application. It should be located in your Applications folder.
# Drag the "Custom Games.plist" file onto the dock icon for Text Edit -- this will open the file using Text Edit.
# The file is a plain text file that stores a list of games to display in an XML format. You will be adding two lines to this file.
# Find the following two lines:
: <string>GS3</string>
: <string>GS4D</string>
# You want to insert a line between these two so that your file looks like this:
: <string>GS3</string>
: <string>GSF</string>
: <string>GS4D</string>
# Find the following two lines:
: <string>GemStone IV</string>
: <string>GemStone IV Development</string>
# You want to insert a line between these two so that your file looks like this:
: <string>GemStone IV</string>
: <string>GemStone IV Shattered</string>
: <string>GemStone IV Development</string>
# Save the file. You're done!
# If you have multiple copies of Avalon that you are updating, you can copy the file you just modified and replace the unmodified version in your other copies of Avalon. Just follow steps 2-4 to find the files.


# RealID
=F.A.Q.=
;display uid <true|false>
'''Q: Where did my inventory windows go?'''
</syntaxhighlight>
: A: If you use inventory windows in Stormfront, you’ll find they have disappeared the first time you run Lich on each character. Lich hijacks the setting to provide container contents to scripts. In doing so, it’s unable to tell what the setting was to start with, so it turns it off (from Stormfront’s point of view). Just type “set inv on” to turn it back on.


==Resources==
=Reference=
* [[Lich scripting reference]]
* Original Lich (v3.57): http://lichproject.sourceforge.net/
* Tillmen's Lich Update (v4.2.7): http://lichproject.org/
* Playershops by Lich: https://ps.lichproject.org/
* Support for Lich: Lich Support is best handled in the #scripting channel in the official GS Discord
* Unofficial Support for Lich: http://forum.gsplayers.com/forumdisplay.php?f=104
* Popular Lich scripts: [[Lich:Script_Repository#Popular_Lich_Scripts | Popular Scripts ]]


{{Third-Party Software}}
{{Third-Party Software}}
[[Category:Third-Party Software]]
[[Category:New Player]]

Latest revision as of 20:04, 29 January 2024

Lich:Software is a third party script and is not maintained by Simutronics. Simutronics is not responsible for the accuracy of the information presented on this page, nor is it liable for issues stemming from the use of the application on players' personal devices.

;TUNE TOWNCRIER to join the TownCrier channel and get GS news and tips every five minutes. There is no chat on this channel.

About

The Lich is third-party software that expands scripting capabilities on Simutronics front end clients (The Wizard and Wrayth for Windows users, and Avalon for Mac OS X users), allowing players to script using the Ruby Programming Language, a high-level programming language with almost limitless capability. The program comes bundled with several scripts, such as scripts that calculate a character's redux, move from any location to another within a database, walk through an area until a creature is found, and spell up a character using all available spells. Also, there is a repository that allows for the quick, easy downloading of user-made scripts through The Lich, itself. Scripts can range from being very simple to quite advanced; for example, there is a script, titled xpSF, that modifies the experience window in Wrayth to display additional information about the character's experience level that updates itself when experience is gained.

Installation Guides

What is "Lich"?

Lich is an open source scripting engine for text-based MUDs. It is not a complete front-end in and of itself: it operates much like a proxy server and communicates with the user through their chosen front-end (effectively giving the appearance of expanding the front-end's features with its own). It allows you to write and run scripts for a text-based MUD in the Ruby language.

How Does Lich Function

Lich defaults on Windows to a Lich 5 folder on your desktop. Lich launches by double clicking on the lich.rbw file. Folders are created inside the Lich 5 directory, the primary ones of user interest are the /scripts directory and the /data directory. Scripts contains user downloaded scripts and the Data directory contains information used by lich. The most notable items here are alias.db3 entry.dat lich.db3 which contains all your user information. This file should be backed up often, preferable with something like ;Lich Script:

Lich was originally created by Shaelun, who brought it up from an idea to version 3.57. Starting with version 3.58 through 4.6.56, Lich was maintained by Tillmen. Tillmen's versions focused more heavily on Simutronics games, specifically Gemstone IV. If you are interested in non-Simutronics games, you might be better served with Shaelun's version. Starting with Lich v5, Lich has been forked over by the team at Elanthia-Online to update and continue development in a collaborative format with contributions from both GemstoneIV and DragonRealms contributors. Current installation instructions now use Lich v5.


How do I use it

Lich itself doesn't do much. At it's core, it parses incoming XML from the game and runs it through an engine. Scripts that a user downloads perform a varity of functions with that information.

The following are a list of scripts that enhance or extend basic functions of Gemstone IV and can improve or streamline your gaming experience to a point where you can't think of ever going back. It's not all inclusive but contains a good starter set or some of the most popular scripts in use.

Core components installed with Lich

Generally speaking, the below scripts should not need to be updated manually by the user, especially if the user keeps up to date on the current lich version.

  • go2 - Go2 is an intelligent travel script that is synchronized to many of the more complex scripts. Go2 uses a Room Number system and can intelligently plot routes between most any two rooms in all of Elanthia. Use can be as simple as ;go2 town or ;go2 bank to head to the nearest town square or bank. Use ;go2 targets to see a list of pre-programmed locations broken down by towns. Or, use ;go2 save <new location name>=<new location room number> to create your own locations. Go2 is distributed as part of a default Lich installation.
  • map - map (fork of Narost/XNarost) is an active map library that can display your location and allows Point-And-Click travel. Simply right click and choose a map, pick a room on it and click on it. map is distributed as part of a default Lich installation.
  • alias - A default script used to create shortcuts in lich. See wiki page for details.
  • vars - A default script to create and view variables for both users and scripts. See wiki page for details.
  • autostart - A default script to handle which scripts run on startup. See wiki page for details.
  • repository - A default script to view and dowload other scripts. See wiki page for details.
  • version - A default script to output your current lich version and other information. See wiki page for details.

Scripts maintained by Elanthia-Online

  • bigshot - A script for attacking and hunting routines. See wiki page for details.
  • blackarts - A script for doing various alchemy tasks. ;blackarts setup for configuration details
  • ewaggle - A script for spelling yourself and others up. See wiki page for details.
  • ebounty - A script to get and perform bounties. See wiki page for details.
  • eloot - A looting and loot management script. See wiki page for details.
  • ecleanse - A script for dealing with status conditions. See wiki page for details.
  • eherbs - A herb heaing and stocking script. See wiki page for details.
  • ecure - A script for healing for empaths. Usage syntax is ;ecure setup for first usage.
  • elogin - A script for command line login for your characters. . Usage syntax is ;elogin <charname>
  • echild - A child bounty script that monitors for and returns a child during bounty sessions. Add to autostart or your hunting script when performing a bounty.
  • foreach - A script for sending a series of commands for each item that matches its criteria. See wiki page for details.
  • jbackup - A excellent backup and recovery tool that allows lich database and any additional file backup a user prefers. Set to autostart.
  • ledger - A scripting for tracking your silver and bounty incoming across sessios and over time per character and account with a nice ascii discplay. Requires ascii_charts gem (installed by default with Lich 5.7.0+ full installer)
  • signore - A script for using society powers ;signore setup for configuration
  • resource - A script for determining your current player service bonus. ;resource bonus Can also be used to determine the cost of enchanting with the syntanx ;Resource calc <starting enchant> <ending enchant> <cost per essence> as in ;resource calc 35 45 50
  • ecaster - Allows user to type just the spell number and have lich cast that spell. Usage syntax is ;ecaster setup for configuration. Set to autostart.

Other scripts that are popular

  • invdb - An inventory management database. See wiki page for details
  • lnet - An out of game, third party, not Simutronics controlled chat server. ;repo download lnet --author=elanthia-online. See wiki page for details LNET should be installed at your own risk. Simutronics has no control over lnet or policy enforcement there.
  • multi - A script to peform repetitive set of commands. Usage syntax is ;multi; <number> <action> such as ;multi 10, get my diamond, drop my diamond
  • ego2 - A script for bounty escorts. Usage syntax is ;ego2 help for relevant commands.
  • wander - The last of the Trifector of Travel, wander will move from room to room until it runs into a Boundary - a specified room number - or finds a room with a monster AND empty of players. Wander can be used to create a walled in hunting ground, letting you automatically move from room to room without having to use keystrokes. Use the ;wander add command to add the room you are currently standing in to the Wander List. Note: Wander will NOT enter your boundary rooms. For example, adding Town Square East to the list and then executing ;wander from within the confines of Moot Hall will send your character exploring every room in Moot, but unable to leave as TSE is a Boundary.
  • sorter Sorter cleans up your bags and breaks down the the output of a LOOK command, sorting the results by type. Makes looking in your locker or backpack, and especially your gem pouch, infinitely easier. *Note* Sorter can mess up some other scripts that deal with inventory, so be cautious in usage. Elanthia-Online scripts like eloot disable sorter when performing relevant functions
  • linktothefast - A complex script that provides highliting for Wryath links when links are disabled. This script can cause issues with STOW settings, so disable prior to adjusting those settings.
  • uberbar_eo - The most current Uberbar variant. This will provide a paperdoll with room number, resource information, etc inside wrayth. Set to autostart. Note- there is a small performance impact when using Uberbars.
  • dirty-deeds - A script for getting deeds in IMT and WL. ;dirty-deeds setup for configuration
  • colmaster - A script for getting and performing COL tasks in Solhaven
  • volnstep - A script for performing voln tasks in Wehnimer's Landing
  • character-planner - A script for planning out your character skills and training. ;character-planner for configuration
  • stat-maximizer - A script for configuring character stats. ;stat-maximizer for configuration
  • tpick - A script for lockpicking ;tpick setup for configuration
  • warrior - A script for warrior guild tasks ;warrior setup for configuration
  • rogues - A script for warrior guild tasks ;rogues setup for configuration


F.A.Q and Common commands.

Q: Where did my inventory windows go?

A: If you use inventory windows in Wrayth, you’ll find they have disappeared the first time you run Lich on each character. Lich hijacks the setting to provide container contents to scripts. In doing so, it’s unable to tell what the setting was to start with, so it turns it off (from Wrayth’s point of view). Just type “set inv on” to turn it back on.

Q: Why do I keep disconnecting immediately after login?

A: This generally happens on only one character, and affects only Wrayth. It seems to be caused by Wrayth downloading a characters settings from the Simu server. To fix it, change Wrayth to store scripts/highlights/macros/etc locally, or log in once on Wrayth without Lich to allow it to do whatever it’s trying to do.

Q: How come when I cast spells on people it doesn't tell the correct duration for the spell?

A: This is due to not setting permissions correctly with LNet once logged in. In general, most people should be fine with typing: ;LNET ALLOW ALL ALL. This should allow anyone with Lich installed to detect your spell durations. It also allows other things, to see exactly what you can do type ;LNET HELP ingame and read over the output it provides.

Q: How do I enable or disable the various LichID or RealID in room description title?

A: To enable/disable the LichID or RealID you would use one of the following commands in-game:
# LichID
;display lichid <true|false>

# RealID
;display uid <true|false>

Resources

Third-Party Software - edit
Lich Installation: Lich
Downloadable Lich Scripts: Go2 | Map | Repository | Popular Scripts