WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   Report on instance or raid or party chat when someone dispell or purge a target (https://www.wowinterface.com/forums/showthread.php?t=59017)

Comonier 01-08-22 11:32 AM

Report on instance or raid or party chat when someone dispell or purge a target
 
Can you recommend or create something like that ?

I need a plugin that reports in the chosen chat whenever any player in the group uses a skill to remove a buff or debuff from a target

[dispells] on players:

Example in case one player removes a debuff from another player

Code:

%player% removed %spell% from %target% using %spell%
[purges] player or mob or boss

Example in case a player removes a buff from a player or mob or boss

Code:

%player% removed %spell% from %target% using %spell%

Kanegasi 01-08-22 02:09 PM

Here's a basic layout of something that prints dispels and steals to your chatframe only.

If you're not familiar with code, you can use https://addon.bool.no to make this an addon.

Lua Code:
  1. local f=CreateFrame("frame")
  2.  
  3. function f.COMBAT_LOG_EVENT_UNFILTERED(_,event,_,_,casterName,_,_,_,targetName,_,_,usedSpellID,usedSpellName,_,affectedAuraID,affectedAuraName)
  4.     if event=="SPELL_DISPEL" then
  5.         print(casterName.." dispelled "..targetName.."'s "..affectedAuraName.." using "..usedSpellName)
  6.     elseif event=="SPELL_STOLEN" then
  7.         print(casterName.." stole "..targetName.."'s "..affectedAuraName.." using "..usedSpellName)
  8.     end
  9. end
  10.  
  11. f:SetScript("OnEvent",function(self,event,...)
  12.     if event=="COMBAT_LOG_EVENT_UNFILTERED" then
  13.         self[event](CombatLogGetCurrentEventInfo())
  14.     else
  15.         self[event](...)
  16.     end
  17. end)
  18.  
  19. f:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")


All times are GMT -6. The time now is 05:43 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI