ThatJustHappened: Combat Event Announcement Mod
Moderators: Fridmarr, Worldie, Aergis, _Chloe
Krasas wrote:Krasas wrote:Maybe someone else has asked about this I don't know. But does this do taunt resists? If so what would the code look like?
This could be done very easily for warriors and druids, but for Paladins, not as easily. The reason is, for druids and warriors, their taunts would look like this:
- Warrior casts Taunt on Enemy.
Enemy is afflicted by Taunt.
Taunt fades from Enemy.
Warrior fails to cast Taunt due to a resist.
For a Paladin though, our taunt says:
- Paladin casts Righteous Defense on RaidMember.
Mob1 is afflicted by Righteous Defense.
Mob2 is afflicted by Righteous Defense.
Mob3 is afflicted by Righteous Defense.
Sarkan-ZdC wrote:How to Announce the Daeden on EoS P2?
Announce what about Deaden? That it's begun casting? That it landed? Or that it was reflected successfully?
dunnark wrote:Anybody know/remember the buff applied by Commendation of Kael'thas to include in this code?
/tjh rule SPELL_AURA_APPLIED;;PlayerName;Evasive Manuevers;;SAY;8% more dodge!
I rule.
- moduspwnens
- Moderator
- Posts: 6211
- Joined: Tue Nov 06, 2007 12:28 pm
- Location: Shattered Hand
/tjh rule SPELL_CAST_SUCCESS;;YourName;Righteous Defense;;*source taunted from me.
I get an error (the player is not playing or so)
I get an error (the player is not playing or so)
- Sarkan-ZdC
- Posts: 699
- Joined: Tue May 13, 2008 4:00 am
moduspwnens wrote:Krasas wrote:Sarkan-ZdC wrote:How to Announce the Daeden on EoS P2?
Announce what about Deaden? That it's begun casting? That it landed? Or that it was reflected successfully?
Who gets it as RW
If you see: MT is affected by daeden you know: Owl Shit. If it is the Mob you know: DON'T KILL YOURSELF
- Sarkan-ZdC
- Posts: 699
- Joined: Tue May 13, 2008 4:00 am
Sarkan-ZdC wrote:/tjh rule SPELL_CAST_SUCCESS;;YourName;Righteous Defense;;*source taunted from me.
I get an error (the player is not playing or so)
I'll have to test it further, then. I thought it would work.
Sarkan-ZdC wrote:Who gets it as RWmoduspwnens wrote:Announce what about Deaden?
/tjh rule SPELL_CAST_SUCCESS;;;Deaden;raid;*target hit by Deaden.
That should do it. I haven't tested it, though. Let me know how it works out.
I rule.
- moduspwnens
- Moderator
- Posts: 6211
- Joined: Tue Nov 06, 2007 12:28 pm
- Location: Shattered Hand
moduspwnens wrote:Sarkan-ZdC wrote:/tjh rule SPELL_CAST_SUCCESS;;YourName;Righteous Defense;;*source taunted from me.
I get an error (the player is not playing or so)
I'll have to test it further, then. I thought it would work.Sarkan-ZdC wrote:Who gets it as RWmoduspwnens wrote:Announce what about Deaden?
/tjh rule SPELL_CAST_SUCCESS;;;Deaden;raid;*target hit by Deaden.
That should do it. I haven't tested it, though. Let me know how it works out.
I think for the paladin taunt there is a ; to much or so. Have to try, had no time as a tank
- Sarkan-ZdC
- Posts: 699
- Joined: Tue May 13, 2008 4:00 am
moduspwnens wrote:Krasas wrote:Krasas wrote:Maybe someone else has asked about this I don't know. But does this do taunt resists? If so what would the code look like?
This could be done very easily for warriors and druids, but for Paladins, not as easily. The reason is, for druids and warriors, their taunts would look like this:Warrior casts Taunt on Enemy.
So that's simple. When a taunt resists, it would say:
Enemy is afflicted by Taunt.
Taunt fades from Enemy.
Warrior fails to cast Taunt due to a resist.
For a Paladin though, our taunt says:Paladin casts Righteous Defense on RaidMember.
The difference is that there's no single line of the combat log that includes the spell (Righteous Defense), the caster (you), and the fact that it was resisted. You could easily make one that would announce when anybody's Righteous Defense is resisted, but until new functionality is added (as far as I know), there isn't a way for it to announce Paladin taunt resists.
Mob1 is afflicted by Righteous Defense.
Mob2 is afflicted by Righteous Defense.
Mob3 is afflicted by Righteous Defense.
Following this:
/tjh rule EVENT_NAME;SourceName;TargetName;SpellName;Affiliation;Channel;Spam
You get this:
- Code: Select all
/tjh rule SPELL_MISSED;YourName;;Righteous Defense;self;RAID_WARNING;*source resisted/Immune to Righteous Defense.
-

_Chloe - Moderator
- Posts: 948
- Joined: Fri Dec 07, 2007 6:36 pm
Hmm. Well, if that's how a resist shows up in the combat log, then yes. I can't think of a way to test it immediately, but I'll try it out.
I rule.
- moduspwnens
- Moderator
- Posts: 6211
- Joined: Tue Nov 06, 2007 12:28 pm
- Location: Shattered Hand
Tankadin pulls this from the CLUE
and here's the code block:
I use spell IDs to avoid locale issues. The only thing that this mod cant do it seems is return the error message,ie Immune!
- Code: Select all
local timestamp, eventType, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, prefix1, prefix2, prefix3, suffix1, suffix2, suffix3, suffix4, suffix5, suffix6, suffix7, suffix8 = ...;
and here's the code block:
- Code: Select all
--AS Miss
if( eventType == "SPELL_MISSED" and sourceGUID == PlayerGUID and prefix1 == 32700 and Tankadin_Options.taunt == true )then
TankadinEventMessage = TANKADIN_MISS_MESSAGE;
end
--RD Resist
if( eventType == "SPELL_MISSED" and sourceGUID == PlayerGUID and prefix1 == 31790 and Tankadin_Options.taunt == true and suffix1 == "RESIST")then
TankadinEventMessage = TANKADIN_RESIST_MESSAGE;
end
--RD Immune
if( eventType == "SPELL_MISSED" and sourceGUID == PlayerGUID and prefix1 == 31790 and Tankadin_Options.taunt == true and suffix1 == "IMMUNE" and not Tankadin_Options.NoImmune)then
TankadinEventMessage = TANKADIN_IMMUNE_MESSAGE;
end
I use spell IDs to avoid locale issues. The only thing that this mod cant do it seems is return the error message,ie Immune!
Last edited by _Chloe on Sun Aug 03, 2008 5:47 pm, edited 1 time in total.
-

_Chloe - Moderator
- Posts: 948
- Joined: Fri Dec 07, 2007 6:36 pm
_Chloe wrote:/tjh rule SPELL_MISSED;YourName;;Righteous Defense;self;RAID_WARNING;*source resisted/Immune to Righteous Defense.
I did change the *source to *target, since the *source should be you. I think that's right.
I rule.
- moduspwnens
- Moderator
- Posts: 6211
- Joined: Tue Nov 06, 2007 12:28 pm
- Location: Shattered Hand
Return to Add-ons, UI, and Macros
Who is online
Users browsing this forum: Bing [Bot] and 2 guests
