Reply
Thread Tools Display Modes
Unread 03-14-11, 01:44 AM   #1
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
Manatide Information

Hy,

I have a Makro that says "Manatide , come to me"
The say comes if i had no gcd and the totem has no cd too.

so far so good but there is no place to make an say .... Manatide ends in 3 , 2 , 1. and later Manatide is ready in 2 minutes , in 1 minutes , Manatide ready.

How can i make an "Addon" so build all of this in one ?

this is my makro ...

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 
I see that some addons can write the name of the player under the buff.
Like... Kings ("Player")

I think the absolut best way to make an manatide announce in the raid is to check if i hat the manatide buff, and when thats correct i say "Manatide ! run to "that player who cast manatide" . If i cast manatide the announce is "Manatide ! run to me " and then "Manatide ends in 3 , 2 , 1" "Manatide 2 min cd , 1 min cd, is ready"

I know that i need a other addon " SlashIn" to make a Makro who runs like that..

PHP Code:
#showtooltip
/cast Mana Tide Totem
/p MANATIDE AKTIV!!
/
raid MANATIDE AKTIV!!
/
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 
So here is my question ^^

If its possible to make all of these wishes in one Addon ?

Sorry for my bad english !

Now for the German ^^

Gesucht wird hier eine Möglichkeit das Manaflut Totem so einzurichten das die Information noch besser dargestellt wird.
In meinem Makro was ich oben gepostet habe wird ein Say ausgegeben welches erst kommt wenn die Attribute GCD und CD des Totems = 0 (also bereit) sind.
Leider bin ich damit auch an der 255 Zeichen grenze eines Makros gestoßen.
Was mir leider fehlt ist ein Say welches ansagt, Manaflut ist wieder bereit in 2 minuten , in 1 minute, ist wieder bereit.

Des weiteren habe ich gesehen das es möglich ist , das man den Namen des Spielers unter einem Buff anzeigen kann. Also z.B. Segen der Könige ("Spieler Name").
Das genialste was ich mir vorstellen kann ist , wenn es folgendermaßen von sich gehen würde.

Manaflut wird von Spieler "otto" gestellt, ich bekomme den Buff und mache ein Say "Manaflut steht, Kuscheln bei Otto" mehr nicht.
Wenn ich nun das Totem stelle steht dann dort "Manaflut steht, kommt zu mir kuscheln" und dann "Manaflut läuft aus in 3 , 2 , 1" und als nächstes dann "Manaflut ist bereit in 2 minuten , 1 minute , ist bereit"

Wenn so etwas machbar wäre , also das wäre für mich das absolute non plus ultra.

MfG
Rixxon
Rixxon is offline   Reply With Quote
Unread 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.
Rixxon is offline   Reply With Quote
Unread 03-18-11, 04:42 PM   #3
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 107
Hi Rixxon,

This should work:

Lua Code:
  1. local messages = {
  2.     { time = 0, channels = "SAY", message = "Manaflut ! Kuscheln !!" },
  3.     { time = 60, channels = "PARTY", message = "MANATIDE 2MIN CD" },
  4.     { time = 120, channels = "PARTY", message = "MANATIDE 1MIN CD" },
  5.     { time = 150, channels = "PARTY RAID", message = "MANATIDE 30SEK CD" },
  6. }
  7.  
  8. local counter, nextMessage = 0, 1
  9.  
  10. local addon = CreateFrame( "Frame" )
  11. addon:RegisterEvent( "UNIT_SPELLCAST_SUCCEEDED" )
  12. addon:SetScript( "OnEvent", function( self, event, unit, _, _, _, spell )
  13.     if unit == "player" and spell == 16190 then
  14.         -- You cast Mana Tide!
  15.         -- Start running the messages.
  16.         counter, nextMessage = 0, 1
  17.         self:Show()
  18.     end
  19. end )
  20.  
  21. addon:Hide()
  22. addon:SetScript( "OnUpdate", function( self, elapsed )
  23.     -- Add up how much time has passed
  24.     -- since you cast Mana Tide.
  25.     counter = counter + elapsed
  26.  
  27.     local m = messages[ nextMessage ]
  28.     if counter < m.time then
  29.         -- It's not time for a message yet.
  30.         return
  31.     end
  32.  
  33.     -- Send the message!
  34.     for channel in m.channels:gmatch("%S+") do
  35.         SendChatMessage( m.message, channel )
  36.     end
  37.  
  38.     -- Queue up the next message.
  39.     nextMessage = nextMessage + 1
  40.  
  41.     -- Find out if it's done.
  42.     if not messages[ nextMessage ] then
  43.         self:Hide()
  44.         counter, nextMessage = 0, 1
  45.     end
  46. end )

Please post any errors!
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.” — Serbian proverb
Akkorian is offline   Reply With Quote
Unread 03-19-11, 04:56 AM   #4
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
its , i can't find the right words..

Im soooo happy, thank you so mutch , its amazing !
Perfekt ! Unbelievable !
Thank you for scriptin it !

It runs perfektly !!

Thank you !!
Attached Files
File Type: zip Manatide.zip (1.0 KB, 809 views)
Rixxon is offline   Reply With Quote
Unread 06-03-11, 11:23 AM   #5
Zealoth4545
A Kobold Labourer
Join Date: Jun 2011
Posts: 1
I Have a question is it Possible to make this for enemys? if yes what must i do that it works.

line 13 unit=="player" in unit == "focus" or is the name possible?

and line 12 the event function( self, event, ...) in ? or?
Zealoth4545 is offline   Reply With Quote
Reply

Go BackWoWInterface » AddOns, Compilations, Macros » Macro Help » Manatide Information

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off