Download
(3Kb)
Download
Updated: 06-23-08 01:12 PM
Pictures
File Info
Updated:06-23-08 01:12 PM
Created:unknown
Downloads:4,409
Favorites:9
MD5:

NinjaYell

Version: r7
by: ganders [More]

NinjaYell is a small addon useful for announcing to your group when key spells are applied, removed or missed (resisted, immune, dodge, etc.).

By default NinjaYell will announce:

  • Sap
  • Blind
  • Fear
  • Psychic Scream
  • Freezing Trap
  • Polymorph
  • Cyclone
  • Failed Taunts
  • Failed Distracts

How do I add my own spells?
NinjaYell does not have any kind of config, which is one of the things that keeps this addon so small. To edit what spells you want NinjaYell to announce, open up core.lua in the NinjaYell folder and follow the directions inside. It should be pretty straightforward.

I've added quite a few comments to the core.lua file (they're the lines with the -- before them) to help explain what's happening and what you need to do to add your own spells & messages.



Questions, comments, bug reports, etc.:

Use the buttons under the DOWNLOAD button or leave a comment.

r7
- Removed use of a metatable
- Rearranged addon structure to allow referencing to NinjaYell's tables in game.
r6
- Added slash command to enable/disable the mod
- Fixed a few bugs and (hopefully) made it more efficient
- Added "Interrupt" messages for spells like Kick and Counterspell. Simply add the spell in like you would any other, but instead of making messages for Applied or Faded use Interrupt

r4
- So I decided to log on to my mage to make sure NinjaYell worked for Polymorph, and lo and behold! NinjaYell didn't work for casting at all! This is what I get for exclusively playing a rogue. Oh well, it should be fixed now, I'd appreciate it if someone else could give me some feedback on it.
- If you don't have any SCT addons AND you're not using Blizzard's FCT, it will use the SAY channel

r3
- ToC Version change
- Added color variable. Change the values in this table to change the color of the messages displayed through SCT

r2
- Resetting Change Log
Optional Files (0)


Post A Reply Comment Options
Unread 04-16-08, 07:34 PM  
khangg
An Aku'mai Servant
AddOn Compiler - Click to view compilations

Forum posts: 35
File comments: 53
Uploads: 1
Now I know this isn't related to the addon but..what's that cooldown monitor you've got there? I've been wondering for like 3 months now :S
Report comment to moderator  
Reply With Quote
Unread 04-16-08, 07:37 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 10
Originally posted by khangg
Now I know this isn't related to the addon but..what's that cooldown monitor you've got there? I've been wondering for like 3 months now :S
Slightly modded version of oCD

http://ixo.no/git/oCD.git/commit/?h=...962e060ca6e17e
Last edited by ganders : 04-16-08 at 07:40 PM.
Report comment to moderator  
Reply With Quote
Unread 04-17-08, 10:02 AM  
Mock
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 83
File comments: 39
Uploads: 3
Imo you should just upload your whole ui
Report comment to moderator  
Reply With Quote
Unread 04-18-08, 01:20 PM  
Xero101
A Kobold Labourer
 
Xero101's Avatar

Forum posts: 0
File comments: 11
Uploads: 0
Very nice addon, but was wondering what map addon that was in the pic also.
Report comment to moderator  
Reply With Quote
Unread 05-12-08, 06:52 PM  
Tretabyte
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Versions

Question: the last version posted here is kinda different from the one posted in wow-curse.com, what version is the lasted updated?
Report comment to moderator  
Reply With Quote
Unread 05-12-08, 07:03 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 10
Re: Versions

Originally posted by Tretabyte
Question: the last version posted here is kinda different from the one posted in wow-curse.com, what version is the lasted updated?
http://code.google.com/p/ninjas-n-things/downloads/list
Report comment to moderator  
Reply With Quote
Unread 05-25-08, 03:36 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Missdirection

I'd like to use this to send a whisper to the person i'm missdirecting to.
That person will most likely be my /focus but i don't really understand how to write that line in the lua as my %t is the mob.

Any idea ?
Report comment to moderator  
Reply With Quote
Unread 05-25-08, 01:12 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 10
Re: Missdirection

Originally posted by Kyron
I'd like to use this to send a whisper to the person i'm missdirecting to.
That person will most likely be my /focus but i don't really understand how to write that line in the lua as my %t is the mob.

Any idea ?
Newest version now has support for whispers.

Using Misdirection as an example:
Code:
-- Use Channel to provide a custom channel to be used, and use Target to provide a WHISPER target (if you choose to use WHISPER as your custom channel)
	["Misdirection"] = {
		Channel = "WHISPER",
		Target = function() return UnitName("focus") end,
		Applied = "Misdirection on YOU!",
		Faded = "",
	},
Channel is the custom channel to use. If you have this there then it will ALWAYS use that channel. The Target variable is the target to send the whisper to. In this case, it uses a function to always return the name of your focus. You could however, also use just a normal string, like "Bob", if you ALWAYS wanted your whisper target to be Bob.

I'll test it out then upload.
Last edited by ganders : 05-25-08 at 01:51 PM.
Report comment to moderator  
Reply With Quote
Unread 05-26-08, 01:27 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
In fact it's a bit more complicated than i though, here's the MD macro

/cast [help][target=focus,help][target=pet,exists]Misdirection

Basically, MD to pet if i have no focus and no friendly target, MD to friendly target if i have it targeted overwriting the focus one, lastly MD to the focus if i have no friendly target selected.

Of course i don't want to whisper my pet but with this line

