Download
(927 b)
Download
Updated: 06-20-10 09:39 PM
Pictures
File Info
Updated:06-20-10 09:39 PM
Created:05-19-10 10:56 PM
Downloads:2,320
Favorites:1
MD5:

Rebirth Announce

Version: 1.01
by: hokiecmo [More]

Announces in a raid warning every time someone casts Rebirth, and who it was cast on. It also sends a whisper to the person to take the res.

Made mostly to avoid multiple people ressing the same person.

Added in to announce in raid if you don't have an assist or are raid lead.
Optional Files (0)


Post A Reply Comment Options
Unread 05-21-10, 02:01 AM  
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1240
File comments: 226
Uploads: 21
Originally posted by hokiecmo
It's a nice addition, thanks. Yeah, addons are really the first thing I've tried my hand at writing and I haven't gone through any addon communication or learned how to do so just yet. Thanks =)
If you like the changes, then keep them, and update Rebirth Announce. You are very welcome! I did dry-code the addition, so if there are bugs, I am sorry. I took the code from LibResComm-1.0, of which you don't require the entirety for your addon, and adjusted accordingly.

Ultimately, I am willing to help anyone who writes some kind of res addon, as making as many of them compatible is good for users. For my part, I had a lot of help with SmartRes2; I did not write it in a vacuum.
Report comment to moderator  
Reply With Quote
Unread 05-20-10, 11:30 AM  
hokiecmo
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 8
Uploads: 4
It's a nice addition, thanks. Yeah, addons are really the first thing I've tried my hand at writing and I haven't gone through any addon communication or learned how to do so just yet. Thanks =)
Report comment to moderator  
Reply With Quote
Unread 05-20-10, 02:31 AM  
myrroddin
A Pyroguard Emberseer
 
myrroddin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1240
File comments: 226
Uploads: 21
slight improvement

What I did is take your code and added a comm send through the CTRA channel, making your addon compatible with SmartRes2 and other res monitors, again, to reduce duplicate casts.

http://pastey.net/136665

In this case, it makes a res bar appear in SR2. I didn't see the point in adding code to listen to casts in your addon, as it doesn't display things like bars. To make Rebirth Announce far less spammy, I check that only the player sends the comm, and not any time the addon detects a cast.

Also, since you used the variables spellName and myName, I renamed the first instance to Rebirth and compared it within your CLEU code rather than the string "Rebirth" as you had it. More efficient, and won't break on non enUS locales. I used myName as the comm check against sourceName.

Hope you like the suggestions, as they were minor, but important.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: