View Single Post
04/05/21, 01:16 PM   #10
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
Enter this into the chat edit box:
Code:
/script ZO_LootHistory_Shared.DisplayLootQueue = function() return end
And press the return key.

If it works it will overwrite the original function DisplayLootQueue with an empty one (doing nothing) and you wouldn't see it anymore.

If you got any addon where you would like to add it check these addon's .lua files for EVENT_ADD_ON_LOADED.
The line would be something like this (where MyAddonName is the name of the addon's folder/txt file):
Lua Code:
  1. EVENT_MANAGER:RegisterForEvent("MyAddonName", EVENT_ADD_ON_LOADED, functionName)
Search the functioName in the lua files and it will look like this e.g.

Lua Code:
  1. function functionName(eventId, addonName)
  2.    if addonName == "MyAddonName" then
  3.       ...
  4.      EVENT_MANAGER:UnregisterForEvent("MyAddonName", EVENT_ADD_ON_LOADED)
  5.      --Add the script code here "without the /script at the start"
  6.     ZO_LootHistory_Shared.DisplayLootQueue = function() return end
  7.    end
  8. end
  Reply With Quote