ga526321 / prat

Automatically exported from code.google.com/p/prat
GNU General Public License v3.0
0 stars 0 forks source link

Feature Request: Sounds module AFK option #91

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be really nice if I could set the Sounds module to only play
alerts when I'm AFK.  I don't really want a sound every time somebody
whispers me, but it's nice for when I'm AFK.  I hardcoded this change on my
computer, but an option would be obviously better.

Also, go UTHER server! =)

Original issue reported on code.google.com by XCPeng...@gmail.com on 21 Jul 2007 at 6:48

GoogleCodeExporter commented 9 years ago
can you post the changes you made to your local copy and i'll see about adding 
an
option for it.

Original comment by asml...@gmail.com on 12 Aug 2007 at 9:55

GoogleCodeExporter commented 9 years ago
I just changed one line in one function in Prat/Modules/Sound.lua

function Prat_Sounds:PlaySound(sound, event)
    self:Debug("PlaySound", sound, Prat.EVENT_ID)
    self.lasteventtype = event
    self.lastevent = Prat.EVENT_ID

    -- Only play sounds while AFK
    if( UnitIsAFK("player") ) then Prat:PlaySound(sound) end
end

Original comment by XCPeng...@gmail.com on 21 Aug 2007 at 3:16