Thread Tools Display Modes
03/20/18, 06:35 AM   #1
Marify
 
Marify's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2017
Posts: 27
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.
  Reply With Quote
03/20/18, 11:12 AM   #2
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
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.
  Reply With Quote
03/20/18, 10:33 PM   #3
Marify
 
Marify's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2017
Posts: 27
Originally Posted by Dolgubon View Post
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.
  Reply With Quote
03/20/18, 11:36 PM   #4
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
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 )
  Reply With Quote
03/22/18, 05:07 PM   #5
Marify
 
Marify's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2017
Posts: 27
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.
  Reply With Quote
03/23/18, 02:12 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
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).

Last edited by Baertram : 03/23/18 at 02:16 AM.
  Reply With Quote
03/23/18, 01:07 PM   #7
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
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.
  Reply With Quote
03/23/18, 06:47 PM   #8
Marify
 
Marify's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2017
Posts: 27
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 ,,,
  Reply With Quote
03/24/18, 01:16 PM   #9
Dolgubon
 
Dolgubon's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2016
Posts: 408
Originally Posted by Marify View Post
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.
  Reply With Quote

ESOUI » Developer Discussions » Tutorials & Other Helpful Info » Get text in "Sealed Blacksmithing Writ"

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off