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 (x == nil) and (y < 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(self, event, ...)
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")