Remove Advertisements

Request for Addon/Macro

All things /script related

Moderators: Fridmarr, Worldie, Aergis, _Chloe

Request for Addon/Macro

Postby Kitalia » Mon Aug 31, 2009 9:56 pm

Ive been looking around for about the last three hours to try and find a macro/addon for my aura mastery

Being that i switch auras during fights, and its helpful for my raid to know which burst damage/silence i am using aura mastery on, Ive been trying to work out a way to say when aura mastery is used, and which aura it is used with

The saying "Aura mastery up/down" part is easy. But for the life of me i cannot work out a way to say which aura it uses.
Normally i would have given up - but im sure i remember a screenshot of someone saying they uses aura mastery with crusader in the middle of a raid. Now i figured they would only announce that if they had some way of auto detecting which aura was in use

I have tried using ThatJustHappened - but cannot get the auras announced.

Is there something im missing - is it impossible?

Any help would be greatly Appreciated.

Kitalia - Blackrock US
Kitalia
 
Posts: 3
Joined: Mon Aug 31, 2009 9:50 pm

Re: Request for Addon/Macro

Postby isiz » Wed Sep 16, 2009 9:03 am

It is certainly possible to do, but I have no idea what mod you could use. It would go off of what stance you are in as auras are the paladin version of stances (druids have animal forms, rogues have stealth, warriors have...stances). It may be entirely possible to do with a regular in-game macro. I shall go check and see if I can figure out how.

Update: Well crap...apparently as of the 2.o Macro API paladin auras are no longer stances... :( YOu will have to use an add-on then.
ImageImage
Tuesday maintenance is merely a setback!
User avatar
isiz
 
Posts: 407
Joined: Sat Aug 02, 2008 7:51 am

Re: Request for Addon/Macro

Postby _Chloe » Wed Sep 16, 2009 11:02 pm

That's not entirely true.

Code: Select all
GetShapeshiftForm()


http://www.wowwiki.com/API_GetShapeshiftForm
User avatar
_Chloe
Moderator
 
Posts: 971
Joined: Fri Dec 07, 2007 6:36 pm
Location: Santa Monica, CA

Re: Request for Addon/Macro

Postby isiz » Thu Sep 17, 2009 7:48 am

_Chloe wrote:That's not entirely true.

Code: Select all
GetShapeshiftForm()


http://www.wowwiki.com/API_GetShapeshiftForm


Hmmm, very odd. The list I looked at (on wowwiki too) did not list paladins and specifically said that auras were not considered stances as of the 2.0 API. and yes, stances are the same as forms. I'll go try this out.

Update: ...ok that is the add-on API, not the Macro API. The whole point of my post was to see if it was possible with a macro. So yes, it IS possible with an add-on, but you would have to find one that will let you set it up. I don't have much of a programming background (took Basic and some VERY basic C++ in high school) so I could try to make an add-on for you to do just the announce, but no promises. It would be useful to know what channels it should output to (/raid /p /rw /s /y etc...)
ImageImage
Tuesday maintenance is merely a setback!
User avatar
isiz
 
Posts: 407
Joined: Sat Aug 02, 2008 7:51 am

Re: Request for Addon/Macro

Postby isiz » Fri Sep 18, 2009 6:13 am

Ok so I got some help from Chloe and from some people on the official forums (*gasp* the forums were useful!) and I think I can make the mod now. I just need to first learn how to use frames (running off of Basic experience from like 6 years ago) so I can have it look for the cast in the combat log.
ImageImage
Tuesday maintenance is merely a setback!
User avatar
isiz
 
Posts: 407
Joined: Sat Aug 02, 2008 7:51 am

Re: Request for Addon/Macro

Postby _Chloe » Sat Sep 19, 2009 12:53 am

If you need to dig through Tankadin2. I wouldn't say it's the most documented code out there, but it should help. Look at the Ninja Frame and apply it to your usage. It's what handles all the RF/Seal/DP etc warnings when the real frames are hidden. Also here's the broadcast code from the new T3 Lib:

Code: Select all
--Main Broadcast Function
--Inputs: message = Message to Send, channels = Channels to send message to (Accepts comma seperated values ie: "RAID, 7, PARTY" localwarning = Send message as a local warning? (boolean value expected)
function Tankadin:Broadcast(message, channels, localwarning)
   local bcToTable = { strsplit(",", channels) };
   for i=1,getn(bcToTable) do
      if (strlower(strtrim(bcToTable[i])) == "raid") or (strlower(strtrim(bcToTable[i])) == "guild") or (strlower(strtrim(bcToTable[i])) == "say") or (strlower(strtrim(bcToTable[i])) == "yell") or (strlower(strtrim(bcToTable[i])) == "party") or (strlower(strtrim(bcToTable[i])) == "emote") then
         SendChatMessage(message, strupper(strtrim(bcToTable[i])));
      elseif (strlower(strtrim(bcToTable[i])) == "raid") or (strlower(strtrim(bcToTable[i])) == "party")then
         if (GetNumRaidMembers() > 0) then
            SendChatMessage(message, "RAID");
         else
            SendChatMessage(message, "PARTY");
         end
      elseif (strlower(strtrim(bcToTable[i])) == "raid_warning") then
         if IsRaidOfficer() or IsRaidLeader() then
            SendChatMessage(message, "RAID_WARNING");
         end
      elseif (strlower(strtrim(bcToTable[i])) == "emote") then
         SendChatMessage(message, "EMOTE");
      elseif (strlower(strtrim(bcToTable[i])) == "guild") then
         SendChatMessage(message, "GUILD");
      elseif (strlower(strtrim(bcToTable[i])) == "say") then
         SendChatMessage(message, "SAY");
      elseif (strlower(strtrim(bcToTable[i])) == "yell") then
         SendChatMessage(message, "YELL");
      else
         SendChatMessage(message, "CHANNEL", nil, GetChannelName(strtrim(bcToTable[i])));
      end
   end
   if localwarning then Tankadin:Message(message) end
end


and the local warning code
Code: Select all
--Send Messages to the Default Chat Frame
--Inputs: msg = Message to send to the player
function Tankadin:Message(msg)
   if msg == nil then
      msg = "nil";
   end
   DEFAULT_CHAT_FRAME:AddMessage("|cFFFFFF00-[Tankadin]- |r"..msg);
end


You can use (change the function names) to whatever you need/like.
User avatar
_Chloe
Moderator
 
Posts: 971
Joined: Fri Dec 07, 2007 6:36 pm
Location: Santa Monica, CA


Return to Add-ons, UI, and Macros

Who is online

Users browsing this forum: Bing [Bot] and 1 guest


Remove Advertisements

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 380 on Tue Oct 14, 2008 6:28 pm

Users browsing this forum: Bing [Bot] and 1 guest
?php } else { ?