Thread Tools Display Modes
12/05/14, 03:13 AM   #1
Carter_DC
 
Carter_DC's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 18
Flying Creatures are immune to snares

hi guys ! just wanted to know if you got any idea as how to get rid of THE ONLY ESO BUILT IN COMBAT TEXT.
The one in the top right corner, that display if creatures are immune to anything and that takes up la lot of space when you're spamming the same attack on the same boss for minutes...

could really use some help with figuring this out.
  Reply With Quote
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
12/05/14, 04:57 AM   #3
Carter_DC
 
Carter_DC's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 18
should have said in the beginning that i'm a freaking noob.
where do i intercept the "message" from ?
  Reply With Quote
12/05/14, 06:36 AM   #4
Carter_DC
 
Carter_DC's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 18
ok, i just found the library where this one is...
but i still dunno what you mean with that. can we override a zo function with an addon ?
  Reply With Quote
12/05/14, 07:14 AM   #5
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
yes, we can override everything that's not private (and local).
the exemple above override an existing function.
  Reply With Quote
12/05/14, 07:38 AM   #6
Carter_DC
 
Carter_DC's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2014
Posts: 18
good to know, thx a lot !
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Flying Creatures are immune to snares


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off