Riposte Alert
Blow a whistle when the Riposte counterattack is available. This scriptlet is a primitive version of the RiposteAlert mod I wrote. While the addon version is superior (e.g. handles the cooldown nerf introduced in patch 1.8), this is still a reasonable example of a LuaSlinger script. You may need to replace the path to the .wav file below.
Set this to execute on event UNIT_COMBAT.
local junk, englishClass = UnitClass("player");
if (englishClass == "ROGUE") then
if (arg1 == "player" and arg2 == "PARRY") then
-- Riposte available
PlaySoundFile("Interface\\AddOns\\RiposteAlert\\whistleshort.wav");
end
end