View Single Post
02-02-08, 12:24 PM   #16
Stonedpossum
A Murloc Raider
Join Date: Oct 2007
Posts: 8
Gah! Ok, I have,

Code:
local frame= CreateFrame("Frame")
frame:RegisterEvent("PLAYER_AURAS_CHANGED")
frame:SetScript("OnEvent", function(frame)
    local t = 0
    frame:SetScript("OnUpdate", function(_, elapsed)
        t = t + elapsed
        if t >= 1 then
            frame:SetScript("OnUpdate", nil) 
            if IsMounted() then
                PlayMusic("Interface\\AddOns\\OnTheRoad\\music.mp3")
            else  
                StopMusic()
            end
        end
end)
But it still doesn't even work.
  Reply With Quote