Originally Posted by Eungavi
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.
|
Originally Posted by Ammako
Also, as far as I'm aware, there isn't an easy/straightforward way to tell whether you are in an inn or not, unless you want the shop music to constantly play while you are anywhere in a major city.
|
Major cities put your character at rest, aka you will have shop music playing all the time while in cities.