sirinsidiator on pts8.1
8.1.4 (compare)
sirinsidiator on pts8.1
8.1.3 (compare)
sirinsidiator on pts8.1
8.1.2 (compare)
sirinsidiator on pts8.1
8.1.1 (compare)
sirinsidiator on master
8.0.8 (compare)
sirinsidiator on pts8.1
8.1.0 (compare)
sirinsidiator on master
8.0.7 (compare)
sirinsidiator on master
8.0.6 (compare)
sirinsidiator on master
8.0.5 (compare)
sirinsidiator on pts8.0
8.0.5 (compare)
sirinsidiator on pts8.0
8.0.4 (compare)
sirinsidiator on pts8.0
8.0.3 (compare)
sirinsidiator on master
7.3.9 (compare)
sirinsidiator on pts8.0
8.0.2 (compare)
sirinsidiator on pts8.0
8.0.1 (compare)
sirinsidiator on master
7.3.8 (compare)
sirinsidiator on pts8.0
8.0.0 (compare)
sirinsidiator on master
updated ESOUIDocumentation.txt (compare)
sirinsidiator on master
7.3.7 (compare)
sirinsidiator on master
7.3.6 (compare)
ShouldBeInFurC(link)
uses link = FurC.GetItemLink(link)
which is fine but if you don't get it working then I was going to try to use something more like if the link
contains H1 or H0 then it's a valid link just use it and if not then go out and use FurC.GetItemLink(link)
since that seems to generate a link using zo_strformat("|H1:item:<<1>>:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", itemId)
when you just have the item ID.
local function getItemLink(itemId)
if nil == itemId then return end
itemId = tostring(itemId)
if #itemId > 55 then return itemId end
if #itemId < 4 then return end
return zo_strformat("|H1:item:<<1>>:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", itemId)
end
Well I'm not expert so looking at that, it's like if the length is longer than or less than then do something. I tend to do things the long way and because an Item ID can now be so long and since a real item link can also contain so much more then it did before I wanted to rewrite that to do it different
local function getItemLink(itemId)
if nil == itemId then return end
local isItemId = itemId == 'number'
local isValidLink = string.match(itemId, "H0") or string.match(itemId, "H1")
if isValidLink return itemId end
if isItemId then return zo_strformat("|H1:item:<<1>>:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h", itemId) end
-- otherwise shit hit the fan
end
No worries, I know users do that but still. Everyone here including you always offers help when possible. Even if I chose to do it different. So naturally you don't have to do anything you don't want but that's what I was going for.
function ShouldBeInFurC(link)
link = FurC.GetItemLink(link)
local itemId = GetItemLinkItemId(link)
if IsItemLinkPlaceableFurniture(link) then
return nil == FurnitureCatalogue.settings.data[itemId]
end
if not IsItemLinkFurnitureRecipe(link) then return false end
for _, versionData in pairs(FurC.Recipes) do
for _, id in ipairs(versionData) do
if id == itemId then return false end
end
end
for _, versionData in pairs(FurC.FaustinaRecipes) do
if versionData[itemId] then return false end
end
for _, versionData in pairs(FurC.RolisRecipes) do
if versionData[itemId] then return false end
end
-- yeah okay, it should actually return false, but this is a util function for datamining
return nil == FurnitureCatalogue.settings.data[itemId]
end