View Single Post
12/05/14, 04:14 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Messages are based on the ID of the sound sent to the UI, maybe :

Lua Code:
  1. SOUNDS.ABILITY_TARGET_IMMUNE = SOUNDS.NONE

Server will send SOUNDS.ABILITY_TARGET_IMMUNE code, but because in UI the value isn't the same, it won't be displayed..
PS : It will also won't play the sound

If you want sound and not message, perhaps :

Lua Code:
  1. function ZO_RecentMessages:ShouldDisplayMessage(message)
  2.     self:Update(GetFrameTimeMilliseconds())
  3.  
  4.     if(message == SOUNDS.ABILITY_NOT_ENOUGH_STAMINA or message == SOUNDS.ABILITY_NOT_ENOUGH_MAGICKA or
  5.         message == SOUNDS.ABILITY_NOT_ENOUGH_ULTIMATE or message == SOUNDS.ITEM_ON_COOLDOWN or
  6.         message == SOUNDS.ABILITY_WEAPON_SWAP_FAIL or message == SOUNDS.ABILITY_NOT_READY or
  7.         message == SOUNDS.ABILITY_TARGET_OUT_OF_LOS or message == SOUNDS.ABILITY_TARGET_OUT_OF_RANGE or
  8.         message == SOUNDS.ABILITY_CASTER_SILENCED or -- message == SOUNDS.ABILITY_TARGET_IMMUNE or
  9.         message == SOUNDS.ABILITY_CASTER_STUNNED or message == SOUNDS.ABILITY_CASTER_BUSY or
  10.         message == SOUNDS.ABILITY_TARGET_BAD_TARGET or message == SOUNDS.ABILITY_TARGET_DEAD or
  11.         message == SOUNDS.ABILITY_CASTER_DEAD or message == SOUNDS.ABILITY_NOT_ENOUGH_HEALTH or
  12.         message == SOUNDS.ABILITY_FAILED or message == SOUNDS.ABILITY_FAILED_IN_COMBAT or
  13.         message == SOUNDS.ABILITY_FAILED_REQUIREMENTS or message == SOUNDS.ABILITY_CASTER_FEARED or
  14.         message == SOUNDS.ABILITY_CASTER_DISORIENTED or message == SOUNDS.ABILITY_TARGET_TOO_CLOSE or
  15.         message == SOUNDS.ABILITY_WRONG_WEAPON or message == SOUNDS.ABILITY_TARGET_NOT_PVP_FLAGGED or
  16.         message == SOUNDS.ABILITY_CASTER_PACIFIED or message == SOUNDS.ABILITY_CASTER_LEVITATED) then
  17.         return true
  18.     end
  19.    
  20.     if message == SOUNDS.ABILITY_TARGET_IMMUNE then
  21.         return false
  22.     end
  23.  
  24.     if(self:IsRecent(message)) then
  25.         return false
  26.     end
  27.  
  28.     self:AddRecent(message)
  29.     return true
  30. end

But it's a dirty one! Untested, not at home, let's try?
  Reply With Quote