Target = function() return UnitName("focus") end

It's systematically going to whisper my focus even if i have a friendly target selected if i'm not mistaken.

So, question is, is it possible to change that line so it send the whisper to my friendly target if i have one and to the focus if i have no friendly target but instead a hostile target.
Last edited by Caellian : 05-26-08 at 01:32 AM.
Report comment to moderator  
Reply With Quote
Unread 05-27-08, 05:01 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 10
Originally posted by Kyron
In fact it's a bit more complicated than i though, here's the MD macro

/cast [help][target=focus,help][target=pet,exists]Misdirection

Basically, MD to pet if i have no focus and no friendly target, MD to friendly target if i have it targeted overwriting the focus one, lastly MD to the focus if i have no friendly target selected.

Of course i don't want to whisper my pet but with this line

Target = function() return UnitName("focus") end

It's systematically going to whisper my focus even if i have a friendly target selected if i'm not mistaken.

So, question is, is it possible to change that line so it send the whisper to my friendly target if i have one and to the focus if i have no friendly target but instead a hostile target.
Code:
Target = function() if UnitCanAttack("player", "target") then return UnitName("focus") else return UnitName("target") end end,
This should use your focus' name if you're targeting something hostile, and you're target's name if you're targeting something friendly.
Report comment to moderator  
Reply With Quote
Unread 05-28-08, 07:04 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Works like a charm but as i expected when i saw the line there is an error.

Code:
[2008/05/28 15:02:37-9136-x1]: SendChatMessage(): Whisper message missing target player!:
<in C code>: ?
<in C code>: in function `SendChatMessage'
NinjaYell-1.0\core.lua:154: in function `Announce'
NinjaYell-1.0\core.lua:60: in function <Interface\AddOns\NinjaYell\core.lua:48>

  ---
This happen if ihave no focus and no friendly target, as the default is then to MD to my pet, the addon generate an error as the pet isn't a player and i have no friendly target.
Report comment to moderator  
Reply With Quote
Unread 05-28-08, 04:07 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 10
Originally posted by Kyron
Works like a charm but as i expected when i saw the line there is an error.

Code:
[2008/05/28 15:02:37-9136-x1]: SendChatMessage(): Whisper message missing target player!:
<in C code>: ?
<in C code>: in function `SendChatMessage'
NinjaYell-1.0\core.lua:154: in function `Announce'
NinjaYell-1.0\core.lua:60: in function <Interface\AddOns\NinjaYell\core.lua:48>

  ---
This happen if ihave no focus and no friendly target, as the default is then to MD to my pet, the addon generate an error as the pet isn't a player and i have no friendly target.
Right, my mistake. Try this:
Code:
function() if UnitCanAttack("player", "target") then if UnitExists("focus") then return UnitName("focus") else return UnitName("pet") end else return UnitName("target") end,
This will whisper your focus if you're targeting something hostile. If you don't have a focus, it will whisper your pet. If you're targeting something friendly then it will whisper your target.

I hope that's what you needed.
Report comment to moderator  
Reply With Quote
Unread 05-28-08, 07:46 PM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
Excellent gonna give it a try right now, though, do you really think it's gonna whisper my pet ?

Edit: i recieved this error today, normal MD to focus
Code:
[2008/05/29 21:22:52-9169-x2]: SendChatMessage(): Whisper message missing target player!:
<in C code>: ?
<in C code>: in function `SendChatMessage'
NinjaYell-r3\core.lua:159: in function `Announce'
NinjaYell-r3\core.lua:65: in function <Interface\AddOns\NinjaYell\core.lua:53>
Also came up when having my MT as focus, Illidan (not in combat yet) in target
Last edited by Caellian : 05-29-08 at 04:02 PM.
Report comment to moderator  
Reply With Quote
Unread 05-31-08, 07:56 PM  
ganders
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 131
File comments: 59
Uploads: 10
Originally posted by Kyron
Excellent gonna give it a try right now, though, do you really think it's gonna whisper my pet ?

Edit: i recieved this error today, normal MD to focus
Code:
[2008/05/29 21:22:52-9169-x2]: SendChatMessage(): Whisper message missing target player!:
<in C code>: ?
<in C code>: in function `SendChatMessage'
NinjaYell-r3\core.lua:159: in function `Announce'
NinjaYell-r3\core.lua:65: in function <Interface\AddOns\NinjaYell\core.lua:53>
Also came up when having my MT as focus, Illidan (not in combat yet) in target
Try changing
Code:
UnitCanAttack("player", "target")
to
Code:
UnitCanAttack("target", "player")
Report comment to moderator  
Reply With Quote
Unread 06-08-08, 09:01 AM  
Caellian
A Frostmaul Preserver
 
Caellian's Avatar

Forum posts: 281
File comments: 252
Uploads: 5
With the latest release, the misdirection line u gave me below doesn't work anymore, no errors, just no whisper to the person i'm misdirecting to.

My MD line
Code:
Target = function() if UnitCanAttack("player", "target") then if UnitExists("focus") then return UnitName("focus") else return UnitName("pet") end else return UnitName("target") end end,
Error i get when having no target so the MD is sent to focus

Code:
[2008/06/08 17:18:02-10048-x1]: SendChatMessage(): Whisper message missing target player!:
<in C code>: ?
<in C code>: in function `SendChatMessage'
NinjaYell\core.lua:192: in function `Announce'
NinjaYell\core.lua:84: in function <Interface\AddOns\NinjaYell\core.lua:65>

  ---
Last edited by Caellian : 06-08-08 at 09:18 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: