Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 07-12-10 04:16 PM
Pictures
File Info
Updated:07-12-10 04:16 PM
Created:unknown
Downloads:6,132
Favorites:62
MD5:

SimpleBossWhisperer  Popular! (More than 5000 hits)

Version: r47
by: Rabbit [More]

SimpleBossWhisperer

SBW was created because people kept whining that BigWigs didn't have the auto-reply stuff while fighting bosses that some other boss module addons do. I just got so sick of hearing that this belonged in BigWigs and that we should add it, so I had to create this little addon to show people that it can be done easily without hooking into any sort of boss addon framework.

The code is very simple and just works. There are no config options and no UI.

Install it, and when you're in a boss fight, people who whisper you (as long as it's not a GM and they are not in your raid group) will get a reply saying how many % the boss is on and how many people are alive.

------------------------------------------------------------------------
r72952 | rabbit | 2008-05-07 12:25:44 +0200 (on., 07 mai 2008) | 1 line

SimpleBossWhisperer: Don't trigger a "combat ended" until the boss resets.
------------------------------------------------------------------------
r70790 | rabbit | 2008-04-21 23:29:08 +0200 (ma., 21 april 2008) | 1 line

SimpleBossWhisperer: Use chat filters instead of hooking.
------------------------------------------------------------------------
r68148 | rabbit | 2008-04-05 16:52:09 +0200 (lų., 05 april 2008) | 1 line

SimpleBossWhisperer: Don't start looking for boss targets unless we're in a raid instance. Won't work on Kazzak/Doomwalker now, but #care.
------------------------------------------------------------------------
r66041 | rabbit | 2008-03-26 12:55:28 +0100 (on., 26 mars 2008) | 1 line

.Some bumps.
------------------------------------------------------------------------
r62936 | rabbit | 2008-02-26 03:20:16 +0100 (ti., 26 feb. 2008) | 1 line

SimpleBossWhisperer: Include how many (X/Y) players are alive in the status whispers.
------------------------------------------------------------------------
r61822 | rabbit | 2008-02-18 00:15:59 +0100 (ma., 18 feb. 2008) | 1 line

SimpleBossWhisperer: Don't reply to people in the raid.
------------------------------------------------------------------------
r59246 | rabbit | 2008-01-24 00:43:32 +0100 (to., 24 jan. 2008) | 1 line

SimpleBossWhisperer: Only send new status updates to people that whisper you every 10% of the boss HP. And never send status messages to your current target.
------------------------------------------------------------------------
r58969 | rabbit | 2008-01-20 17:10:47 +0100 (sų., 20 jan. 2008) | 1 line

SimpleBossWhisperer: Shorten the prefix to just "<SBW>".
------------------------------------------------------------------------
r58003 | rabbit | 2008-01-07 13:29:39 +0100 (ma., 07 jan. 2008) | 1 line

SimpleBossWhisperer: Don't interfere with GM whispers.
------------------------------------------------------------------------
r56701 | rabbit | 2007-12-07 16:56:16 +0100 (fr., 07 des. 2007) | 1 line

SimpleBossWhisperer: Cleanup and fixes, hopefully it still works.
------------------------------------------------------------------------
r56658 | rabbit | 2007-12-06 20:01:38 +0100 (to., 06 des. 2007) | 1 line

SimpleBossWhisperer: Target changes update the current boss variable.
------------------------------------------------------------------------
r56609 | rabbit | 2007-12-05 11:26:50 +0100 (on., 05 des. 2007) | 1 line

SimpleBossWhisperer: Remove unused function.
------------------------------------------------------------------------
r56606 | rabbit | 2007-12-05 10:46:34 +0100 (on., 05 des. 2007) | 1 line

SimpleBossWhisperer: Revision 46882 of BossWhisperer, before Wiebbe made it into a fubar plugin and raped the whole thing.
------------------------------------------------------------------------
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
r42
2kB
Rabbit
04-15-09 07:14 AM
r39
2kB
Rabbit
10-15-08 01:40 AM


Post A Reply Comment Options
Unread 04-06-09, 02:43 PM  
Polargion
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Played around with the lua and changed two lines to fix it, I'll post them below.

Haven't been able to fully test it but on Thaddius I asked a friend who whispered me and the % was correct.

Basically the problem was in 3.0 Blizzard changed the UnitHealth function to return the full health of the mob instead of the percentage, so you need to do a small sum with the UnitHealthMax function to create the percentage.

