an alias in its simplest form is a way to abbreviate CLI commands or maybe create macros or present ash commands in an easy to use CLI command....
example...
In relay browser chat window, I generally do /fam hobo or /fam stinky or whatever to switch familiars
Sometimes I want to change familiars in mafia, but there is no namespace for "fam", so I have to type out the word familiar which is just cumbersome to me for some reason.
So I set up an alias:
Now I can type fam sombrero instead of familiar sombrero in mafia and have it work for me.
A more complicated alias is something Jasonharper posted recently. In KoL's chat window, one can type /examine furry fur and it will pop up a window showing the item decription info. In mafia, you can use the item manager and highlight an item and right click to find out the game description or look the item up in the wiki. You can also type wiki furry fur and the wiki will open up to the page about furry fur. But there was no easy way to see the game description of an item via command line. Jason offered this alias:
Code:
desc => ash int[int] m ; file_to_map("itemdescs.txt", m); cli_execute("text desc_item.php?whichitem=" + m[$item[%%].to_int()])
So now I can type desc furry fur and the CLI will show me the info that the relay browser would show in a popup window for /examine.
-Spiny