Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » Public Discussion » Player vs. Player

Reply
 
LinkBack Thread Tools
Old 05/21/08, 4:41 PM   #31
Sklodowska
Glass Joe
 
Undead Priest
 
The Venture Co
The 4 piece bonus is very nice when you have the opportunity to stand and cast, and aren't being hit. I suppose the trick is to create situations where this is true. One big problem I had was noticing when the bonus procced. I wanted a noise like the clearcasting proc and after looking around for a while I couldn't find exactly what I wanted. So I wrote a very simple addon to do it for me, and it's been working very well.

I created these three files:
BalanceProcs.toc
BalanceProcs.xml
BalanceProcs.lua

The aura names in the .lua file can be altered based on class, and the number of 'ifs' can be increased or decreased. The built-in sounds for PlaySound are at API PlaySound - WoWWiki - Your guide to the World of Warcraft and the sounds for PlaySoundFile are at API PlaySoundFile SoundList - WoWWiki - Your guide to the World of Warcraft and API PlaySoundFile SoundList2 - WoWWiki - Your guide to the World of Warcraft (in case anyone wants to do something similar).

-- BalanceProcs.toc text --
## Interface: 20400
## Title: BalanceProcs
## Author: Peaceflower
## Version: 1.0
## Notes: Plays a sound when Nature's Grace or Wrath of Elune procs.
BalanceProcs.xml

-- BalanceProcs.xml text --
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Script file="BalanceProcs.lua" />
<Frame name="BalanceProcsFrame" hidden="true">
<Scripts>
<OnLoad>
BalanceProcs_OnLoad();
</OnLoad>
<OnEvent>
BalanceProcs_OnEvent();
</OnEvent>
</Scripts>
</Frame>
</Ui>

-- BalanceProcs.lua text --
function BalanceProcs_OnLoad()
BalanceProcsFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
end
function BalanceProcs_OnEvent()
if arg2 == "SPELL_AURA_APPLIED" then
if arg6 == UnitGUID("player") and arg10 == "Nature's Grace" then
PlaySound("PVPTHROUGHQUEUE");
elseif arg6 == UnitGUID("player") and arg10 == "Wrath of Elune" then
PlaySoundFile("Sound\\Spells\\Clearcasting_Impact_Chest.wav")
end
end
end

Offline
Reply With Quote
Reply

Go Back   Elitist Jerks » Public Discussion » Player vs. Player

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moonkin DPS Spreadsheet Efejel Druids 1925 11/04/08 2:34 PM
Moonkin DPS Numbers/Comparisons Bias Class Mechanics 172 07/17/08 4:13 AM
Moonkin viability in 25 mans Shroomism Class Mechanics 161 10/31/07 8:05 AM
Moonkin DPS Calculator? Aadar Class Mechanics 87 04/16/07 2:31 AM
Raiding with ferals, moonkin, shadowpriests, etc Liandra Public Discussion 74 08/29/06 7:49 PM