"Created by" API function?
Is there an API function that exposes the "Created by" information for crafted items?
(I am embarrassingly incompetent at identifying whether such things exist; all I know how to do is scroll through the ESOUI API wiki hoping to spot something obvious, but the purpose of functions isn't always obvious to me from function names. If there's a better way short of rote memorizing, I don't know that way.) |
The method I use is Ctrl + F. Search for related strings. It often works, but if you can't hit upon the correct thing to search for you can miss stuff. The functions in the wiki also tend to be sorted by what they generally affect. For example, functions related to Guilds are mostly together or in two different places. Item Link functions are all together. So if you scroll quickly and find a function which does something similar, check in the area around it too.
The functino you are looking for is GetItemCreatorName(number Bag bagId, number slotIndex). I searched for Creator. There's also similar functions for the creator name in trades and mail. |
GetItemCreatorName(bag, slot)
|
The reason I inquired about this was that I had a notion to add a function to AutoCategory that would allow me to create a separate visual inventory category for consumables that I had crafted. Earlier I'd seen conversation about saving crafted consumables to use to satisfy the demands of future crafting writs, but at the time I didn't really understand because I'm new to the game and hadn't yet started doing writs. Now that I am, I see the practicality in saving extras for later writs.
There's always a chance of mishandling such items when one is in a hurry or sleep-deprived, however, and I thought it would be useful to make those items stand out as a group to avoid that possibility. My first inclination was to use AutoCategory to satisfy that need, but perhaps using FCOItemSaver might be more effective? It has the capability to actually safeguard items from specific actions, unlike AutoCategory. It would likely be considerably more work. Is there already a solution for this that I haven't discovered? |
You could use FCOItemSaver to mark the stuff you created with a marker icon and protect this against "what ever you want to protect it against" (trade, sell, destroy).
If I'm remembering correctly there is an option within FCOIS protection submenu -> "Anti-*" to protect food/drink against usage if they are marked with a marker icon. Crafted items armor, weapon, shields) get already auto-marked with a markericon if you set the addon up to do so. Writ created stuff as well. But only if you use Dolgubon's Lazy Writ Creator -> And it only supports weapons and armor so far; no jewelry (until Summerset, maybe now it is supported), no alchemy, no provisioning and no enchanting. |
Quote:
Logically, I'd rather see that capability incorporated into Lazy Writ Crafter(Creator?) - which I do use - where those settings would nestle neatly alongside the similar integrated protections for crafted gear items (which I've also been using), but I'm glad it exists somewhere. |
Be remembered:
If your food is protected you are not able to double click/use it from the inventory (as long as it is marked with a marker icon). You are still able to put it to a quickslot though and use it from there. If you want to use the items from the inventory you can use this way: Go to the settings and enable the "Additional inventory buttons" > "Flag button". Enable the "right click flag to change protection". Inside your inventories you see a red/green flag at the top left corner (near the "Sort by name" entry). If it's red: Protection at the current panel is disabled -> Food and other protected stuff can be used/dragged/dropped, destroyed! If it's green: Protection at the current panel is enabled. -> Everything is protected again. Right click this flag button to change the protection from on to off to on to off ... Left clickit to get "mass marking" possibilities for the currently shown items (compatible with AdvancedFilters and base game inventory filters like weapons, armor (and AF subfilters like light, medium). Only the currently "visible" items in your inventory list are mass marked/demarked/checked for automatic marking, etc. |
Quote:
Speaking of that flag... it's now way the heck off to the left side, outside the guild bank frame, and I should find a way to nudge it back where it belongs.... |
The x and y axis positions can of the flag button can be changed in the same subsettings "Additional buttons" -> "Flag button" -> Sliders at the bottom.
If you enable FCOIS to use account wide settings your marked items will be automatically marked for the other characters/toons too. So if you have marked your food "123" to protect it, your other char/toon which finds this food "123" too will automatically have the item marked and protected as well. If you change the settings to "each character" this won't happen but you need to apply the marker icons for each character alone. I'm using account wide settings as I want my items to be protected the same for each character. |
Quote:
Or... I could mention it in the relevant forum and learn what others are seeing. :-/ Quote:
. |
I'll check the standard offsets, maybe there is an error in there.
Edit: Checked the offsets and ingame at the guild banks, everything is ok for me. It's maybe another addon interfering. Please try with only FCOItemSaver enabled, does it look ok then? Enable the other addons afterwards (starting with guild bank or bank or "sort" changing addons) and see which one is the problem. |
Quote:
. |
Thanks, trying to find a way to fix this. FCOIS is attaching the button to the sortheaders. If Quality sort is changing them, FCOIS is still attached to them and the offsets are nuts.
|
Quote:
|
Quote:
|
No, thanks. If I find out that qsort needs adjustments I'll talk to Silvereyes.
|
All times are GMT -6. The time now is 03:14 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI