Lich:Script Alias: Difference between revisions
(→Alias examples: fix formating) |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 20: | Line 20: | ||
| cast missing spells after dispelled |
| cast missing spells after dispelled |
||
| <code><nowiki>;ewaggle --stop-at=1</nowiki></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 |
||
| Line 40: | Line 44: | ||
| will attempt to GROUP every character in room into your group |
| will attempt to GROUP every character in room into your group |
||
| <code><nowiki>;e GameObj.pcs.each { |pc| fput "group #{pc.noun}" }</nowiki></code> |
| <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> |
|||
|- |
|||
|invoker |
|||
|defines the current room as a starting location, runs to nearest town, goes to that towns bank and withdraws 10000 silvers, runs back to town, uses your defined transport jewelry (must be updated in 2 places in the alias), runs to invoker, asks for spells (x2), uses the transport jewelry again, and then returns to the starting location. |
|||
|<code>;e place=Room.current.id; Script.run('go2', "town --disable-confirm", {quiet: true }); Script.run('go2', 'bank'); fput "withdraw 10000 silver"; Script.run('go2', "town --disable-confirm", {quiet: true }); fput "turn scrimshaw band"; Script.run('go2', "3677"); fput "ask invoker for spells"; fput "ask invoker for spells"; fput "turn scrimshaw band"; Script.run('go2', "#{place} --disable-confirm", { quiet: true })</code> |
|||
|} |
|} |
||
Latest revision as of 15:12, 20 July 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')
|
| invoker | defines the current room as a starting location, runs to nearest town, goes to that towns bank and withdraws 10000 silvers, runs back to town, uses your defined transport jewelry (must be updated in 2 places in the alias), runs to invoker, asks for spells (x2), uses the transport jewelry again, and then returns to the starting location. | ;e place=Room.current.id; Script.run('go2', "town --disable-confirm", {quiet: true }); Script.run('go2', 'bank'); fput "withdraw 10000 silver"; Script.run('go2', "town --disable-confirm", {quiet: true }); fput "turn scrimshaw band"; Script.run('go2', "3677"); fput "ask invoker for spells"; fput "ask invoker for spells"; fput "turn scrimshaw band"; Script.run('go2', "#{place} --disable-confirm", { quiet: true })
|
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 |