Download
(1Kb)
Download
Updated: 04-27-11 06:22 AM
Pictures
File Info
Updated:04-27-11 06:22 AM
Created:04-19-11 10:26 AM
Downloads:1,279
Favorites:2
MD5:

Spirit Link - Information

Version: Release 1
by: Rixxon [More]

Spirit Link - Information

German:
Spirit Link Informaiton ist ein Addon welches eine Nachricht als Say angibt.
Sobald das stellen des Totems erfolgreich abgeschlossen ist.
Sagt der Charakter "Spirit Link ! aktiv !" .
Als nächstes wird per Say runtergezählt "3" , "2" , "1"
und zum Schluss dann "SL Ausgelaufen - Verteilen !"
Als letzter Zusatz gibt es dann noch einen Countdown wann das Totem wieder bereit ist.
2 Minuten
1 Minute
30 Sekunden
Spirit Link Ready !



Google Translator English :

Spirit Link Informaiton is an addon which specifies a message as Say.
Once the place of the totem is successfully completed.
The character says "Spirit Link! active!" .
After that is counted down by Say "3 ", "2", "1"
and then finally "SL Outdated - Distribute!"
As a final note, there is still a countdown when the totem is ready again.
2 minutes
1 minutes
30 seconds
Spirit Link Ready!



Code:
      local messages = {
          { time = 0, channels = "Yell", message = "Spirit Link ! Rein ins Grüne !" },
		  { time = 3, channels = "SAY", message = "SL 3" },
          { time = 4, channels = "SAY", message = "SL 2" },
          { time = 5, channels = "SAY", message = "SL 1" },
          { time = 6, channels = "SAY", message = "SL Ausgelaufen - Verteilen !" },
		  { time = 60, channels = "SAY", message = "SL 2min CD" },
		  { time = 120, channels = "SAY", message = "SL 1min CD" },
		  { time = 150, channels = "SAY", message = "SL 30 sec CD" },
		  { time = 180, channels = "SAY", message = "Spirit Link Ready !" },
		 }
       
      local counter, nextMessage = 0, 1
       
      local addon = CreateFrame( "Frame" )
      addon:RegisterEvent( "UNIT_SPELLCAST_SUCCEEDED" )
      addon:SetScript( "OnEvent", function( self, event, unit, _, _, _, spell )
          --if unit == "player" and spell == 8185 then -- for Testing
		  if unit == "player" and spell == 98008 then
          -- Start running the messages.
              counter, nextMessage = 0, 1
              self:Show()
          end
      end )
       
      addon:Hide()
      addon:SetScript( "OnUpdate", function( self, elapsed )
          -- Add up how much time has passed
          -- since you cast Spirit Link
          counter = counter + elapsed
       
          local m = messages[ nextMessage ]
          if counter < m.time then
              -- It's not time for a message yet.
              return
          end
       
          -- Send the message!
          for channel in m.channels:gmatch("%S+") do
              SendChatMessage( m.message, channel )
          end
       
          -- Queue up the next message.
          nextMessage = nextMessage + 1
       
          -- Find out if it's done.
          if not messages[ nextMessage ] then
              self:Hide()
              counter, nextMessage = 0, 1
          end
      end )

Optional Files (0)


Post A Reply Comment Options
Unread 04-19-11, 02:37 PM  
jasje
A Chromatic Dragonspawn
 
jasje's Avatar
AddOn Author - Click to view AddOns

Forum posts: 150
File comments: 279
Uploads: 4
Nifty addon, might using it when patch come's.
__________________

Tukui | Github
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: