The following two aliases are for Mushclient. They store all your emotes in one or two aliases so you don't end up with random aliases all over the place, and also let you print a list of them in case you forget.
There are two aliases here. One is for emotes that work without a target (eg just waving). The other is for emotes you use with a target (eg waving to someone). I've made a few samples below. With these aliases you can use the same emote command for both types. This means you can write a ‘nosepick’ emote that doesn’t need a target, but can also ‘nosepick israfel’.
To use the single variant, type:
Code: Select all
*nosepick
To use the targeted variant, type:You emote: Israfel picks his nose dubiously.
Code: Select all
*nosepick volog
To list all single variant emotes:You emote: Israfel picks his nose whilst staring creepily at Volog.
*list
Result:
To list all targeted emotes:EMOTE LIST:
brandish : emote #me# brandishes #me:p# #plain iron broadsword# above #me:p# head.
nosepick : emote #me# picks #me:p# nose dubiously.
wipe : emote Humming to #me:o#self, #me# wipes #me:p# filthy hands on #me:p# clothes.
[END]
*list target
Result:
To add your own emotes, open the alias menu and click edit. Find the list of emotes in the text and add new entries to the table like this:EMOTE LIST:
brandish : emote #me# brandishes #me:p# #plain iron broadsword# at #target#.
nosepick : emote #me# picks #me:p# nose whilst staring creepily at #target#.
wipe : emote Humming to #me:o#self, #me# wipes #me:p# filthy hands on #target:s# clothes.
[END]
Code: Select all
local emotes = {
["brandish"] = "emote #me# brandishes #me:p# #plain iron broadsword# above #me:p# head.",
["nosepick"] = "emote #me# picks #me:p# nose dubiously.",
["wipe"] = "emote Humming to #me:o#self, #me# wipes #me:p# filthy hands on #me:p# clothes.",
Single variant alias:
Code: Select all
<aliases>
<alias
name="emote_self"
match="^\*(.+?)$"
enabled="y"
expand_variables="y"
group="emotes"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>
--[[
INSTRUCTIONS
To use this emote alias, create your list of emotes in the table below.
Make sure to follow the formatting provided. This is a list of emotes
with no target.
To use an emotefrom this list, type * followed by the command only.
For example: *nosepick
]]
local emotes = {
["brandish"] = "emote #me# brandishes #me:p# #plain iron broadsword# above #me:p# head.",
["nosepick"] = "emote #me# picks #me:p# nose dubiously.",
["wipe"] = "emote Humming to #me:o#self, #me# wipes #me:p# filthy hands on #me:p# clothes.",
--[[ add more emotes underneath the last one in the list using the same formatting as above. That is:
["command"] = "emote text",
That's it! enjoy. ]]
}
require "pairsbykeys"
local filler = " "
if emotes ["%1"] then
local s = emotes ["%1"]
Send (s)
elseif
string.lower("%1") == "list" then
ColourNote ("silver","black","EMOTE LIST:")
for k, v in pairsByKeys (emotes) do
local key = tostring(k)
local val = tostring(v)	
local fill2 = string.rep (filler, 15 - string.len (key))	
key = (key .. fill2 .. ": ")
NoteStyle (0)
ColourTell ("silver","black", key)
ColourTell ("yellow","black", val)
Note ("")
end
ColourNote ("silver","black","[END]")
else
ColourNote ("silver","black","Emote command not recognised.")
end
</send>
</alias>
</aliases>
Code: Select all
<aliases>
<alias
name="emote_target"
match="^\*(.+?) (.+?)$"
enabled="y"
expand_variables="y"
group="emotes"
regexp="y"
send_to="12"
ignore_case="y"
sequence="100"
>
<send>
--[[
INSTRUCTIONS
To use this emote alias, create your list of emotes in the table below.
Make sure to follow the formatting provided. This is a list of emotes
with a target included.
To use an emote from this list, type * followed by the command and the target.
For example: *nosepick volog
]]
local emotes = {
["brandish"] = "emote #me# brandishes #me:p# #plain iron broadsword# at #%2#.",
["nosepick"] = "emote #me# picks #me:p# nose whilst staring creepily at #%2#.",
["wipe"] = "emote Humming to #me:o#self, #me# wipes #me:p# filthy hands on #%2:s# clothes.",
--[[ add more emotes underneath the last one in the list using the same formatting as above. That is:
["command"] = "emote text",
To give the emote a target (for example if you want to brandish at 'volog'), make sure you put #%2# into the emote text.
That's it! enjoy. ]]
}
require "pairsbykeys"
local filler = " "
if emotes ["%1"] then
local s = emotes ["%1"]
Send (s)
elseif
string.lower("%1") == "list" then
ColourNote ("silver","black","EMOTE LIST:")
for k, v in pairsByKeys (emotes) do
local key = tostring(k)
local val = tostring(v)	
local fill2 = string.rep (filler, 15 - string.len (key))	
key = (key .. fill2 .. ": ")
NoteStyle (0)
ColourTell ("silver","black", key)
ColourTell ("yellow","black", val)
Note ("")
end
ColourNote ("silver","black","[END]")
else
ColourNote ("silver","black","Emote command not recognised.")
end
</send>
</alias>
</aliases>