At DoEmote("slap", "X") I want x to be some sort of argument for who's sending the initial emote message.
I tried things such as arg2, arg12 and sender
I also tried making a work around to make you target the emoter then respond with /slap. But neither seem to work.
local p3 = CreateFrame("Frame")
p3:RegisterEvent("CHAT_MSG_TEXT_EMOTE", arg1, arg2, arg12)
p3:SetScript("OnEvent", function(self, event, arg1, arg2)
if event == ("CHAT_MSG_TEXT_EMOTE")
and strfind(arg1, "laughs")
and strfind(arg1, "you.")
and name == ("Zalíssa")
then DoEmote("slap", "")
end
end)