Originally Posted by WhirlyTV
I was wondering if there was a way to tell when you're characters experience bar turns rested. If not I can find all the coordinates of the inns and post them.
|
Lua Code:
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_UPDATE_RESTING")
f:SetScript("OnEvent", function(self, event, ...)
if IsResting() then
-- You are now resting. Play some music!
-- PlayMusic
else
-- You are no longer resting. Turn off the music :(
-- StopMusic
end
end)
You might want to use
PlayMusic and
StopMusic function, but cannot 100% guarantee.