View Single Post
03-15-11, 10:57 PM   #2
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
Manatide help

Hy,
How can i make the two makros is a singel script ?

The first makro makes a say if i dropt the Manatide Totem, so all player knows Manatide is running.

The second makro makes an say how long is my cooldown.

PHP Code:
#showtooltip
/script
   local x 
UnitCastingInfo("player");
   
local y GetSpellCooldown("Totem der Manaflut");
     if (
== nil) and (1)
      
then SendChatMessage ("Manaflut !  Kuscheln !!""SAY");
end
/cast Totem der Manaflut 
For the second script i need a other addon (SlashIn) to use it.

PHP Code:
#showtooltip
/cast Mana Tide Totem
/in 60 /p MANATIDE 2MIN CD
/in 120 /p MANATIDE 1 MIN CD
/in 150 /p MANATIDE 30SEK CD
/in 150 /raid  MANATIDE 30SEK CD 
I've try to change this addon but i fail
There comes no Print so i can't make the next step. Maybe the script isn't up to date with WoW 4.0.6.
I don't know mutch about LUA but i try to learn from other addons to give my best..

PHP Code:
local addon CreateFrame("Frame")
addon:SetScript("OnEvent", function(selfevent, ...)
    
local PlayerGUID UnitGUID("player")
    
local _CombatEvent___DestGUID__SpellID = ...
    if 
CombatEvent=="SPELL_AURA_APPLIED" and DestGUID==PlayerGUID then
        
if SpellID == 10467 then --Manatide Spell ID
            
print("Manatide is running")
        
end
    end
end
)
addon:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED"

Last edited by Rixxon : 03-15-11 at 11:08 PM.
  Reply With Quote