I tryed this, but can`t get it to work:
Code: Select all
SendChatMessage("Some Text", "WHISPER", 0, "SomePlayerName")Code: Select all
PlaySoundByPath("music/rom/title.mp3")Code: Select all
SendChatMessage("Some Text", "WHISPER", 0, "SomePlayerName")Code: Select all
PlaySoundByPath("music/rom/title.mp3")Code: Select all
RoMScript("SendChatMessage('Some Text', 'WHISPER', 0, 'SomePlayerName')");
Code: Select all
function Wsound_OnLoad(this)
this:RegisterEvent("CHAT_MSG_WHISPER");
wait(10)
DEFAULT_CHAT_FRAME:AddMessage("|cff993333 >> Whisper-Sound|r |cffffffff: aktiviert.|r");
end;
function Wsound_OnEvent(this, event)
if event == "CHAT_MSG_WHISPER" then
if(string.find( s, " ") ) then PlaySoundByPath("Interface/AddOns/ingamefunctions/notify.wav");
end;
end;
end;