BeaconAlert sends you a message in red text (with a sound) when the Beacon of Light spell you had cast on someone has faded.
You can customize BeaconAlert the old fashioned way...by editing the source code.
BeaconAlert.lua
function BeaconAlert_OnLoad() BeaconAlertFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED"); end function BeaconAlert_OnEvent(self, event, ...) local timestamp, type, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags = select(1, ...) if( event == "COMBAT_LOG_EVENT_UNFILTERED" ) then if( type == "SPELL_AURA_REMOVED" ) then local spellId, spellName, spellSchool = select(9, ...) if( UnitName("player") == sourceName ) then if( spellName == "Beacon of Light" ) then PlaySound("PVPENTERQUEUE") DEFAULT_CHAT_FRAME:AddMessage("---Beacon of Light fades from " .. destName .. "---", 1, 0, 0); --RaidNotice_AddMessage(RaidBossEmoteFrame, "Beacon of Light fades from " .. destName, ChatTypeInfo["RAID_WARNING"]) end end end end end
The line of code:
PlaySound("PVPENTERQUEUE")
can be removed if you don't want any sound to play, or changed to a different sound. For a list of valid sounds, check out: http://www.wowwiki.com/API_PlaySound. Remember, your sound name has to be wrapped in double-quotes.
To change the color of the text message (default is red), edit the 3 numeric values in this line of code:
DEFAULT_CHAT_FRAME:AddMessage("---Beacon of Light fades from " .. destName .. "---", 1, 0, 0);
The 3 numeric values represent red, green, and blue. Enter values between 0.0 and 1.0. For more information, check out: http://www.wowwiki.com/API_ScrollingMessageFrame_AddMessage.
To enable a raid-style warning message that gets printed to the middle of the screen, uncomment this line of code:
--RaidNotice_AddMessage(RaidBossEmoteFrame, "Beacon of Light fades from " .. destName, ChatTypeInfo["RAID_WARNING"])
To uncomment it, simply remove the 2 dashes () that start the line.
Facts
- Date created
- 30 Nov 2008
- Category
- Last update
- 30 Dec 2008
- Development stage
- Release
- Language
- enUS
- License
- All Rights Reserved
- Curse link
- BeaconAlert
- Recent files
- R: BeaconAlert.zip for 3.0.3 on 30 Dec 2008
- R: BeaconAlert.zip for 3.0.3 on 02 Dec 2008
- B: BeaconAlert.zip for 3.0.3 on 30 Nov 2008