Download
(197 Kb)
Download
Updated: 12-09-13 02:22 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Escalation (5.3)
Thunder Isle (5.2)
Landfall (5.1)
Mists of Pandaria (5.0.4)
Updated:12-09-13 02:22 PM
Created:10-17-10 03:25 PM
Downloads:3,016
Favorites:28
MD5:
5.4
ShardAce Cataclysm
Version: 1.15
by: Kyrgune [More]
**This addon is a work in progress, but it works!**

I highly recommend downloading the addon SoulSpeak and use the message system included in there for Warlocks. It's much more versatile than the one included in this addon, and honestly the message system on ShardAceCata has been a bit broken for awhile and I will be removing it soon.


Description: Button goodness for Warlocks which can be placed near your minimap.

Some basic useful hints:

Options to setup the addon is in the "Addons" tab in the World of Warcraft menu. (Interface/Addons)

Left click (or right click) on the Shard counter button to bring out the flyout buttons for Warlock specific spells to use. Left click (or right click) on the Shard counter button to close the flyout rows.

Select your target and right click on the Soulstone button to Soulstone a target.

Right click on the Healthstone button to create a Healthstone. Left click to use the Healthstone.

A big thanks to everyone helping out to continue this great addon!

This is an updated version of ShardAceWoTLK which can be found at http://www.wowinterface.com/download...dAceWoTLK.html
1.15

-- Some fixes to timers such as Summoning and SoulBurn.

1.14

-- Removed desaturate for the Soulstone button.
-- Added Dark Intent for the flyout buttons with the spell change.

1.13

-- Fixed The SoulStone button to show the 10 minute cooldown.
-- Updated TOC

1.12b

-- Updated TOC

1.12a

-- Updated TOC

1.12

-- Added Dark Intent to flyout buttons.

1.11

-- Fixed Soulstone messages to Party/Raid and yourself.

1.10

-- Added in fixes for strata.
-- Fixed errors for low level Warlocks hovering over the Healthstone and Soulstone buttons.

1.09

-- Changed Soulstone timer back to 15 minutes.
-- Changed the self message from "RAID" to "SAY".
-- Removed strata for the buttons until a better way is found.

1.08

-- Fixed Empower timer

1.07

-- Fixed spelling mistakes, thanks Ravynne.
-- HOPEFULLY removed all the old useless code :)
-- For positioning the main buttons, changed the description to include "cursor".


1.06

-- Changed the name of the addon.
-- Added in Ravynee's fix to set strata for the buttons.

1.05

