Lich:Script Alias: Difference between revisions

The official GemStone IV encyclopedia.
Jump to navigation Jump to search
(→‎Alias examples: add additional aliases)
(→‎Alias examples: add more examples)
 
(3 intermediate revisions by the same user not shown)
Line 19: Line 19:
| wag1
| wag1
| cast missing spells after dispelled
| cast missing spells after dispelled
| <code>;ewaggle --stop-at=1</code>
| <code><nowiki>;ewaggle --stop-at=1</nowiki></code>
|-
| ;wagglemax
| attempt to max cast all spells at self/target
| <code><nowiki>;eq Script.start("waggle", "--start-at=250 --stop-at=250 --stop-before=999 \?")</nowiki></code>
|-
|-
| disband
| disband
| will DISBAND and immediately open GROUP again
| will DISBAND and immediately open GROUP again
| <code>disband\rgroup open</code>
| <code><nowiki>disband\rgroup open</nowiki></code>
|-
|-
| leave
| leave
| will LEAVE group and immediately open GROUP status again
| will LEAVE group and immediately open GROUP status again
| <code>leave\rgroup open</code>
| <code><nowiki>leave\rgroup open</nowiki></code>
|-
| wear
| will WEAR the item you attempt and immediately try to SORT your inventory
| <code><nowiki>;eq fput("wear \?"); waitrt?; fput("sort auto headtotoe")</nowiki></code>
|-
|-
| getbounty
| getbounty
| will run to advguild and get new bounty
| will run to advguild and get new bounty
| <code>;e Script.run('go2', 'advguild');fput("ask ##{GameObj.npcs.last.id} for bounty")</code>
| <code><nowiki>;e Script.run('go2', 'advguild');fput("ask ##{GameObj.npcs.last.id} for bounty")</nowiki></code>
|-
| groupall
| will attempt to GROUP every character in room into your group
| <code><nowiki>;e GameObj.pcs.each { |pc| fput "group #{pc.noun}" }</nowiki></code>
|-
| quitxp
| wait until empty mind, full health/mana/spirit before QUITing
| <code><nowiki>;e wait_until { Char.percent_mind.eql?(0) && Char.percent_health.eql?(100) && Char.percent_mana.eql?(100) && Char.percent_spirit.eql?(100)}; fput('quit')</nowiki></code>
|}
|}



Latest revision as of 11:19, 30 June 2026

Lich:Script Alias 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.

Alias is a default/core Lich scripted for creating in game shortcuts for any desired scripts or functions

What does it do?

Alias makes an alias!

How do I get it?

;alias is installed by default for Lich and no user installation should be necessary

How does it work?

Alias creates user shortcuts. If you have a common set scripts or don't want to type a long thing out, you can use the Alias script to create a shortened version for one or several combined commands. Think of if like a macro on steroids.

Alias examples

Below are examples of various aliases (one-liners) that are used to perform macros and/or Lich scripting:

trigger description target
wag1 cast missing spells after dispelled ;ewaggle --stop-at=1
;wagglemax attempt to max cast all spells at self/target ;eq Script.start("waggle", "--start-at=250 --stop-at=250 --stop-before=999 \?")
disband will DISBAND and immediately open GROUP again disband\rgroup open
leave will LEAVE group and immediately open GROUP status again leave\rgroup open
wear will WEAR the item you attempt and immediately try to SORT your inventory ;eq fput("wear \?"); waitrt?; fput("sort auto headtotoe")
getbounty will run to advguild and get new bounty ;e Script.run('go2', 'advguild');fput("ask ##{GameObj.npcs.last.id} for bounty")
groupall will attempt to GROUP every character in room into your group ;e GameObj.pcs.each { |pc| fput "group #{pc.noun}" }
quitxp wait until empty mind, full health/mana/spirit before QUITing ;e wait_until { Char.percent_mind.eql?(0) && Char.percent_health.eql?(100) && Char.percent_mana.eql?(100) && Char.percent_spirit.eql?(100)}; fput('quit')

In game help output

;alias help

Usage:

     ;alias setup
          Opens a window to configure aliases.
     ;alias add <trigger> = <target>
     ;alias add --global <trigger> = <target>
          Creates a new alias.  When you send a command that starts with <trigger>, it will be replaced
          with <target>.  If --global is specified, the alias will be active for all characters.
          \r and \? in the target are treated special.

     ;alias remove <trigger>
     ;alias remove --global <trigger>
          Deletes the given alias

     ;alias list
          Lists the currently active aliases

Examples:

     ;alias add zap = ;eq cast(901, "\?")
     ;alias add --global ;code = ;lnet chat on code
     ;alias add --global ls = look
Third-Party Software - edit
Lich Installation: Lich
Downloadable Lich Scripts: Go2 | Map | Repository | Popular Scripts