User:Mazirian/Item Icon IDs
Summary
When making or editing item pages, it needs the "lucy_img_ID" in order for the icon to show up on the page. However, finding the correct image ID can be challenging! Here are several options, from easiest to most complicated:
The Icon Finder
The most effective way to create or edit an item is using the "Edit Source" function, available in the top right. (It should default to source editing when creating a brand-new page.) This lets you directly edit the page's source code, leading to the best control of the content. Above the editing area, on the right, is the button for the Icon Finder:
Click that button.
Then, you'll need to capture the icon: In the EverQuest Legends window, go to the item, and either Alt-Left-Click, or Right-Click-and-Hold to open the item information window.
Using a screenshot tool, capture only the icon on the screen, and instead of saving it as a file, copy the selected area to the clipboard.
Then, go back to the wiki page in your browser, click in the Icon Finder box, and press Ctrl-V to paste the image into the finder.
Alternately, if your screen capture tool doesn't let you copy to the clipboard, take a screenshot of only the icon, save it, and then drag the image file into the box.
If the icon is already uploaded on the wiki, it should show in the list of matches, and you can click "Copy ID" and then paste that number onto the end of the |lucy_img_ID = line.
If the icon doesn't show up in the Icon Finder, move on to...
The Icon List
There is a special page, the Icon List, which shows all of the .png images uploaded with the prefix of Item_. Go there and scroll until you find it. Yes, it is a long list, and it's kind of a hassle. If that doesn't work, or you don't want to play a pattern-matching game for a while, move on to...
Manually mining for the item ID
You can find the item ID by mining through the game files, though it's a little cumbersome.
If you have the item, you can ask the game itself by temporarily adding it to your advanced loot filters.
Open the "Advanced Loot Window" by left-clicking the EQL button, then going to Actions, then Loot Window. That should also show any keybind to open that window, and if you'd like to change that keybind, you can do that in Options >> Controls >> Key Bindings >> UI >> Advanced Loot window toggle.
The Advaced Loot Window should have a button for "Filters". Click that.
From your inventory, click your item, then click it into the filters window. This will create a new loot filter entry defaulting to "always loot".
This also generates a line in your filter file located at ...\EverQuest Legends\userdata\LF_<character>_<server>.ini.
In that file, the third number on each line is the icon ID. The file has a convenient header line to inform us, unlike a lot of the other data files: #ITEM_ID^FILTER_ID^ICON_ID^ITEM_NAME.
Go to the last line of the file, and get that third number.
Add that into the |lucy_img_ID = line.
However, sometimes the image isn't uploaded to this wiki yet! In that case, don't despair, you can add it yourself:
Adding item icons
With the item ID number you found above, you can usually find and download that icon from EQResource, since EQL is re-using all the EQ1 icons (so far). You'll need to manually enter the URL, though.
Copy this text: https://items.eqresource.com/itemimages/<ICON_ID>.png
Open a new browser tab, and paste that address in. Then, change <ICON_ID> to the item ID you found in the loot filter file, and press enter. It should show up as an icon in the center of your browser window.
Right-click that image and save it, making sure to format the filename as item_<ID#>.png
From there, go to your item page, and click the "Upload your image" link.
In the "Source file" section, click "Browse", then select the item_ID#.png file you just obtained and click Open or Upload.
Scroll down and select or deselect "Watch this file" as you like, then click "Upload file". It should show your new file graphic's page.
Due to caching and script timing, it can take up to 30 minutes for the new image to start showing up on the item's page and on the Icon List. Don't worry if it doesn't show up right away.
If none of that works, try pinging us in the discord for some help!