Thread Tools Display Modes
02/12/17, 11:15 PM   #1
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
[outdated] Feature Request Add craft/upgrade/decon to EVENT_CRAFT_STARTED/COMPLETED

So currently EVENT_CRAFT_STARTED and EVENT_CRAFT_COMPLETED return (integer craftSkill), which will be one of these values:
CRAFTING_TYPE_INVALID = 0
CRAFTING_TYPE_BLACKSMITHING = 1
CRAFTING_TYPE_CLOTHIER = 2
CRAFTING_TYPE_ENCHANTING = 3
CRAFTING_TYPE_ALCHEMY = 4
CRAFTING_TYPE_PROVISIONING = 5
CRAFTING_TYPE_WOODWORKING = 6

I'd like to see if it would be possible to add the type of crafting you are doing in each subcategory for Blacksmithing, Clothing and Woodworking.
- Refine
- Creation
- Deconstruct
- Improvement
- Research

I'm currently making a component for LUI that prints crafting changes to the chatlog, and it is context sensitive:


While I can use the itemtype of the item and whether we gained or lost an item to fudge alot of it, that still leaves me with any items lost from failed upgrades or research with the same [Deconstructed] syntax that I have for deconstructing the item, since its not possible to differentiate between the method used that caused loss of the item.

Thanks!
 
02/12/17, 11:18 PM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Lua Code:
  1. TABLE:GetMode()

replace TABLE with SMITHING, ALCHEMY, ENCHANTING (I guess) or COOKING.
 
02/13/17, 06:03 AM   #3
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
Originally Posted by Ayantir View Post
Lua Code:
  1. TABLE:GetMode()

replace TABLE with SMITHING, ALCHEMY, ENCHANTING (I guess) or COOKING.
What will that return?
 
02/13/17, 10:06 AM   #4
Rhyono
AddOn Author - Click to view addons
Join Date: Sep 2016
Posts: 659
"Mode" is the crafting tab it is on. So it should return an integer in correlation with their left to right order.
 

ESOUI » Developer Discussions » Wish List » [outdated] Feature Request Add craft/upgrade/decon to EVENT_CRAFT_STARTED/COMPLETED

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