Remove Advertisements

ThatJustHappened: Combat Event Announcement Mod

All things /script related

Moderators: Fridmarr, Worldie, Aergis, _Chloe

Postby dunnark » Mon Jul 28, 2008 8:42 am

Anybody know/remember the buff applied by Commendation of Kael'thas to include in this code?
Image
User avatar
dunnark
 
Posts: 40
Joined: Thu Sep 06, 2007 11:12 pm

Postby JoCald » Mon Jul 28, 2008 9:29 am

dunnark wrote:Anybody know/remember the buff applied by Commendation of Kael'thas to include in this code?


Evasive Maneuvers
JoCald
 
Posts: 2
Joined: Tue Jul 15, 2008 8:29 am

Postby moduspwnens » Mon Jul 28, 2008 5:04 pm

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.
So that's simple. When a taunt resists, it would say:

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.
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.

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

Postby Vestori » Tue Jul 29, 2008 5:36 pm

is there any way to raid warning announce?
Vestori
 
Posts: 72
Joined: Tue Apr 29, 2008 6:05 am

Postby moduspwnens » Tue Jul 29, 2008 5:38 pm

Vestori wrote:is there any way to raid warning announce?


Yep. Mark the channel as "RW".
I rule.
moduspwnens
Moderator
 
Posts: 6211
Joined: Tue Nov 06, 2007 12:28 pm
Location: Shattered Hand

Postby Sarkan-ZdC » Sun Aug 03, 2008 12:30 pm

/tjh rule SPELL_CAST_SUCCESS;;YourName;Righteous Defense;;*source taunted from me.

I get an error (the player is not playing or so)
Sarkan-ZdC
 
Posts: 699
Joined: Tue May 13, 2008 4:00 am

Postby Sarkan-ZdC » Sun Aug 03, 2008 12:37 pm

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

Postby moduspwnens » Sun Aug 03, 2008 1:16 pm

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:
moduspwnens wrote:Announce what about Deaden?
Who gets it as RW


/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

Postby Sarkan-ZdC » Sun Aug 03, 2008 3:12 pm

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:
moduspwnens wrote:Announce what about Deaden?
Who gets it as RW


/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

Postby _Chloe » Sun Aug 03, 2008 4:57 pm

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.
    Enemy is afflicted by Taunt.
    Taunt fades from Enemy.
So that's simple. When a taunt resists, it would say:

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.
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.


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.
User avatar
_Chloe
Moderator
 
Posts: 971
Joined: Fri Dec 07, 2007 6:36 pm
Location: Santa Monica, CA

Postby moduspwnens » Sun Aug 03, 2008 5:06 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

Postby _Chloe » Sun Aug 03, 2008 5:43 pm

Tankadin pulls this from the CLUE
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.
User avatar
_Chloe
Moderator
 
Posts: 971
Joined: Fri Dec 07, 2007 6:36 pm
Location: Santa Monica, CA

Postby moduspwnens » Sun Aug 03, 2008 5:45 pm

Yeah, that should do it then. I'll add it to the list on the front page.
I rule.
moduspwnens
Moderator
 
Posts: 6211
Joined: Tue Nov 06, 2007 12:28 pm
Location: Shattered Hand

Postby _Chloe » Sun Aug 03, 2008 5:48 pm

Took about a week or so to fix the CLUE event for Tankadin for that reason alone.
User avatar
_Chloe
Moderator
 
Posts: 971
Joined: Fri Dec 07, 2007 6:36 pm
Location: Santa Monica, CA

Postby moduspwnens » Sun Aug 03, 2008 5:53 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

PreviousNext

Return to Add-ons, UI, and Macros

Who is online

Users browsing this forum: No registered users and 1 guest

cron

Remove Advertisements

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 380 on Tue Oct 14, 2008 6:28 pm

Users browsing this forum: No registered users and 1 guest
?php } else { ?