Download
(15 Kb)
Download
Updated: 04/23/24 06:07 PM
Pictures
File Info
Compatibility:
Scions of Ithelia (9.3.0)
Updated:04/23/24 06:07 PM
Created:04/17/24 12:07 PM
Monthly downloads:334
Total downloads:344
Favorites:3
MD5:
9.3.0
Writ2Style  Updated this week!
Version: 1.4
by: MelanAster [More]
A tinny addon to help you get info of Motif Chapter from master writs.


To chat window:


Or to TTC website:




Currently, work for all language.

Required Libraries: LibCustomMenu
*Don't need anything when used as Lib


Used as Lib:

Lua Code:
  1. Writ2StyleByLink(ItemLink MasterWrit)
  2. --Return: ItemLink (Motif Chapter first, if not exist return the ItemLink of Mofit Book instead)
  3.  
  4. Writ2StyleByLink(ItemLink MasterWrit, Boolean true)
  5. --Return: ItemLink(Motif Chapter), ItemLink(Motif Book)
  6. --Return nil when item not exist

Digression:
I've noticed that some style chapters are named incorrectly.
Crafting Motif 123: Kindred's Concord Helmet(s)
Crafting Motif 123: Kindred's Concord Dagger(s)
Crafting Motif 123: Kindred's Concord Shield(s)
Crafting Motif 59: Scalecaller Cops (Shoulders)

In addition, some style books are incorrectly defined as the type of motif chapter.
1.4:
Added missing chapter information

1.3:
Preliminary update for U42

1.2:
Fix some bugs

1.1:
Expand the application to item links in chat window and writs in guild store.

1.0:
Finish the database

0.1:
First release
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Uploader
Date
1.3
15kB
MelanAster
04/22/24 09:11 AM
1.2
15kB
MelanAster
04/19/24 07:07 AM
1.1
15kB
MelanAster
04/18/24 01:21 PM
1.0
3kB
MelanAster
04/17/24 12:07 PM


Post A Reply Comment Options
Unread 04/19/24, 10:42 AM  
MelanAster
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 48
Uploads: 4
Originally Posted by Baertram
Hi,

If you do not need that library add it as ## OptionalDependsOn: LibCustomMenu>=<LCM AddOnVersion from LibCustomMenu.txt>

Code:
## OptionalDependsOn: LibCustomMenu>=721
In your code check then, where needed:
if LibCustomMenu then
--add your context menu entries
end

And else, if it's nil, do not add the context menu entries


Adding a "non-optional" dependency and writing "Don't need LibCustomMenu when used as Lib" does not make any sense.
It will still not load the addon/library at all if the dependencies are missing
Sorry, this may have caused some confusion, I will remove the remark in the next version.
Report comment to moderator  
Reply With Quote
Unread 04/19/24, 09:39 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 4991
File comments: 6043
Uploads: 78
Hi,
#Don't need LibCustomMenu when used as Lib
If you do not need that library add it as ## OptionalDependsOn: LibCustomMenu>=<LCM AddOnVersion from LibCustomMenu.txt>

Code:
## OptionalDependsOn: LibCustomMenu>=721
In your code check then, where needed:
if LibCustomMenu then
--add your context menu entries
end

And else, if it's nil, do not add the context menu entries


Adding a "non-optional" dependency and writing "Don't need LibCustomMenu when used as Lib" does not make any sense.
It will still not load the addon/library at all if the dependencies are missing
Last edited by Baertram : 04/19/24 at 09:41 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: