OK - here's something to get you started...
You don't need an .XML file - just a .LUA file which contains the following...
Code:
-- define a frame
local OurPoisonMod = CreateFrame("Frame")
-- create a BIG text object
local OPM_alarm = UIParent:CreateFontString(nil, 'BACKGROUND')
OPM_alarm:SetWidth(700) -- 700 pixels wide
OPM_alarm:SetHeight(50) -- 50 pixels high
OPM_alarm:SetPoint("CENTER",0,100) -- 100 pixels up from center of the screen
OPM_alarm:SetFont(GameFontNormal:GetFont(),40) -- set it's font to 40pt
OPM_alarm:SetTextColor(1,0,0) -- make it RED
-- initialise some timers
local OPM_alarmtime = 0 -- initialise our alarm timer
local OPM_checkweapons = 0 -- initialse our weapon check timer
-- the function which does all the clever stuff
local function OPM_update()
-- every 10 seconds we check our weapons to see if they have poisons
if GetTime() - OPM_checkweapons > 10 then
-- GetWeaponEnchantInfo tells us about 'temporary' enchants on our weapons (poisons, shaman weaponbuffs, stones etc.)
local mh,_,_,oh = GetWeaponEnchantInfo()
if not mh then -- we have no MH enchant
OPM_alarm:SetText("No Poison on Mainhand Weapon") -- show alarm
OPM_alarmtime = GetTime() -- start timer
elseif not oh then -- we have no OH enchant
OPM_alarm:SetText("No Poison on Offhand Weapon") -- show alarm
OPM_alarmtime = GetTime() -- start timer
end
OPM_checkweapons = GetTime()
end
-- 5 seconds after we showed the message, we clear it
if OPM_alarmtime > 0 and GetTime() - OPM_alarmtime > 5 then
OPM_alarm:SetText("") -- clear the alarm
OPM_alarmtime = 0
end
end
-- link our function to our frame's OnUpdate event
-- OnUpdate is called EVERY time the screen updates - if you have 40fps that's 40 times a second!
OurPoisonMod:SetScript("OnUpdate", OPM_update)
All this does is - every 10 check your weapons for 'temporary enchants' and if you don't have one it puts a BIG message on the screen.
5 seconds after the message appears, it will be blanked-out.
This will work for ANY class of course - not just Rogues - so your first task is to work out how to make it work ONLY for Rogues I guess
Hope this helps
*waits for people to come along and critique his code*