Find "local function updateBossTarget()" and replace the code inside it with the following (including that line above)

Code:
local function updateBossTarget()
	local target = scan()
	if not target then return end
	if not boss then
		frame:RegisterEvent("UNIT_HEALTH")
	end
	boss = UnitName(target)
	bossHp = (UnitHealth(target) / UnitHealthMax(target)) * 100
end
Then find "frame:SetScript("OnEvent", function(self, event, msg)" and replace that and its contents with the following...

Code:
frame:SetScript("OnEvent", function(self, event, msg)
	if event == "PLAYER_REGEN_DISABLED" then
		local _, t = IsInInstance()
		if t ~= "raid" then return end
		self:RegisterEvent("PLAYER_TARGET_CHANGED")
		self:SetScript("OnUpdate", nil)
		totalElapsed = 0
		combatStart = GetTime()
		updateBossTarget()
	elseif event == "PLAYER_TARGET_CHANGED" then
		updateBossTarget()
	elseif event == "PLAYER_REGEN_ENABLED" then
		if combatStart then
			self:SetScript("OnUpdate", onUpdate)
		end
	elseif event == "UNIT_HEALTH" and msg and UnitName(msg) == boss then
		bossHp = (UnitHealth(msg) / UnitHealthMax(msg)) * 100
		-- Allow new status whispers every 10%
		if bossHp % 10 == 0 then
			for k in pairs(whisperers) do
				whisperers[k] = 1
			end
		end
	end
end)
Last edited by Polargion : 04-06-09 at 02:47 PM.
Polargion is offline Report comment to moderator  
Reply With Quote
Unread 02-04-09, 01:57 PM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 268
File comments: 250
Uploads: 5
Originally posted by Internet
Seems like the % boss health number this mod is whispering people is actually the boss's current health value instead of percent.
Yeah, having the same issue, checked on thaddius today, but it's not even the real hp, thaddius was at like 90% and the whisper was 16799%
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
Caellian is offline Report comment to moderator  
Reply With Quote
Unread 10-27-08, 01:06 AM  
Internet
A Kobold Labourer
 
Internet's Avatar

Forum posts: 0
File comments: 7
Uploads: 0
Seems like the % boss health number this mod is whispering people is actually the boss's current health value instead of percent.
Internet is offline Report comment to moderator  
Reply With Quote
Unread 10-20-08, 10:04 PM  
Internet
A Kobold Labourer
 
Internet's Avatar

Forum posts: 0
File comments: 7
Uploads: 0
Im having problems with this mod giving ridiculous health % reports to people, telling them for example Gurtogg Bloodboil is currently at 3839983% hp, and if they whisper me again when the boss has lost some health they'll get another inflated # thats lower, like 3352776%. Any idea what could be causing this to occur?
Internet is offline Report comment to moderator  
Reply With Quote
Unread 07-30-08, 01:07 AM  
Rabbit
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 45
Uploads: 21
Originally posted by Jzar
I second the cmd line option to give regular updates when requested. Also, when reporting back to a whisperer that combat is finished, can we report victory / failure, and how many were still alive?
Like I said in my last post, you can whisper "status" to force a status update whisper?

I'll see if I can add victory/failure reports to the combat finished whisper, but don't hold your breath.
Rabbit is offline Report comment to moderator  
Reply With Quote
Unread 07-29-08, 07:33 PM  
Jzar
A Chromatic Dragonspawn
 
Jzar's Avatar
AddOn Author - Click to view AddOns

Forum posts: 157
File comments: 299
Uploads: 5
I second the cmd line option to give regular updates when requested. Also, when reporting back to a whisperer that combat is finished, can we report victory / failure, and how many were still alive?
Jzar is offline Report comment to moderator  
Reply With Quote
Unread 05-09-08, 04:15 PM  
Rabbit
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 45
Uploads: 21
"status" is already supported
Rabbit is offline Report comment to moderator  
Reply With Quote
Unread 05-09-08, 03:59 PM  
Voxtrot
A Deviate Faerie Dragon

Forum posts: 14
File comments: 4
Uploads: 0
Awesome idea. Finally able to switch back to BigWigs, really only used DBM for that feature. Any chance of adding in a "status" type command as well so that anyone (maybe someone in G8 outside instance) or just anyone in general can get continued updates on the fight via a command line?
Voxtrot is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.