#help with trigger chat WA

6 messages · Page 1 of 1 (latest)

delicate sail
#

can someone help me change this chat message to instead of just linking the chat message, make the WA say "E'ko on me"?

function(event, message)
local inGroup = UnitInParty("player")
local inRaid = UnitInRaid("player")
if message and message:find("You receive loot") and message:find("Winterfall E'ko") then
if inGroup and inRaid then
SendChatMessage(message, "RAID",nil)
return true
elseif inGroup and not inRaid then
SendChatMessage(message, "PARTY",nil)
return true
else
return true
end
end
end

brisk harbor
#

you can delete the code, use a default trigger and then a action on show where you type what you want.

delicate sail
#

can you guide me how to do that? im not very experienced with creating new triggers and actions

mental rock
#

You don't create anything "new". It's all the default stuff.

#

Other Events -> Chat Message

#

That's where the chat message trigger is. Set it up however you want to catch whatever loot message