ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Tutorials & Other Helpful Info (https://www.esoui.com/forums/forumdisplay.php?f=172)
-   -   Get text in "Sealed Blacksmithing Writ" (https://www.esoui.com/forums/showthread.php?t=7682)

Marify 03/20/18 06:35 AM

Get text in "Sealed Blacksmithing Writ"
 
Hi! :)

[Goal]
I would like to know before ordering the contents of the craft request of "Sealed Blacksmithing Writ"

[Details]
Prior to receiving a master order,
I am in trouble because I do not know if it is already studied or whether I have learned the style.

Does anyone know the method?
I am investigating the API, but I am not sure.:(

Dolgubon 03/20/18 11:12 AM

Since you are looking at sealed writs, I'd suggest looking at the item link, not the text of the sealed writ. The tables of the info are in Writ Worthy.

Marify 03/20/18 10:33 PM

Quote:

Originally Posted by Dolgubon (Post 34203)
Since you are looking at sealed writs, I'd suggest looking at the item link, not the text of the sealed writ. The tables of the info are in Writ Worthy.


Thank you! :):):)
Based on the hint, I found the API I wanted!
  • GenerateMasterWritBaseText (itemLink)


With this, I will be able to notice that it is a part that I have not studied before receiving an order.
( After receiving the order, noticed that I had to wait more than 20 days, I was very sad,,, )

Bless you.

Dolgubon 03/20/18 11:36 PM

I would suggest breaking up the item link into each of its parts. They contain the same info, but as numbers mapped to the attributes. This means that you can do it in general rather than having a table of strings. You don't even need to do he research yourself - the tables are in Writ Worthy. (Which btw does what you're trying to do )

Marify 03/22/18 05:07 PM

Thank you again for the hint! :)
The contents of the link included all the contents you wanted to know.

------------------------------
|H1:item:119563:6:1:0:0:0:59:188:4:92:3:8:0:0:0:0:0:0:0:0:55000|h|h

59:188 ... Rubedite Sword(The type of ID is unknown)
[list]
44:188 Rubedite Helm
46:188 Rubedite Cuirass
47:188 Rubedite Pauldron
48:188 Rubedite Girdle
49:188 Rubedite Greaves
50:188 Rubedite Sabatons
52:188 Rubedite Gauntlets
53:188 Rubedite Axe
56:188 Rubedite Mace
59:188 Rubedite Sword
62:188 Rubedite Dagger
67:188 Rubedite Greatsword
68:188 Rubedite Battle Axe
69:188 Rubedite Maul

4 ... Quality(ITEM_QUALITY_ARTIFACT)
92 ... Set(Kagrenac's Hope)
3 ... Trait(ITEM_TRAIT_TYPE_WEAPON_PRECISE)
8 ... Style(Wood Elf)
------------------------------


Now I'm looking for ways to check if style has been acquired.

I do not know how to use [IsSmithingStyleKnown (itemStyleId, patternIndex)] for staff and shields.
So, I am planning a method to check from the list of achievements.

Baertram 03/23/18 02:12 AM

You could check the addon "http://www.esoui.com/downloads/info265-AIResearchGrid.html" or "CraftStore" to see how they chreck if the motif/style is learned.


Not sure what the patternIndex is but check this page in the WIKI:
http://wiki.esoui.com/StyleItemIndex

With ESO API 100009 the patch notes state:

Crafting Styles
It is now possible to learn specific patterns from a style without learning every pattern in a style. This has led to a few API changes.

Changed Functions
IsSmithingStyleKnown
Now requires a pattern index in addition to the style index

Hints from Ayantir:
http://www.esoui.com/forums/showthread.php?t=6549

IsSmithingStyleKnown(styleItemIndex, patternIndex) : But you need to interact with a crafting station and be on the good mode. (weapons / armors).

Dolgubon 03/23/18 01:07 PM

The pattern index is the index of shields, staves, chests, etc. The only issue with them is that they are station specific- 1 is both robes, axes and bows. So you can only get full style knowledge info while at a craft station (I. E. Know everything or just shields) with that function. You can still use it when you aren't at a craft station, you just have a little less functionality.

While not at a crafting station, your best best might be to just use the achievements. I think there might be something else, but I'm not sure about that. Again, writ worthy also checks that at some point so you could check it's code.

Marify 03/23/18 06:47 PM

Both of you, thank you for the advice! :)
I have decided to check from Achievement.

For IsSmithingStyleKnown(styleItemIndex, patternIndex),
I tried specifying craftingType(CRAFTING_TYPE_BLACKSMITHING / CRAFTING_TYPE_CLOTHIER / CRAFTING_TYPE_WOODWORKING)
but I gave it up.


The source code is almost completed, so it is under test.
UI design sense is poor, so it's a very simple UI ,,, :(

Dolgubon 03/24/18 01:16 PM

Quote:

Originally Posted by Marify (Post 34216)
Both of you, thank you for the advice! :)
I have decided to check from Achievement.

For IsSmithingStyleKnown(styleItemIndex, patternIndex),
I tried specifying craftingType(CRAFTING_TYPE_BLACKSMITHING / CRAFTING_TYPE_CLOTHIER / CRAFTING_TYPE_WOODWORKING)
but I gave it up.


The source code is almost completed, so it is under test.
UI design sense is poor, so it's a very simple UI ,,, :(

Sorry if we weren't clear,but there is no way to get issnithingstyleknown to take a crafting type. Sice there's no crafting type in the parameters, there is no way to get it to take it.


All times are GMT -6. The time now is 02:47 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI