09/12/15, 11:00 AM | #1 |
|
item link field 5
Any one know what the 5 field of an item link is for? I got loot from two different hireling mails, both with a Rekuta, but the Rekuta item links are different.
links: Code:
"|H0:item:45853:23:50:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hRekuta|h" "|H0:item:45853:23:3:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hRekuta|h" Thanks, - Lodur |
09/12/15, 11:20 AM | #2 |
Look here: http://www.uesp.net/wiki/Online:Item_Link
I would guess, the runes are from different zones. |
|
09/12/15, 12:09 PM | #3 |
|
Well that is surprising. So in effect a Rekuta is a Rekuta. And can stack with different Rekuta. But may have different item links even though they are the same...
I was comparing itemlinks to find duplicate items in user mails. That does not seem to be perfect now. |
09/12/15, 02:47 PM | #4 | |||
|
Use the itemId to see if they are the same: Lua Code:
Means that it will grab the 4th item/data from the link. Do note on the page that Votan linked you, even though it shows:
For select statements the select number corresponds to:
|
|||
09/12/15, 07:47 PM | #5 |
|
Thanks for the help. I'm going with this to start with, based all your input, to get a string that can be compared. I think this will cover all my cases. Not sure I really want the 5th field or not, but starting testing with it first.
And I need to add provisioning and alchemy types as well still... I can confirm the issues comes from have hirelings on characters of different levels. The 6th field is always the level of the character that received the hireling mail. Code:
local function GetItemLinkKey(link) local itemType = GetItemLinkItemType(link) if (itemType == ITEMTYPE_ENCHANTING_RUNE_ASPECT) or (itemType == ITEMTYPE_WEAPON_TRAIT) or (itemType == ITEMTYPE_ARMOR_TRAIT) or (itemType == ITEMTYPE_WOODWORKING_BOOSTER) or (itemType == ITEMTYPE_CLOTHIER_BOOSTER) or (itemType == ITEMTYPE_BLACKSMITHING_BOOSTER) then local _, _, _, f4, f5 = ZO_LinkHandler_ParseLink(link) return 'key:item:' .. f4 .. ':' .. f5 else return link end end |
09/12/15, 10:03 PM | #6 | |
|
Lua Code:
I'm not sure what you are trying to do with the GetItemLinkKey() code you posted above. If you can post more details about what you are trying to do I could be of more help. If your trying to create links, this page has some examples on it (you have to scroll down to the item link section & its at the bottom) http://wiki.esoui.com/ZO_LinkHandler_CreateLink |
|
09/13/15, 09:26 AM | #7 |
|
I have been using the item link as a table key to detect duplicate items and display the total looted count.
In this image you can see that the Bervez Juice has 3 entries. This is a bug. There where only a total of 20 looted from 3 hireling mails. So I currently believe I have two bugs in this area. One is with the item links not being comparable. The second seems to be in my list control, as these 3 Bervez Juice had the same link. Both bugs visually appear the as too many rows in the list. I have the item link different for the same item reproducible in a test now. The reason for the way I went with my function is Rewards for the Worthy mails drop weapons and armor. Don't these types of items need the extra link fields for sets, traits and enchants? My goal is a row per item type (items having the same visual ItemTooltip). Since I have ItemTooltips for items in the list window, I don't want similar but not exactly the same items grouped together either. That would hide some of exact detail of what you looted. |
09/13/15, 12:01 PM | #8 | |
|
It sounds like you should just use the link functions instead: If your just concerned with the tooltips, then search through itemtooltips.lua (for examples, to see how they get the information that they build the item tootlips with) and just do the same thing. Grab the information from the items like they do & write a function to compare them & return if they are the same item or not. Just don't forget to do an early return the first time a match fails. Lua Code:
|
|
ESOUI » Developer Discussions » General Authoring Discussion » item link field 5 |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|