"[PlayerName]" isn't a lua event. Try this
Code:
function Custom_Emotes(event, pPlayer, message, type, language)
if (message == "#stomp") then
pPlayer:SendChatMessage(12, 0, "|cFF6600".. pPlayer:GetName() .." |cFF6600 violently stomps on the ground."
end
end
RegisterServerHook(16, "Custom_Emotes")
or, come to think of it, just this would work
Code:
function Custom_Emotes(event, pPlayer, message, type, language)
if (message == "#stomp") then
pPlayer:SendChatMessage(12, 0, "/emote violently stomps on the ground."
end
end
RegisterServerHook(16, "Custom_Emotes")
The command has to be #stomp rather than /stomp due to / starting a command. And creating a custom COMMAND would be a lot more annoying..