Go to Page... |
Compatibility: | Necrom (9.0.0) |
Updated: | 06/23/23 05:22 PM |
Created: | 11/09/20 03:08 AM |
Monthly downloads: | 3,422 |
Total downloads: | 270,102 |
Favorites: | 183 |
MD5: | |
Categories: | Group, Guild & Friends, Raid Mods |
function OSI.SetMechanicIconForUnit( displayName, -- display name of the affected player texture, -- icon texture path size, -- optional icon size color, -- optional icon color {r,g,b} offset, -- optional icon offset in meters callback -- optional callback function ) function OSI.RemoveMechanicIconForUnit( displayName -- display name of the affected player )
local ADDON_NAME = "MyAddonName" local MY_TEXTURE = "myaddonname/myiconpath/myicontexture.dds" local MECHANIC_ID = 12345 EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, function( _, changeType, _, _, unitTag ) -- check if OdySupportIcons is active and the affected unit is a player if OSI and OSI.SetMechanicIconForUnit and IsUnitPlayer( unitTag ) then -- retrieve the displayname of the affected player local displayName = GetUnitDisplayName( unitTag ) -- if the player gained the mechanic effect... if changeType == EFFECT_RESULT_GAINED then -- assign your icon to the affected player and make it bigger than other icons OSI.SetMechanicIconForUnit( displayName, -- display name of the affected player MY_TEXTURE, -- icon texture path OSI.GetIconSize() * 1.5, -- optional icon size { 1, 1, 1 }, -- optional icon color {r,g,b} 0, -- optional icon offset in meters function( data ) -- optional callback function -- simple bounce animation along the y-axis data.offset = 0.5 + 0.5 * math.sin( GetGameTimeMilliseconds() / 1000 * 2 ) -- the data object passed to the callback function contains: -- displayName, unitTag, texture, size, color, offset end ) -- if the player lost the mechanic effect... elseif changeType == EFFECT_RESULT_FADED then -- remove your icon from the formerly affected player OSI.RemoveMechanicIconForUnit( displayName ) end end end ) EVENT_MANAGER:AddFilterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, REGISTER_FILTER_ABILITY_ID, MECHANIC_ID ) EVENT_MANAGER:AddFilterForEvent( ADDON_NAME, EVENT_EFFECT_CHANGED, REGISTER_FILTER_UNIT_TAG_PREFIX, "group" ) end )
function OSI.CreatePositionIcon( x, y, z, -- world coordinates texture, -- icon texture path size, -- optional icon size color, -- optional icon color {r,g,b} offset, -- optional icon offset in meters callback -- optional callback function ) function OSI.DiscardPositionIcon( icon -- position icon object )
/script OSI.PrintMyPosition()
local ADDON_NAME = "MyAddonName" local MY_TEXTURE = "myaddonname/myiconpath/myicontexture.dds" local MY_ICON = nil EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_BOSSES_CHANGED, function() -- check is OdySupportIcons is active and supports world position icons if OSI and OSI.CreatePositionIcon then -- retrieve name of boss local boss = GetUnitName( "boss1" ) -- if we are in Sharpfangs (Deshaan) lair and... if boss and boss == "Sharpfang" then -- if no icon has been created yet... if not MY_ICON then -- create an icon 2.5m above the stone formation and make it bigger than other icons MY_ICON = OSI.CreatePositionIcon( 274367, 11022, 213871, -- world coordinates MY_TEXTURE, -- icon texture path OSI.GetIconSize() * 1.5, -- optional icon size { 1, 1, 1 }, -- optional icon color {r,g,b} 2.5, -- optional icon offset in meters function( data ) -- optional callback function -- simple bounce animation along the y-axis data.offset = 2.5 + math.sin( GetGameTimeMilliseconds() / 1000 * 2 ) -- the data object passed to the callback function contains: -- texture, size, color, offset end ) end -- if we are somewhere else or Sharpfang is not around and... else -- if an icon has been created before... if MY_ICON then -- discard the icon OSI.DiscardPositionIcon( MY_ICON ) MY_ICON = nil end end end end ) end )
function OSI.AddCustomIconPack( icons )
local ADDON_NAME = "MyAddonName" local MY_TEXTURES = { "myaddonname/myiconpath/myicontexture-1.dds", "myaddonname/myiconpath/myicontexture-2.dds", "myaddonname/myiconpath/myicontexture-3.dds", } EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) -- check if OdySupportIcons is active and supports custom icon packs if OSI and OSI.AddCustomIconPack then -- add your list of icons OSI.AddCustomIconPack( MY_TEXTURES ) end end )
function OSI.AddUniqueIconPack( icons )
local ADDON_NAME = "MyAddonName" local MY_TEXTURES = { ["@SomePlayer"] = "myaddonname/myiconpath/myiconforsomeplayer.dds", ["@AnotherPlayer"] = "myaddonname/myiconpath/myiconforanotherplayer.dds", } EVENT_MANAGER:RegisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED, function( _, addonName ) if addonName ~= ADDON_NAME then return end EVENT_MANAGER:UnregisterForEvent( ADDON_NAME, EVENT_ADD_ON_LOADED ) -- check if OdySupportIcons is active and supports unique icon packs if OSI and OSI.AddUniqueIconPack then -- add your list of icons OSI.AddUniqueIconPack( MY_TEXTURES ) end end )
File Name |
Version |
Size |
Uploader |
Date |
1.8.0 |
247kB |
ExoY |
02/05/23 03:48 AM |
|
1.7.0 |
247kB |
ExoY |
06/15/22 05:34 PM |
|
1.6.5 |
248kB |
ExoY |
07/13/21 12:45 PM |
|
1.6.4 |
248kB |
Odylon |
07/05/21 12:33 PM |
|
1.6.3 |
247kB |
Odylon |
06/29/21 12:19 PM |
|
1.6.2 |
246kB |
Odylon |
06/05/21 11:09 AM |
|
1.6.1 |
245kB |
Odylon |
05/22/21 09:51 AM |
|
1.6.0 |
244kB |
Odylon |
05/13/21 10:20 AM |
|
1.5.6 |
336kB |
Odylon |
04/10/21 01:02 AM |
|
1.5.5 |
312kB |
Odylon |
03/18/21 03:36 AM |
|
1.5.4 |
262kB |
Odylon |
01/03/21 04:06 AM |
|
1.5.3 |
245kB |
Odylon |
11/12/20 01:45 PM |
|
1.5.2 |
245kB |
Odylon |
11/09/20 11:34 AM |
|
1.5.1 |
245kB |
Odylon |
11/09/20 10:55 AM |
|
1.5.0 |
245kB |
11/09/20 03:08 AM |
Comment Options |
def venom |
View Public Profile |
Send a private message to def venom |
Send email to def venom |
Find More Posts by def venom |
Add def venom to Your Buddy List |
06/12/22, 07:14 PM | |||||
Forum posts: 3
File comments: 73
Uploads: 0
|
Re: Re: Re: Re: High Isle Update?
Thank you so much it's working well, and it seems it shows up on the optional files too so everyone can get it Cheers mate
Last edited by vazelle : 06/12/22 at 07:25 PM.
|
||||
|
vazelle |
View Public Profile |
Send a private message to vazelle |
Send email to vazelle |
Find More Posts by vazelle |
Add vazelle to Your Buddy List |
vazelle |
View Public Profile |
Send a private message to vazelle |
Send email to vazelle |
Find More Posts by vazelle |
Add vazelle to Your Buddy List |
06/09/22, 07:44 AM | |
Forum posts: 0
File comments: 39
Uploads: 0
|
High Isle Update?
Any chance of getting Ember and Isobel added to this great addon? I was going to try and do it myself, but have no idea how to get their system id's.
|
|
zathmmo |
View Public Profile |
Send a private message to zathmmo |
Send email to zathmmo |
Find More Posts by zathmmo |
Add zathmmo to Your Buddy List |
06/03/22, 06:32 PM | ||
Forum posts: 0
File comments: 9
Uploads: 0
|
|
|
|
filipv |
View Public Profile |
Send a private message to filipv |
Send email to filipv |
Find More Posts by filipv |
Add filipv to Your Buddy List |
05/25/22, 03:22 AM | |
|
Due to the "chat window" changes you make, it causes the chat window to go blank when the Crown Store UI is up. This can be frustrating, as I deal with crown selling and buying fairly often.
I use several other chat related addons, and this one is the only one to cause this issue. Confirmed by testing with only this addon enabled, and testing with having only this addon disabled. Can you fix this, please? Or release a "light" version of this addon with only things from "general settings", "group icons", and "ally icons"? Something like that? |
|
NeuroticPixels |
View Public Profile |
Send a private message to NeuroticPixels |
Send email to NeuroticPixels |
Visit NeuroticPixels's homepage! |
Find More Posts by NeuroticPixels |
Add NeuroticPixels to Your Buddy List |
05/16/22, 02:28 PM | |
Forum posts: 0
File comments: 5
Uploads: 0
|
Hi,
I'm absolutely loving this add-on. What would be the possibility of having the ability for dead "supports" show up differently to standard dead people? Specifically my thought on this is for healers and tanks to retain their symbol but have it change colour. OR have a different icon for these roles when dead. So that in a trial with multiple deaths - we know how to prioritise when you suck with names. Thanks again! Chiya. |
|
Chiyachan |
View Public Profile |
Send a private message to Chiyachan |
Send email to Chiyachan |
Visit Chiyachan's homepage! |
Find More Posts by Chiyachan |
Add Chiyachan to Your Buddy List |
03/11/22, 10:03 PM | |
Forum posts: 0
File comments: 2
Uploads: 0
|
Is there a command or way to get a icon over your own head? in maw its great to see when people get color change, but DPS doesn't notice when their own color changes.
|
|
heroofnone |
View Public Profile |
Send a private message to heroofnone |
Send email to heroofnone |
Visit heroofnone's homepage! |
Find More Posts by heroofnone |
Add heroofnone to Your Buddy List |
03/04/22, 05:08 AM | ||
Forum posts: 3
File comments: 59
Uploads: 0
|
Re: Hodor sharing = Nill error
|
|
|
Honestaly |
View Public Profile |
Send a private message to Honestaly |
Send email to Honestaly |
Visit Honestaly's homepage! |
Find More Posts by Honestaly |
Add Honestaly to Your Buddy List |
03/03/22, 05:27 AM | |
Forum posts: 3
File comments: 59
Uploads: 0
|
Hodor sharing = Nill error
Just recently got a hodor update. Seems sharing changed somehow.
Code:
user:/AddOns/OdySupportIcons/OdySupportIcons.lua:640: attempt to index a nil value stack traceback: user:/AddOns/OdySupportIcons/OdySupportIcons.lua:640: in function 'OSI.OnActivated' ODY was giving a "attempt to index a nill value" error until I commented out these lines around line 640 of OdySupportIcons.lua Code:
-- register callback for map pings --if HodorReflexes then -- HodorReflexes.modules.share.cm:RegisterCallback( 'CustomData', OSI.CallbackForRaidIcon ) --end
Last edited by Honestaly : 03/03/22 at 05:58 AM.
|
|
Honestaly |
View Public Profile |
Send a private message to Honestaly |
Send email to Honestaly |
Visit Honestaly's homepage! |
Find More Posts by Honestaly |
Add Honestaly to Your Buddy List |
02/28/22, 02:59 AM | |
Forum posts: 0
File comments: 6
Uploads: 0
|
Icons
Hey, I was wondering if it'd be doable to add the numbered pins in that subdirectory of icons, to the collection of superhero custom icons. Setting red 1, 2, 3, 4, and blue 1, 2, 3, 4 for r1, m1, r2, m2, etc in kynes aegis would be so awesome. Being able to label 1, 2, 3, 4, 5, 6, 7, 8 for vAS lanes would also be insane as a feature.
Last edited by spacefracking : 02/28/22 at 03:33 PM.
|
|
spacefracking |
View Public Profile |
Send a private message to spacefracking |
Send email to spacefracking |
Visit spacefracking's homepage! |
Find More Posts by spacefracking |
Add spacefracking to Your Buddy List |
02/13/22, 12:02 AM | |||
Forum posts: 1
File comments: 133
Uploads: 0
|
LUA errrors
EDIT: I believe I solved the LUA errors in my case. The issue appears to be that another addon (loaded earlier that this one) contained an older version of LibAddonMenu-2.0. I followed the general instructions at https://www.esoui.com/forums/showthr...hlight=LibStub and the errors have stopped and my companion now has the indicator above their head again!
I had been doing some addon purging... so I suspect I had removed an even earlier loading addon that prevented the older/embedded library from being used. Feel free to look at the correction/edits I made and shared @ https://www.esoui.com/downloads/file...=1697#comments ~~~~~~~~ I'm getting LUA errors on login and when I launch the Settings On log in:
Last edited by [Daniel] : 02/13/22 at 11:15 PM.
|
||
|
[Daniel] |
View Public Profile |
Send a private message to [Daniel] |
Send email to [Daniel] |
Visit [Daniel]'s homepage! |
Find More Posts by [Daniel] |
Add [Daniel] to Your Buddy List |
02/08/22, 10:02 AM | |
Forum posts: 0
File comments: 9
Uploads: 0
|
no icon for self in addons using OSI
Hi all, anybody else having an issue where addons that use OSI, such as CrutchAlerts and Qcells, don't show icons above your own character, though you see them over your group members just fine? Any help getting this sorted would be much appreciated. Thanks!
|
|
filipv |
View Public Profile |
Send a private message to filipv |
Send email to filipv |
Visit filipv's homepage! |
Find More Posts by filipv |
Add filipv to Your Buddy List |
01/06/22, 02:13 AM | ||
also requesting
|
||
|
bluepitbull13 |
View Public Profile |
Send a private message to bluepitbull13 |
Send email to bluepitbull13 |
Visit bluepitbull13's homepage! |
Find More Posts by bluepitbull13 |
Add bluepitbull13 to Your Buddy List |
09/12/21, 08:07 AM | |
Forum posts: 0
File comments: 2
Uploads: 0
|
put icon in zone chat
Hello.
Can we have in future uptdate the possibiliy to assign custom icon to ppl who are not in our group/guild ? Its can be very usefull please Thanks |
|
eldeuspoulpos |
View Public Profile |
Send a private message to eldeuspoulpos |
Send email to eldeuspoulpos |
Visit eldeuspoulpos's homepage! |
Find More Posts by eldeuspoulpos |
Add eldeuspoulpos to Your Buddy List |