Go Back   WowAce Forums > Official Addon Threads > General AddOns
General AddOns Authors, post your release ready addons here to get feedback or just to let everyone know about it.

Reply
 
Thread Tools
Old 02-10-2010   #1
kunda
Senior Member
 
Join Date: Oct 2006
Posts: 464
Default DrainSouler

http://www.wowace.com/addons/drainsouler/

Code:
-- -------------------------------------------------------------------------- --
-- DrainSouler by kunda                                                       --
-- -------------------------------------------------------------------------- --
--                                                                            --
-- DrainSouler is a WoW addon for affliction warlocks.                        --
-- DrainSouler shows all important data you need to know about the following  --
-- channeling spells:                                                         --
--  - Drain Life    (spellID =    689)                                        --
--  - Drain Soul    (spellID =   1120)                                        --
--  - Harvest Life  (spellID = 108371)                                        --
--  - Malefic Grasp (spellID = 103103)                                        --
--                                                                            --
-- Features:                                                                  --
-- # Display:                                                                 --
--   - Frame: Default size: 90x22px                                           --
--   - Frame: Movable & scalable                                              --
--   - Frame: Click through ('Lock DrainSouler')                              --
--   - HP (in percent)                                                        --
--   - SpellIcon (right side)                                                 --
--   - WarningIcon (left side - Drain Soul Icon)                              --
--                 (visible if target HP is at or below 20%)                  --
--   - ChannelTimer (a bar for the whole channeling duration)                 --
--   - TickTimer (a bar that indicates when the next Tick is expected)        --
--   - Tick (the number of damage ticks since caststart)                      --
--   - DMG (damage from last tick)                                            --
--   - Detailed information (DISABLED by DEFAULT)                             --
--      numTicks | tick duration in ms | complete duration in ms              --
--      Haste +x% | Spell Power +x%                                           --
--        (+x% is shown if this stat has changed since caststart)             --
-- # Sound: (DISABLED by DEFAULT)                                             --
--   - Tick Sound (plays a sound when a channeling spell dealt damage)        --
--   - Warning Sound (plays a sound when target HP is at or below 20%)        --
--                -> important for Drain Soul                                 --
-- # Resource friendly:                                                       --
--   - CPU/Memory resources are only used when you login with a WARLOCK       --
--   - CombatLog events are only used when needed (register/unregister)       --
--                                                                            --
-- Configuration:                                                             --
-- # If you log in the first time the 'Configuration' is enabled!             --
-- # 'Esc (Escape) -> Interface -> AddOns -> DrainSouler' to change options!  --
-- # slash commands: '/ds' or '/drainsouler'                                  --
--                                                                            --
-- -------------------------------------------------------------------------- --
Screenshot:



Download:
http://www.wowace.com/addons/drainsouler/files/

Last edited by kunda; 09-01-2012 at 04:36 PM. Reason: update
kunda is offline   Reply With Quote
Old 02-13-2010   #2
oomp
Member
 
oomp's Avatar
 
Join Date: Apr 2009
Posts: 30
Default Re: DrainSouler

Awesome addon! Would it be possible to add a few options to change the scale/font/colours, and so on?

Either way, keep up the good work.
oomp is offline   Reply With Quote
Old 02-13-2010   #3
kunda
Senior Member
 
Join Date: Oct 2006
Posts: 464
Default Re: DrainSouler

Quote:
Originally Posted by oomp View Post
Awesome addon! Would it be possible to add a few options to change the scale/font/colours, and so on?

Either way, keep up the good work.
Thanks. I have added an option to change the size. But, font/colours...don't know...rather not. Non-standard fonts makes simple things complicated.

Last edited by kunda; 02-16-2010 at 11:35 PM. Reason: typo
kunda is offline   Reply With Quote
Old 02-21-2010   #4
dkchronos
Newbie
 
Join Date: Mar 2009
Posts: 1
Default Re: DrainSouler

Report a Bug,
I set "Shows DrainSouler if target HP (in percent) is less or equal at 35%
but when 35% , it didn't show the drainSouler farme, I need change to another target
and change again , then will show it Frame .

Bye the way,
I translate the DrainSouler zhTW Localization,want a little hlep to you.


Thanks for your sharing
dkchronos is offline   Reply With Quote
Old 02-21-2010   #5
kunda
Senior Member
 
Join Date: Oct 2006
Posts: 464
Default Re: DrainSouler

Thanks dkchronos. Bug is fixed in DrainSouler-30300-2. (http://www.wowace.com/addons/drainsouler/files/)
kunda is offline   Reply With Quote
Old 08-14-2010   #6
miga1
Newbie
 
Join Date: Apr 2010
Posts: 2
Default Re: DrainSouler

Korea Localization error

Quote:
Interface\AddOns\DrainSouler\DrainSouler.lua:756: DrainSouler_Text_HP:SetText(): Font not set
Count: 1

Call Stack:
[C]: ?
[C]: in function `SetText'
Interface\AddOns\DrainSouler\DrainSouler.lua:756: in function `DisableConfigMode'
Interface\AddOns\DrainSouler\DrainSouler.lua:797: in function `Init'
Interface\AddOns\DrainSouler\DrainSouler.lua:867: in function <Interface\AddOns\DrainSouler\DrainSouler.lua:80 3>
fix plz

Quote:
old 549 Line
local text = HP:CreateFontString("DrainSouler_Text_HP", "ARTWORK", "GameFontWhiteTiny")

fix
local text = HP:CreateFontString("DrainSouler_Text_HP", "ARTWORK", "GameFontHighlight")

old 563 Line
local text = DMG:CreateFontString("DrainSouler_Text_DMG", "ARTWORK", "GameFontWhiteTiny")

fix
local text = DMG:CreateFontString("DrainSouler_Text_DMG", "ARTWORK", "GameFontHighlight")

Last edited by miga1; 08-14-2010 at 05:00 AM.
miga1 is offline   Reply With Quote
Old 08-14-2010   #7
kunda
Senior Member
 
Join Date: Oct 2006
Posts: 464
Default Re: DrainSouler

hmm okay. This means there is no GameFontWhiteTiny in FontStyles.lua (default blizz interface) in koKR? strange. This font is also used in AlertFrames.xml (default blizz interface). Is there a special xml für koKR too? hmmm

Anyway, is GameFontNormalSmall/GameFontWhiteSmall in the koKR FontStyles.lua?
I will use GameFontWhiteSmall instead of GameFontWhiteTiny, hope this works with koKR.

Edit: please try DrainSouler-30300-5.zip http://www.wowace.com/addons/drainsouler/files/

Thanks

Last edited by kunda; 08-14-2010 at 03:11 PM. Reason: edit
kunda is offline   Reply With Quote
Old 08-16-2010   #8
miga1
Newbie
 
Join Date: Apr 2010
Posts: 2
Default Re: DrainSouler

Grateful kunda.

As a result of having confirmed it, I am good.

I am again thankful for fix.

plz made it if adjustment is possible again.

Localization add

old 740 Line
Quote:
DrainSouler_Text_HP:SetText("HP%")

DrainSouler_Text_HP:SetText(L["HP%"])
old 741 Line
Quote:
DrainSouler_Text_DMG:SetText("DMG")

DrainSouler_Text_DMG:SetText(L["DMG"])

Last edited by miga1; 08-16-2010 at 12:30 PM.
miga1 is offline   Reply With Quote
Old 08-16-2010   #9
kunda
Senior Member
 
Join Date: Oct 2006
Posts: 464
Default Re: DrainSouler

@miga1:
It was intended not to localize 'X' (Ticks), 'HP%' and 'DMG' because it's only some kind of reminder and only visible in the configuration mode. But you are right, it's better to localize it or use some random dummy numbers instead.
kunda is offline   Reply With Quote
Old 08-31-2010   #10
Crantor
Newbie
 
Join Date: Aug 2010
Posts: 1
Default Re: DrainSouler

Hi! Love the addon and the simplicity.

One suggestion: Would it be possible to add another trigger for a sound? I would love for a different beep to go off at a determined percentage. For me personally, I would put it at 30% so that I can plan when to start Draining. Just another simple *beep* (or configurable sound as you have for ticks) would be awesome.

Keep up the good work!

Crantor
Crantor is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

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

Forum Jump


All times are GMT. The time now is 02:24 AM.