Able to dis/enable all aliases at once?

Posted by Zylo4 on Mon 07 Feb 2011 05:27 PM — 2 posts, 12,779 views.

USA #0
I know that, with Lua coding, you're able to enable a single alias or a group of aliases.
My question is, is it possible to make a command to turn ALL aliases off? There's that generic 'Enable Aliases' checkbox in the configuration, I'd like something to check or uncheck that I can run off of a trigger.
If possible, what line of code would I need to do this?

Thanks
Australia Forum Administrator #1
To disable all aliases:


<triggers>
  <trigger
   enabled="y"
   match="You enter battle."
   send_to="12"
   sequence="100"
  >
  <send>

SetOption ("enable_aliases", false)
ColourNote ("white", "orange", "All aliases disabled.")

</send>
  </trigger>
</triggers>


To enable them again:


<triggers>
  <trigger
   enabled="y"
   match="You leave battle."
   send_to="12"
   sequence="100"
  >
  <send>

SetOption ("enable_aliases", true)
ColourNote ("white", "green", "All aliases enabled.")

</send>
  </trigger>
</triggers>


Template:pasting
For advice on how to copy the above, and paste it into MUSHclient, please see Pasting XML.