-- Thanks to Ravynne for adding the Soulshard count and a new button icon.
-- Changed the layout of flyout buttons so they make alittle bit more sense.
-- Added grayouts for Doomguard and Infernal. (They both gray out since they share the same cooldown.)
-- Added grayouts for SoulWell and Summoning Portal (Right now they gray out if you just cast the spell and nobody clicks on it, but it's better than not having them do it at all.)
-- Other small misc. changes to code cleanup.


1.04

-- Fixed a small boo-boo for the 3rd row not showing the right icons for the spell selected.
-- Updated TOC

1.03

-- Fixed Soul Harvest cooldown so it grays out when on cooldown.
-- Added Soulburn to the flyout buttons.
-- Changed position of the Felguard on the flyout buttons.

1.02

-- Fixed Metamorphosis popup error.

1.01

-- Cleaned up some code.
-- Removed old Shard count.
-- Added Soul Harvest to flyout row one.


1.0

-- Thanks to pod_x for fixing the buttons.
Archived Files (11)
File Name
Version
Size
Author
Date
1.14
197kB
Kyrgune
05-18-13 07:21 PM
1.13
197kB
Kyrgune
03-16-13 06:56 PM
1.12b
197kB
Kyrgune
06-29-11 10:43 PM
1.12a
197kB
Kyrgune
04-26-11 12:12 PM
1.12
197kB
Kyrgune
01-26-11 11:59 AM
1.11
197kB
Kyrgune
01-05-11 02:32 PM
1.10
197kB
Kyrgune
12-14-10 12:10 PM
1.09
197kB
Kyrgune
12-05-10 11:10 AM
1.08
197kB
Kyrgune
10-31-10 02:59 PM
1.07
197kB
Kyrgune
10-31-10 01:45 PM
1.06
197kB
Kyrgune
10-29-10 01:56 PM


Post A Reply Comment Options
Unread 12-15-10, 12:33 PM  
Kyrgune
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 49
Uploads: 1
Re: Re: Re: New Round of Fixes

Originally posted by Ravynne
I'm glad they work!

1. Can you confirm that soulstone cast messages will ever go to raid members? I think the last update you did forced them to "SAY" channel, which meant in a raid, they went nowhere. But it could also be due to other settings. The old way, saying RAID for those messages, meant in SendMyMessage, that they would go to RAID...

In any event, I think this needs an overhaul:
If in a raid, send to raid.
If in a party, send to party.
If solo - send to no one. Are there any summons that work solo? If I'm soulstoning myself right before running into an enemy town, won't my "SAY" message tell them I'm nearby?

2. I just leveled to 83 last night (I'm a slow leveler)... and learned Dark Intent. This is a good candidate for one of the bars.
Spell ID is 80398
I placed it on thirdrow, as I was thinking it's more like a 30 min buff like FelArmor...

But technically, row1 and 3 are a mess. I'm thinking row1 should be stuff you use in combat often (empower, shadowward, meta) and the rest on row3, stuff you usually do while not in combat (but can) (soullink, soulharvest, armor, breath). I know some spells CAN be done in combat.

Well, I'm just not sure

(Should the warlock get to decide which bar each spell goes on? That's a lot of work to program!)

3. There's that level 85 spell, which has a timer, so another set of timer code is needed. I don't have that spell ID handy at the moment, but it's easy to find on wowhead...
I agree, that whole message system needs an overhaul. I don't really see a reason for notifying you if you soulstone yourself. What I thought I changed in the code was just the message for yourself, but it affects "RAID" as well. I just tested this and no messages show up.

As far as the other stuff, sure it could be put into more of a reasonable order. I won't have time to work on it until after New Years though. I can add an "optional" section to the addon so you can upload any changes you have done. Let me know.

Take it easy!
Last edited by Kyrgune : 12-17-10 at 11:09 AM.
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 12-14-10, 09:30 PM  
Ravynne
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
Re: Re: New Round of Fixes

Originally posted by Kyrgune
Tested out the changes you did and they all seem to be working correctly. The strata changes play well with Chocolatebar (and I'm assuming other LDB display addons). I'll post an update to the addon soon. Thankyou very much!

Kyrgune
I'm glad they work!

1. Can you confirm that soulstone cast messages will ever go to raid members? I think the last update you did forced them to "SAY" channel, which meant in a raid, they went nowhere. But it could also be due to other settings. The old way, saying RAID for those messages, meant in SendMyMessage, that they would go to RAID...

In any event, I think this needs an overhaul:
If in a raid, send to raid.
If in a party, send to party.
If solo - send to no one. Are there any summons that work solo? If I'm soulstoning myself right before running into an enemy town, won't my "SAY" message tell them I'm nearby?

2. I just leveled to 83 last night (I'm a slow leveler)... and learned Dark Intent. This is a good candidate for one of the bars.
Spell ID is 80398
I placed it on thirdrow, as I was thinking it's more like a 30 min buff like FelArmor...

But technically, row1 and 3 are a mess. I'm thinking row1 should be stuff you use in combat often (empower, shadowward, meta) and the rest on row3, stuff you usually do while not in combat (but can) (soullink, soulharvest, armor, breath). I know some spells CAN be done in combat.

Well, I'm just not sure

(Should the warlock get to decide which bar each spell goes on? That's a lot of work to program!)

3. There's that level 85 spell, which has a timer, so another set of timer code is needed. I don't have that spell ID handy at the moment, but it's easy to find on wowhead...
Ravynne is offline Report comment to moderator  
Reply With Quote
Unread 12-14-10, 11:54 AM  
Kyrgune
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 49
Uploads: 1
Re: New Round of Fixes

Tested out the changes you did and they all seem to be working correctly. The strata changes play well with Chocolatebar (and I'm assuming other LDB display addons). I'll post an update to the addon soon. Thankyou very much!

Kyrgune
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 12-12-10, 12:14 PM  
Ravynne
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
New Round of Fixes

Here are my new round of "fixes"

1. Low level characters get strange errors when hovering over the soulstone and healthstone button. Add an appropriate if check to the "SetupTooltips" function to see if the attribute(spell) is available. As a side effect, non-warlocks who hover over these icons don't experience errors.

Code:
    for i=2, 3, 1 do
      self.buttons[i]:SetScript("OnEnter", function(self) GameTooltip_SetDefaultAnchor(GameTooltip, UIParent); if self:GetAttribute("spell2") ~= nil then GameTooltip:SetHyperlink(GetSpellLink(self:GetAttribute("spell2"),"")) end end)
      self.buttons[i]:SetScript("OnLeave", function(self) GameTooltip:Hide() end )
    end
2. I think I have a fix for the Strata problem. The 3 buttons around the minimap are at default strata. Only the buttons that show up when you click the shard button are at TOOLTIP level. The reason my previous attempt at this did not work, was because I did not look at the parent frame option. This code sets the buttons to have a parent frame of the shard button. This makes it better (at least for me). ButtonDaemon-1.0.lua, add a parameter for the parent frame option. When creating a new button, use the parent option. If the parent frame is UIParent, then leave the strata alone. If the parent frame is not UIParent, then set the strata to TOOLTIP.

Code:
function ButtonDaemon:NewButton(Border, Icon, templates, parentFrame)
  local button
  local inherit = "BD-1.0-RndTmpl"
  if templates then
    inherit = format("BD-1.0-RndTmpl, %s", templates)
  end
  button = CreateFrame("Button", nil, parentFrame, inherit)
  if parentFrame ~= UIParent then
    button:SetFrameStrata("TOOLTIP")
  end
In ShardAceCata, CreateButtons remember the frame of the shard button, and pass it as a parameter to the children buttons.

Code:
  local shardButton = BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", "Interface\\AddOns\\shardacecata\\shard", "SecureHandlerClickTemplate", UIParent)
  self.buttons = self.buttons or {
    shardButton,
    BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", select(3,GetSpellInfo(self.spellID.CreateSS)), "SecureActionButtonTemplate", UIParent),
    BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", select(3,GetSpellInfo(self.spellID.CreateHS)), "SecureActionButtonTemplate", UIParent),
  }

  self.firstrow = self.firstrow or {
    BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", select(3,GetSpellInfo(self.spellID.SoulHarvest)), "SecureActionButtonTemplate", shardButton),
    BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", select(3,GetSpellInfo(self.spellID.SoulLink)), "SecureActionButtonTemplate", shardButton),
    BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", select(3,GetSpellInfo(self.spellID.Empower)), "SecureActionButtonTemplate", shardButton),
  }

-- Add the "shardButton" parameter to all of the following BD:NewButton as the last parameter
If you have any questions, then please let me know.


Thanks and enjoy!
Ravynne is offline Report comment to moderator  
Reply With Quote
Unread 12-05-10, 10:59 AM  
Kyrgune
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 49
Uploads: 1
Didn't realize they changed it back. For awhile the soulstone lasted 15 minutes, but you couldn't actually cast it on yourself or someone else for 30 minutes thereafter. Good catch there.

Originally posted by Jeehell
Hi Kyrgune...

Can you bring back the fix for the soulstone timer that I posted in the WotLK version of the addon...

self.Timers.SoulTimer = time() + 1800

Replace 1800 with 900 to bring the timer down from 30 to 15 minutes...

Thanks
Last edited by Kyrgune : 12-05-10 at 11:04 AM.
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 12-05-10, 09:41 AM  
Jeehell
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
Hi Kyrgune...

Can you bring back the fix for the soulstone timer that I posted in the WotLK version of the addon...

self.Timers.SoulTimer = time() + 1800

Replace 1800 with 900 to bring the timer down from 30 to 15 minutes...

Thanks
Jeehell is offline Report comment to moderator  
Reply With Quote
Unread 11-29-10, 03:09 AM  
Djambo
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Nice, thank you. Exactly what I was looking for.

Originally posted by Kyrgune
Actually I noticed the same thing with Chocolate Bar after I added in the strata option so I commented out the line that does it. I didn't like how it behaved either. I don't know if anyone else likes the strata option that's in there so I haven't uploaded a version without it.

If you want to get rid of it do this: (Just changing Ravynne's original post a little bit heh)

Edit ButtonDaemon-1.0\ButtonDaemon-1.0.lua
after Line 13: button = CreateFrame line...

So on new Line 14:
--button:SetFrameStrata("TOOLTIP")

That will get rid of the strata, or you can just totally get rid of line 14 if you want.
Djambo is offline Report comment to moderator  
Reply With Quote
Unread 11-28-10, 02:01 PM  
Kyrgune
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 49
Uploads: 1
Re: You are not in a raid

Originally posted by Ravynne
When I solo and cast soulstone on myself, I get messages you are not in a raid. I think the code in SendMyMessage is a mess. I'm not sure what the original programmer had in mind there. But the only spot of code that calls it with soulstone passes the channel RAID. But, if we're not in a raid, or a party, it puts the message in RAID channel anyway. This is dumb. It should default it to SAY or not print it at all. I'm putting it to SAY in my copy. Just sharing. As always, enjoy
Noticed that myself, thought I tested everything out but I must have forgotten about the ForteXorcist addon which I use for my Soulstone messages.

When you Soulstone yourself it has some white text come up in your chatbox saying you have been soulstoned.

It's not the "WHISPER" channel (I just tried it in ShardAce), not sure what it is. I supose having it set to "SAY" for now seems like the best choice. I'll look and see what I can do.
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 11-28-10, 01:03 PM  
Kyrgune
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 49
Uploads: 1
Originally posted by Djambo
Thank you all for keeping this up to date. I have been using ShardAce and all its predecessors for more than 5 years since I discovered it in the Cosmos pack. Old times.

I have one minor question concerning the strata. As I have placed the buttons at the minimap while using the Chocolate Bar as my LDB-display the ShardAce buttons overlap the popup of my LDB-plugins. Screenshot

Would it be possible to have the three ShardAce buttons in the background (behind the popups) and the flyouts as they are now (above my buffs)?
Actually I noticed the same thing with Chocolate Bar after I added in the strata option so I commented out the line that does it. I didn't like how it behaved either. I don't know if anyone else likes the strata option that's in there so I haven't uploaded a version without it.

If you want to get rid of it do this: (Just changing Ravynne's original post a little bit heh)

Edit ButtonDaemon-1.0\ButtonDaemon-1.0.lua
after Line 13: button = CreateFrame line...

So on new Line 14:
--button:SetFrameStrata("TOOLTIP")

That will get rid of the strata, or you can just totally get rid of line 14 if you want.
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 11-27-10, 05:45 PM  
Ravynne
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
Doesn't work for me at all. Apparently, I have much more to learn about strata and other ui items

It basically changes the behavior to that before I recommended the strata change...

Originally posted by Ravynne
Kyrgune, here's how I would implement this, but I haven't tested it yet:

1. Add new parameter to NewButton
ButtonDaemon-1.0.lua
function ButtonDaemon:NewButton(Border, Icon, templates, strataTooltip)

2. Use the new parameter in the NewButton function
if strataTooltip then
button:SetFrameStrata("TOOLTIP")
end

3. Set the parameter to false when adding main buttons in shardacecata:CreateButtons()

ie: BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", "Interface\\AddOns\\shardacecata\\shard", "SecureHandlerClickTemplate", false),

4. Set the parameter to true when adding flyout buttons:
ie:
BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", select(3,GetSpellInfo(self.spellID.SoulHarvest)), "SecureActionButtonTemplate", true),
Ravynne is offline Report comment to moderator  
Reply With Quote
Unread 11-27-10, 05:34 PM  
Ravynne
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
You are not in a raid

When I solo and cast soulstone on myself, I get messages you are not in a raid. I think the code in SendMyMessage is a mess. I'm not sure what the original programmer had in mind there. But the only spot of code that calls it with soulstone passes the channel RAID. But, if we're not in a raid, or a party, it puts the message in RAID channel anyway. This is dumb. It should default it to SAY or not print it at all. I'm putting it to SAY in my copy. Just sharing. As always, enjoy
Ravynne is offline Report comment to moderator  
Reply With Quote
Unread 11-27-10, 05:27 PM  
Ravynne
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
Originally posted by Djambo
Would it be possible to have the three ShardAce buttons in the background (behind the popups) and the flyouts as they are now (above my buffs)? [/b]
Kyrgune, here's how I would implement this, but I haven't tested it yet:

1. Add new parameter to NewButton
ButtonDaemon-1.0.lua
function ButtonDaemon:NewButton(Border, Icon, templates, strataTooltip)

2. Use the new parameter in the NewButton function
if strataTooltip then
button:SetFrameStrata("TOOLTIP")
end

3. Set the parameter to false when adding main buttons in shardacecata:CreateButtons()

ie: BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", "Interface\\AddOns\\shardacecata\\shard", "SecureHandlerClickTemplate", false),

4. Set the parameter to true when adding flyout buttons:
ie:
BD:NewButton("Interface\\AddOns\\shardacecata\\BtnRound", select(3,GetSpellInfo(self.spellID.SoulHarvest)), "SecureActionButtonTemplate", true),
Ravynne is offline Report comment to moderator  
Reply With Quote
Unread 11-27-10, 01:53 PM  
Djambo
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Thank you all for keeping this up to date. I have been using ShardAce and all its predecessors for more than 5 years since I discovered it in the Cosmos pack. Old times.

I have one minor question concerning the strata. As I have placed the buttons at the minimap while using the Chocolate Bar as my LDB-display the ShardAce buttons overlap the popup of my LDB-plugins. Screenshot

Would it be possible to have the three ShardAce buttons in the background (behind the popups) and the flyouts as they are now (above my buffs)?
Djambo is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 02:46 PM  
Kyrgune
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 49
Uploads: 1
Originally posted by Ravynne
Here's today's issues:

I used Demonic Empowerment today and it caused an error.
I believe line 1129ish in the Empower timer block refers to the icon in row 1, button 5. But it's row 1, icon 3, as defined on line 963ish.

You should ensure that all the timer abilities are lined up with the new locations of all the icons.

Happy Halloween
Whoops, yeah I wanted to test out ALL the buttons in game to make sure I had them correct, but I didn't feel like spending the gold to respec. (Shame on me.) Sometimes after looking at just the lua for fixes etc. for hours my eyes start blurring heheh. Changing the background to black has helped though...Anyways...I'll fix that ASAP. Thanks...
Last edited by Kyrgune : 10-31-10 at 02:55 PM.
Kyrgune is offline Report comment to moderator  
Reply With Quote
Unread 10-31-10, 02:25 PM  
Ravynne
A Kobold Labourer

Forum posts: 0
File comments: 17
Uploads: 0
Here's today's issues:

I used Demonic Empowerment today and it caused an error.
I believe line 1129ish in the Empower timer block refers to the icon in row 1, button 5. But it's row 1, icon 3, as defined on line 963ish.

You should ensure that all the timer abilities are lined up with the new locations of all the icons.

Happy Halloween
Ravynne is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: