Aliases

From Sharune Wiki

Jump to: navigation, search

Commands/Terms

  • /alias
    • /alias gaac=get all all.corpse
      • "gaac" would do "get all all.corpse"
    • /alias sm=smile %1
      • "sm <name>" would do "smile <name>"
    • /alias fb=cast 'fire bolt' %1
      • "fb Kobold" would do "cast 'fire bolt' Kobold"
    • /alias gday=emote tip %1 and says, 'Good Day %1, have you heard from %2?'
      • "gday <1.name> <2.name>" would do "emote tip <1.name> and says, 'Good Day <1.name>, have you heard from <2.name>?"
  •  %# (# can be 1,2,3,...9)
    • Needs to be used in target aliases, without it the aliases will not be able to target.
    • /alias fb=c 'fire bolt' %4
      • "fb a b c d" would do "c 'fire bolt' d"


From ScapeFX Wiki Aliases page.

Aliases can be used to create simple macros or to replace hard and complicated words to type.

You assign aliases with the alias manager frame that you can open from the Settings menu. You can also use the /alias and /unalias commands to create and remove aliases.

/alias sm=smile %1
/unalias sm

Alias examples:

The first word in a command can also be used to create aliases that takes arguments. Suppose we have an alias defined as:
   lg = smile %1;grin %2 
When we issue the command "lg self monster" it will perform the following commands:
   smile self
   grin monster
You can also set an alias to be something like:
   lot = lothaenaerae
When you issue the command "smile lot" it will send the command:
   smile lothaenaerae
You can also do something like:
   heal = cast 'heal' %1
   lot = lothaenaerae
When you do the command "heal lot" it will send the command:
   cast 'heal' lothaenaerae

It is also possible to set the option "Anchored to the beginning of line". These aliases will only work on words that are the first word in the command that you are sending.