Hi all.
Thanks for your suggestions, I still have not been able to make it work but I have not given up just yet.
The print solution only prints it into my chat, it does not broadcast it to general.
From reading the escape sequences page it seems it should be as easy as
Lua Code:
local chatString = ("\124TInterface\\TargetingFrame\\UI-RaidTargetingIcon_8.png:0\124t")
SendChatMessage(chatString, 'CHANNEL', nil, 1)
However when I run it in game I keep getting the following error
Lua Code:
1x SendChatMessage(): Invalid escape code in chat message
[string "=[C]"]: ?
[string "=[C]"]: in function `SendChatMessage'
[string "@Swarm\Swarm-SR 2.7.8.32.lua"]:208: in function <Swarm\Swarm.lua:199>
[string "@Swarm\Swarm-SR 2.7.8.32.lua"]:267: in function `func'
[string "@FrameXML\UIDropDownMenu.lua"]:895: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>
Locals:
(*temporary) = "|TTargetingFrame\UI-RaidTargetingIcon_8.png:0|t"
(*temporary) = "CHANNEL"
(*temporary) = nil
(*temporary) = "1"
I tried a number combinations yet each time I got the same
Invalid escape code in chat message error
I also tried just using the naked {rt8}
Lua Code:
local chatString = ({rt8})
SendChatMessage(chatString, 'CHANNEL', nil, 1)
When I run this I get the following error
Lua Code:
1x Usage: SendChatMessage(text [,type] [,language] [,targetPlayer])
[string "=[C]"]: ?
[string "=[C]"]: in function `SendChatMessage'
[string "@Swarm\Swarm-SR 2.7.8.32.lua"]:208: in function <Swarm\Swarm.lua:199>
[string "@Swarm\Swarm-SR 2.7.8.32.lua"]:267: in function `func'
[string "@FrameXML\UIDropDownMenu.lua"]:895: in function `UIDropDownMenuButton_OnClick'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>
Locals:
(*temporary) = <table> {
}
(*temporary) = "CHANNEL"
(*temporary) = nil
(*temporary) = 1
So I am still stumped.
Any further help or suggestions would be greatly appreciated.