Alias: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
Created page with 'An alias is a shortcut in the CLI, set by users. For example, a simple alias is mapping the CLI function "familiar" to the function "f", as a shortcut. ==Simple Example== <p><…'
 
imported>Heeheehee
m Category...?
Line 8: Line 8:
==Complex Example==
==Complex Example==


<p><pre>alias dentures => checkpoint; equip frilly skirt; ash visit_url("inv_use.php?which=3&whichitem=2951&pwd"); visit_url("choice.php?whichchoice=188&option=3&choiceform3=Catburgle&pwd"); cli_execute("outfit checkpoint");</pre></p>
<p><pre>alias dentures => checkpoint; equip frilly skirt; ash visit_url("inv_use.php?which=3&whichitem=2951&pwd");
visit_url("choice.php?whichchoice=188&option=3&choiceform3=Catburgle&pwd"); cli_execute("outfit checkpoint");</pre></p>


This equips a frilly skirt, chooses the right choice in the Orcish Frat House Blueprints adventure, and then re-equips whatever pants you had on when you type ''dentures'' into the CLI.
This equips a frilly skirt, chooses the right choice in the Orcish Frat House Blueprints adventure, and then re-equips whatever pants you had on when you type ''dentures'' into the CLI.
[[Category:CLI Commands]]

Revision as of 02:07, 21 May 2010

An alias is a shortcut in the CLI, set by users. For example, a simple alias is mapping the CLI function "familiar" to the function "f", as a shortcut.

Simple Example

alias f => familiar

Now, instead of typing familiar pixie or familiar sandworm, you can just type f pixie or f sandworm.

Complex Example

alias dentures => checkpoint; equip frilly skirt; ash visit_url("inv_use.php?which=3&whichitem=2951&pwd");
visit_url("choice.php?whichchoice=188&option=3&choiceform3=Catburgle&pwd"); cli_execute("outfit checkpoint");

This equips a frilly skirt, chooses the right choice in the Orcish Frat House Blueprints adventure, and then re-equips whatever pants you had on when you type dentures into the CLI.