Download
(32Kb)
Download
Updated: 06-29-11 09:35 PM
Pictures
File Info
Updated:06-29-11 09:35 PM
Created:06-01-11 03:52 AM
Downloads:1,423
Favorites:1
MD5:

Totem Target Warning

Version: 1.1
by: Rixxon [More]

Totem Target Warning

ist ein Addon welches einen Sound abspielt wenn man dabei ist ein Totem zu Heilen .

Totem Target Warning is an addon which plays a sound when you are reduced to heal a totem.

Code:
      -- Change this to the sound file you want to play.
      --local SOUND = "Sound\\Spells\\PVPWarningHorde.ogg"
	  --local SOUND = "Interface\\AddOns\\TotemTargetWarning\\Sound\\sound.ogg"
	  local SOUND = "Sound\\Spells\\PVPFlagTaken.wav"
	  
	  -- Change this to the message you want to show.
      local TEXT  = "!!!!  Totem im Target  !!!!"
       
      -- Change this to the word that appears in the names
      -- of all totems in your language.
      local TOTEM = "Totem"
	  local addon = CreateFrame( "Frame" )
		addon:RegisterEvent( "UNIT_SPELLCAST_SENT" )
		addon:SetScript( "OnEvent", function( self, event, unit, spell, _, target )
			if unit == "player" and target:match( TOTEM ) then
				PlaySoundFile(SOUND, "Master")
				RaidNotice_AddMessage(RaidWarningFrame, TEXT, {r=1, g=1, b=1})
			end
		end )

ready for 4.2
Optional Files (0)


There have been no comments posted to this file.
Be the first to add one.



Category Jump: