Try to ask twice a day, maybe someone will have the time then (ironic)
But I guess he/she won't have the desire to do it anymore because of your daily bumps
Lua Code:
unction ZO_InventoryManager:OnInventoryItemAdded(inventoryType, bagId, slotIndex, newSlotData)
local inventory = self.inventories[inventoryType]
newSlotData.searchData = {type = SEARCH_TYPE_INVENTORY, bagId = bagId, slotIndex = slotIndex}
newSlotData.inventory = inventory
inventory.stringSearch:Insert(newSlotData.searchData)
-- play a brief flash animation on all the filter tabs that match this item's filterTypes
if newSlotData.brandNew then
self:PlayItemAddedAlert(newSlotData.filterData, inventory.tabFilters)
end
end
This function is called as a new item is put into your inventory.
The lower part is the important one that you don't want to happen anymore:
Lua Code:
-- play a brief flash animation on all the filter tabs that match this item's filterTypes
if newSlotData.brandNew then
The class ZO_InventoryManager is assigned to the following variable ingame:
Lua Code:
function ZO_PlayerInventory_Initialize()
-- ZO_PlayerInventory is used for event registration only. There are multiple inventory controls, but only one manager is needed.
PLAYER_INVENTORY = ZO_InventoryManager:New(ZO_PlayerInventory)
end
PLAYER_INVENTORY is the variable you need to use to get into this function OnInventoryItemAdded then:
So learn to code addons at the wiki, there are many examples and helps:
http://wiki.esoui.com/Main_Page (check the right side!)
http://wiki.esoui.com/Getting_Started
http://wiki.esoui.com/Writing_your_first_addon
http://wiki.esoui.com/MyFirstAddon_t...Zenimax_Online
http://wiki.esoui.com/ISummonThee
http://wiki.esoui.com/SimpleNotebookTutorial/part1
You can use the function ZO_PreHook to pre-enter a function of the base game. You can modify values or run your own source code then prior to the original function.
After that be sure to "return false" so the original function code is executed after yours! Or "return true" to not run the original code!
Suggestion:
Build a small standalone addon and put some code in the Event_addon_loaded callback function of your addon which does a zo_PreHook for this function and just changes newSlotData.brandNew to false always.
The PreHook couldlook likes this e.g.:
Lua Code:
ZO_PreHook(PLAYER_INVENTORY, "OnInventoryItemAdded", function(self, inventoryType, bagId, slotIndex, newSlotData)
--If it's a new item and marked as brandNew, mark it as not brandNew to block the animation and icon
if newSlotData and newSlotData.brandNew then
newSlotData.brandNew = false
end
return false -- call original function code of "OnInventoryItemAdded" now!
end)
Taken some code form Writing your first adodn tutorial this could look like this then:
Lua Code:
-- First, we create a namespace for our addon by declaring a top-level table that will hold everything else.
FooAddon = {}
-- This isn't strictly necessary, but we'll use this string later when registering events.
-- Better to define it in a single place rather than retyping the same string.
FooAddon.name = "FooAddon"
-- Next we create a function that will initialize our addon
function FooAddon:Initialize()
--Remove animation and icon of brand new items in inventory
ZO_PreHook(PLAYER_INVENTORY, "OnInventoryItemAdded", function(self, inventoryType, bagId, slotIndex, newSlotData)
--If it's a new item and marked as brandNew, mark it as not brandNew to block the animation and icon
if newSlotData and newSlotData.brandNew then
newSlotData.brandNew = false
end
return false -- call original function code of "OnInventoryItemAdded" now!
end)
end
-- Then we create an event handler function which will be called when the "addon loaded" event
-- occurs. We'll use this to initialize our addon after all of its resources are fully loaded.
function FooAddon.OnAddOnLoaded(event, addonName)
-- The event fires each time *any* addon loads - but we only care about when our own addon loads.
if addonName == FooAddon.name then
FooAddon:Initialize()
end
end
-- Finally, we'll register our event handler function to be called when the proper event occurs.
EVENT_MANAGER:RegisterForEvent(FooAddon.name, EVENT_ADD_ON_LOADED, FooAddon.OnAddOnLoaded)
Be sure to change FooAddon to some other name like "NoNewItem" and adapt the manifest txt file to the same name etc.
If you got questions,a fter you read into the materia and tried it, be free to ask here.
But please stop to bump such 1 user requests every 2nd day... This will only make the addon devs "Not help you anymore"!
Write to ZOs via /bug ingame instead and ask them to add a setting instead.