WoWInterface - View Single Post - Looking for Reminder Addon
View Single Post
09-09-12, 10:11 PM   #2
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
This will check for Moonkin Form when you enter combat, and display a warning message in the Raid Warning Frame if you're not in it.

local name, _, icon = GetSpellInfo(24858)
local message = format("Missing |T%s:20:20:-5|t %s!", icon, name)
local color = { r = 1, g = 1, b = 0 }

local f = CreateFrame("Frame")
f:SetScript("OnEvent", function(self, event)
	if GetSpecialization() == 1 and GetShapeshiftForm() ~= 5 then
		RaidNotice_AddMessage(RaidWarningFrame, message, color)
Use http://addon.ziuo.net/ to turn that into an addon if you're not sure how.
Author/maintainer of Grid, PhanxChat, oUF_Phanx, and many more.
Troubleshoot an addonTurn any code into an addonMore addon resources
Need help with your code? Post all of your actual code! Attach or paste your files.
Please don’t PM me about addon bugs or code questions. Post a comment or forum thread instead!
  Reply With Quote