World of Warcraft Spirit Healer Timer Addon Guide

Yes! I'll guide you through creating a World of Warcraft Classic addon that tracks when the Spirit Healer will resurrect players while you're still alive.

How the Addon Works

  • When you die, the Spirit Healer sets a resurrection timer (usually every 30 seconds).
  • This addon will track that timer and display it while you're still alive.

Step 1: Create the Addon Folder

Go to your WoW Classic AddOns directory:

graphql

World of Warcraft\_classic_\Interface\AddOns\

Create a new folder called:

nginx

SpiritHealerTimer


Step 2: Create the Addon Files

1. SpiritHealerTimer.toc

This is the table of contents file, which tells WoW what files belong to the addon.

File: SpiritHealerTimer.toc

plaintext

## Interface: 11403 ## Title: Spirit Healer Timer ## Author: YourName ## Version: 1.0 ## Notes: Tracks Spirit Healer resurrection timer while alive. ## SavedVariables: SpiritHealerData SpiritHealerTimer.lua SpiritHealerTimer.xml


2. SpiritHealerTimer.xml

This file defines the UI elements.

File: SpiritHealerTimer.xml

xml

Waiting...


3. SpiritHealerTimer.lua

This script tracks when the Spirit Healer will resurrect players and displays the timer.

File: SpiritHealerTimer.lua

lua

local frame = CreateFrame("Frame") local timerText = SpiritHealerTimerText local lastResTime = 0 local spiritHealerInterval = 30 -- Resurrection every 30 seconds frame:RegisterEvent("PLAYER_DEAD") frame:RegisterEvent("PLAYER_ALIVE") frame:SetScript("OnEvent", function(self, event) if event == "PLAYER_DEAD" then local currentTime = GetServerTime() local secondsSinceLast = (currentTime - lastResTime) % spiritHealerInterval local nextResIn = spiritHealerInterval - secondsSinceLast timerText:SetText("Next Res: " .. nextResIn .. "s") -- Start updating every second self:SetScript("OnUpdate", function(self, elapsed) local currentTime = GetServerTime() local secondsSinceLast = (currentTime - lastResTime) % spiritHealerInterval local nextResIn = spiritHealerInterval - secondsSinceLast timerText:SetText("Next Res: " .. nextResIn .. "s") end) elseif event == "PLAYER_ALIVE" then lastResTime = GetServerTime() timerText:SetText("Waiting...") frame:SetScript("OnUpdate", nil) -- Stop updating end end)


Step 3: Load the Addon in WoW

  • Restart WoW Classic.
  • At the character selection screen, click "AddOns".
  • Find "Spirit Healer Timer" and make sure it’s enabled.
  • Log in and test it!

How It Works

  • When you die, it calculates when the next Spirit Healer resurrection will happen.
  • It continuously updates the timer every second.
  • When you revive, the timer resets. Would you like additional features like sounds or a movable UI? 🚀