I'm now working with this kind of stuff to send my sounds:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
if(Message == "Veritas")
{
ChatWnd.SendMessage("/sound Veritas");
}
if(Message == "All For The Thrill")
{
ChatWnd.SendMessage("/sound All For The Thrill");
}
But if you have to do this for more than 300 Sounds,
Then it takes hours of copy/past/edit things....
I was thinking at a solution from this kind of genre:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd,Origin,Message,MessageKind)
{
ChatWnd.Send("/sound" + Message);
}
And then for the alerthing.