Created
September 2, 2010 19:36
-
-
Save tobiassjosten/562815 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="iso-8859-1"?> | |
<!DOCTYPE muclient> | |
<muclient> | |
<plugin name="TargetingExample" author="Tobias Sjösten" id="a808c24b99bfdb45e4560e48" language="Lua" purpose="A targeting example plugin" save_state="y" date_written="2007-08-21 16:54:48" version="1.0"> | |
<description trim="y">This example plugin shows how targeting can be done, using MUSHclient aliases and Lua variables.</description> | |
</plugin> | |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | |
<!-- TARGETING --> | |
<!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> | |
<aliases> | |
<alias enabled="y" keep_evaluating="y" match="^tg (.+)$" regexp="y" send_to="12"> | |
<send>target = "%1" | |
Note("Target is now: %1")</send> | |
</alias> | |
<alias enabled="y" keep_evaluating="y" match="^k (\w+)$" regexp="y" send_to="10" sequence="100"> | |
<send>tg %1</send> | |
</alias> | |
<alias enabled="y" keep_evaluating="y" match="^k(?: \w+)?$" regexp="y" send_to="12" sequence="101"> | |
<send>Send("kick " .. target)</send> | |
</alias> | |
</aliases> | |
</muclient> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment