View Single Post
02-01-08, 06:28 PM   #12
Icecoldcoke
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 132
Originally Posted by Stonedpossum View Post
Don't I want it to stop the music when you unmount?

And also, what's wrong with the where the music file is?

Because that's where it is...

Code:
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_AURAS_CHANGED");
f:SetScript("OnEvent", function()
   if IsMounted() then
      PlayMusic("Interface\\AddOns\\OnTheRoad\\music.mp3")
   else
      StopMusic()
   end
end)
  Reply With Quote