Go to Page... |
Updated: | 09-22-13 08:00 PM |
Created: | 11-04-10 02:55 PM |
Downloads: | 4,485 |
Favorites: | 16 |
MD5: |
WhisperNotify
WhisperNotify displays Whispers sent to you in the middle of the screen with a fadeout, ala combat style, message and an optional audio alert.
I tend to overlook Whispers if I'm not specifically watching my chat box, especially Whispers from NPCs during quests. Hence, this little addon. The messages still show up in your chat box, they just also appear in the message area of your screen.
It will remember your settings separately for each character and set itself when loaded.
GUI based config with new options in version 1.15!
WhisperNotify slash commands
You can use /wn or /whispernotify
Comment Options |
11-08-10, 05:39 PM | ||
|
Interesting. It's actually a basic MessageFrame, not a ScrollingMessageFrame. The definition you found for the MessageFrame is not the same as the one I used though. The definition I worked from was from wowwiki/wowpedia and is as follows:
Code:
MessageFrame:AddMessage("text", red, green, blue, messageId, holdTime); I did some tinkering and both the time before fade and the fade time will be configurable in the next release, with a default of 5 and 2, respectively, for a total of the original design plan of 7 seconds. As for the frame size, the size I picked is meant to work with both older 4:3 screens and newer wide-screen monitors. If you've got a widescreen and want it wider, that is indeed an easy mod in the XML file. Still working on moving the frame with slash commands. (Although, at the rate I'm adding settings, I think I need to look into how to do a GUI based config!) -A
|
|
|
help137 |
View Public Profile |
Send a private message to help137 |
Find More Posts by help137 |
Add help137 to Your Buddy List |
bossmansmith |
View Public Profile |
Send a private message to bossmansmith |
Find More Posts by bossmansmith |
Add bossmansmith to Your Buddy List |
help137 |
View Public Profile |
Send a private message to help137 |
Find More Posts by help137 |
Add help137 to Your Buddy List |
11-09-10, 10:26 AM | |
A Murloc Raider
Forum posts: 4
File comments: 73
Uploads: 0
|
You are a great author, responsive and helpful.
Keep up the great work. |
|
bossmansmith |
View Public Profile |
Send a private message to bossmansmith |
Find More Posts by bossmansmith |
Add bossmansmith to Your Buddy List |
11-09-10, 06:49 PM | |
A Murloc Raider
Forum posts: 4
File comments: 73
Uploads: 0
|
New options are great.
HOWEVER, the test message will display but no whispers are displaying now. Tried to trouble shot but I am not that good with .lua. NO ERRORS thrown out. EDIT: tracked it down to the arguement in this line if WhisperNotify_State == 'ON' and (WhisperNotify_Combat ~= 'Y' and UnitAffectingCombat("player") ~= true) then If I deleted everything after 'ON' works fine, so it is in the combat checking part
Last edited by bossmansmith : 11-09-10 at 11:32 PM.
|
|
bossmansmith |
View Public Profile |
Send a private message to bossmansmith |
Find More Posts by bossmansmith |
Add bossmansmith to Your Buddy List |
11-10-10, 07:12 AM | ||
A Kobold Labourer
Forum posts: 0
File comments: 2
Uploads: 0
|
I delete the follow several parts and test it with my Guild Mates. Now it works fine for me. if(event == "CHAT_MSG_WHISPER" or event == "CHAT_MSG_MONSTER_WHISPER") then if WhisperNotify_State == 'ON' and (WhisperNotify_Combat ~= 'Y' and UnitAffectingCombat("player") ~= true) then if WhisperNotify_Silent == 'N' then PlaySound("LEVELUP"); end --if silent if WhisperNotify_Style == 'D' then WhisperNotifyFrame:AddMessage(arg2, 1, 0.5, 1); WhisperNotifyFrame:AddMessage(arg1, 1, 0.5, 1); else WhisperNotifyFrame:AddMessage(arg2..': '..arg1, 1, 0.5, 1); end --if style end --if state end --if event |
|
|
Salvadore1981 |
View Public Profile |
Send a private message to Salvadore1981 |
Find More Posts by Salvadore1981 |
Add Salvadore1981 to Your Buddy List |
11-10-10, 09:04 AM | ||
|
Hmm.. Booleans don't seem to be working as per the LUA specification in Blizzard's implementation. I've posted an update with the combat suppress functionality removed until I can figure out what's going on.
-A
|
|
|
help137 |
View Public Profile |
Send a private message to help137 |
Find More Posts by help137 |
Add help137 to Your Buddy List |
11-10-10, 09:08 AM | ||
|
Sal,
There is a problem with the Boolean logic for the combat suppress function, I've uploaded a quick fix. However, by removing the second event, you've disabled the whispers from NPCs, which was working just fine. -A
|
|
|
help137 |
View Public Profile |
Send a private message to help137 |
Find More Posts by help137 |
Add help137 to Your Buddy List |
11-10-10, 01:22 PM | |
A Murloc Raider
Forum posts: 4
File comments: 73
Uploads: 0
|
This is all a part of a new addon.
What impresses me most is your responsiveness still - keep up the great work. I think I might know how to get combat working again. if status=on then ..if incombat=false then ....post --if on always posting out of combat ..elseif showincombat=yes then ....post --if on and in combat and showincombat then post ..end end It means you have to use the posting code twice but i think the logic is sound doing it this way |
|
bossmansmith |
View Public Profile |
Send a private message to bossmansmith |
Find More Posts by bossmansmith |
Add bossmansmith to Your Buddy List |
11-10-10, 03:01 PM | ||
|
I believe I've got it working again in the version I'm working on now. Feel like playing beta tester? I was thinking of putting a copy of the one with a GUI config (and the combat fix) up in the beta section of the site.
-A
|
|
|
help137 |
View Public Profile |
Send a private message to help137 |
Find More Posts by help137 |
Add help137 to Your Buddy List |
11-10-10, 04:01 PM | |
A Murloc Raider
Forum posts: 4
File comments: 73
Uploads: 0
|
sure I can beta test. My knowledge of .lua is limited I tend to learn what I need when I need.
|
|
bossmansmith |
View Public Profile |
Send a private message to bossmansmith |
Find More Posts by bossmansmith |
Add bossmansmith to Your Buddy List |
11-11-10, 08:34 PM | |
A Black Drake
Forum posts: 84
File comments: 28
Uploads: 0
|
I've been noodling a bit with this as well - trying to use it as a general notification for my 77 year old father, who just started playing and has trouble seeing when someone speaks to him in chat.
I'm trying to: a) Change the notification color to the channel color b) Change the font overall (Skurri is too hard for him to read) c) Change the notification sound (or turn it off and use ChatSounds) This is exactly what I'm looking for. But I need to expand it a bit so that if he's in party, guild or whisper that I can grab his attention. Thanks for adding the debug option - helps me look for things a lot more easily. Love the mod. [edit] Would also like to be able to change when the sound is played so that it doesn't constantly spam the sound. So that for 30 seconds after the last sound it doesn't play, renewed by every chat message. Like this: 1st message: sound (1 sec) 2nd message: no sound (10 secs) renews 30 second timer. 3rd message: (35 seconds after 2nd) sound I'd also like to turn sound off for outgoing messages.
Last edited by Astrocanis : 11-11-10 at 09:28 PM.
|
|
Astrocanis |
View Public Profile |
Send a private message to Astrocanis |
Find More Posts by Astrocanis |
Add Astrocanis to Your Buddy List |
11-12-10, 11:25 AM | ||
|
Well, the new version that I'm testing right now has the ability to change the font, color and size, but as it's still only doing whispers, there's no code to change it for different events. All of the new changes are done through a GUI config in the built in blizzard interface - addons config screens. Changing it on the fly for other chat types (and adding those chat types) should not be too hard, but it's beyond the scope of what this addon is supposed to do.
If you want to do a custom addon for your father, I can probably help you out with it. If all the colors, fonts, etc stay hard coded (i.e. The GUI config is not required) it probably wouldn't be too hard to do. Quite frankly, building the GUI config has been far more complex than the actual addon has been! There's not an option to change which sounds it uses yet, but if you're playing with the code already, it would be easy enough for you to change the sound, it's a single line of code referencing a blizzard sound "constant". Also, regarding the sound, it should not be playing for outgoing whispers, the event code only triggers when you have an incoming whisper. Or, at least that's what it's supposed to do. I haven't heard it trigger for an outgoing whisper on my system. [EDIT]: I checked and Whispers you send come in on a differently named event, so unless you added the CHAT_MSG_WHISPER_INFORM event to the code, I don't believe there's any way it could be playing the sound on an outgoing whisper. BTW: If you tell me what channels you're interested in, I can look up the trigger events for you. The timer on the sound is a bit more complex, but I think I've seen some code to do something similar in another addon I use, I'll see if I can find it. I don't tend to receive large amounts of whispers in short sequence, so I hadn't really thought about it. There is already a sound on/off toggle, so you can turn it off entirely, even in the current version and use ChatSounds, it should work fine that way. I've put a beta up here for anyone who wants to try out the new config GUI. -A
Last edited by help137 : 11-12-10 at 01:36 PM.
|
|
|
help137 |
View Public Profile |
Send a private message to help137 |
Find More Posts by help137 |
Add help137 to Your Buddy List |
11-12-10, 08:34 PM | |
A Black Drake
Forum posts: 84
File comments: 28
Uploads: 0
|
Thanks for the quick response. What he needs is (actually, what I need - he's hard to get hold of in game) is a visible (and audible) prompt when someone speaks to him in guild, party, whisper and battlenet.
I've gotten the guild, party to work, but the CHAT_MSG_BN_WHISPER event is not firing for some reason. I'm not trying to steal your mod, and have no intention of actually distributing the changed code except to my father. I do appreciate your making this mod and then talking to me about it
Last edited by Astrocanis : 11-12-10 at 08:41 PM.
|
|
Astrocanis |
View Public Profile |
Send a private message to Astrocanis |
Find More Posts by Astrocanis |
Add Astrocanis to Your Buddy List |
11-12-10, 09:57 PM | ||
|
I double checked and that should be the right event name for the battlenet whispers. I refuse to participate in Blizz's ReadID system, so I can't test it directly, but if you want to pack up what you've come up with and attach it to me in an email to the address I sent you via a PM I can have a look and see if I can figure out what's going on.
-A
|
|
|
help137 |
View Public Profile |
Send a private message to help137 |
Find More Posts by help137 |
Add help137 to Your Buddy List |