Quantcast
Download
(6 Kb)
Download
Updated: 05/28/20 09:21 AM
Pictures
File Info
Compatibility:
Greymoor (6.0.5)
Harrowstorm (5.3.4)
Dragonhold (5.2.5)
Updated:05/28/20 09:21 AM
Created:02/10/20 11:09 AM
Monthly downloads:4,494
Total downloads:10,689
Favorites:29
MD5:
Categories:Bags, Bank, Inventory, TradeSkill Mods, ToolTip
6.0.5
Alchemy Tooltips  Updated this week!  Popular! (More than 5000 hits)
Version: 1.8b
by: Hyperioxes [More]
Displays cheapest way to craft certain potion, poison or alchemy master writ in its tooltip along with crafting cost, based on LibPrice prices. Can also change to custom prices in settings.

Dependencies:
-LibPrice
-LibAddonMenu
-LibAlchemy



Special thanks to ziggr, Dolgubon, Marify, sirinsidiator and Baertram for helping me out with the coding part, to everyone who sent me potions so I could write down their IDs (especially @keebleec), to t.vicson for suggesting a layout change and to soft_warrior for submitting russian translation.
1.8b.
-Fixed a bug with guild tabard throwing up errors

1.8a.
-Added russian translation submitted by soft_warrior

1.8.
-Added Greymoor reagents and effects
-Changed the way addon works so it doesn't need database anymore, it works on all potions and poisons now

1.7.
-Moved all databases and most of functions to a separate library

1.6j.
-Added more potions to database

1.6i.
-Added more potions to database

1.6h.
-Added more potions to database

1.6g.
-Added more potions to database

1.6f.
-Added more potions to database

1.6e.
-Added more potions to database

1.6d.
-Added more potions to database

1.6c.
-Fixed bug

1.6b.
-Added more potions to database

1.6a.
-Added more potions to database

1.6.
-Addon now properly recognizes prolonged effects (for example combination Columbine-Bugloss-Mountain Flower, its Major Fortitude lasts 52.8 seconds instead of 47.6 because effect "Restore Health" is used 3 times and now addon will recognize and suggest correct combination)

1.5d.
-Added more potions to database
-Fixed bugs

1.5c.
-Added more potions to database

1.5b.
-Fixed bug

1.5a.
-Added more potions to database
-Fixed bugs

1.5.
-Changed tooltip layout, can still change to old layout in settings

1.4f.
-Added more potions to database

1.4e.
-Fixed bugs

1.4d.
-Added more potions to database
-Fixed bugs

1.4c.
-Added more potions to database
-Fixed a bug with some potions' crafting costs being calculated is if they were poisons

1.4b.
-Added more potions to database

1.4a.
-Fixed a bug with settings not being saved

1.4.
-Minor bugfixes
-Added settings

1.3.
-Bugfix: alchemy master writs' tooltips now properly appear on language versions other than english
-Started using LibPrice to extract price which fixed a few other bugs
-Added german and polish translation

1.2.
-Tooltip now also appear on alchemy master writs

1.1.
-Bugged tooltip no longer shows up on master writ tooltips
-TTC prices now initialize with a 5 second delay
-Added more potions to database
Optional Files (0)


Archived Files (30)
File Name
Version
Size
Uploader
Date
1.8a
6kB
Hyperioxes
05/27/20 04:23 PM
1.8
5kB
Hyperioxes
05/27/20 04:13 PM
1.7
5kB
Hyperioxes
05/10/20 05:44 PM
1.6j
13kB
Hyperioxes
05/09/20 02:41 PM
1.6i
12kB
Hyperioxes
05/09/20 04:38 AM
1.6h
12kB
Hyperioxes
05/08/20 01:36 PM
1.6g
12kB
Hyperioxes
05/07/20 01:29 PM
1.6f
12kB
Hyperioxes
05/05/20 02:32 PM
1.6e
11kB
Hyperioxes
04/30/20 01:59 PM
1.6d
11kB
Hyperioxes
04/21/20 10:36 AM
1.6c
11kB
Hyperioxes
04/19/20 06:19 AM
1.6b
11kB
Hyperioxes
04/18/20 08:36 AM
1.6a
11kB
Hyperioxes
03/25/20 02:53 PM
1.6
11kB
Hyperioxes
03/22/20 10:28 PM
1.5d
11kB
Hyperioxes
03/22/20 10:51 AM
1.5c
11kB
Hyperioxes
03/21/20 12:29 AM
1.5b
10kB
Hyperioxes
03/19/20 01:28 PM
1.5a
10kB
Hyperioxes
03/19/20 01:13 PM
1.5a
10kB
Hyperioxes
03/19/20 12:05 PM
1.4f
10kB
Hyperioxes
03/18/20 02:40 AM
1.4e
10kB
Hyperioxes
03/16/20 02:33 PM
1.4d
10kB
Hyperioxes
03/15/20 02:39 PM
1.4c
10kB
Hyperioxes
03/14/20 11:50 AM
1.4b
10kB
Hyperioxes
03/12/20 12:55 PM
1.4a
10kB
Hyperioxes
03/11/20 10:36 AM
1.4
10kB
Hyperioxes
03/10/20 12:27 PM
1.3
9kB
Hyperioxes
03/01/20 06:28 PM
1.2
7kB
Hyperioxes
02/27/20 03:16 AM
1.1
7kB
Hyperioxes
02/24/20 03:01 AM
1.0
7kB
02/10/20 11:09 AM


Post A Reply Comment Options
Unread 02/10/20, 11:30 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 2875
File comments: 3465
Uploads: 60
Nice addon, could you mabe add multi language support?
Maybe other addons like Potion maker already provide the translated texts of the reagents etc.

Using clientLanguage dependent language files in your manifest txt:
https://wiki.esoui.com/Addon_manifest_(.txt)_format#Variable_Expansion

e.g. add to your txt file:
lang/en.lua
lang/$(language).lua

This will always load the en.lua strings as fallback and also after that the client's language file e.g. fr.lua or de.lu or jp.lua
You can watch pChat addon how to add strings like ZOs does it and multi translate them with the other files then.


Maybe also format your currency in the tooltip witht his information:
https://wiki.esoui.com/Currency_Formatting

Just a hint about your "posthook" of the tooltip controls:
Code:
local origMethod = tooltipControl[method]

	tooltipControl[method] = function(self, ...)
		origMethod(self, ...)
		AddPotionInfo(self, checkPotion(linkFunc(...)))

	end
You can use the function SecurePostHook since last major update to build a posthook instead of creating it manually:

Lua Code:
  1. if not tooltipControl[method] then return end
  2. SecurePostHook(tooltipControl, method, function(self, ...)
  3.         AddPotionInfo(self, checkPotion(linkFunc(...)))
  4.     end)
Last edited by Baertram : 02/10/20 at 11:33 AM.
Report comment to moderator  
Reply With Quote
Unread 02/10/20, 12:13 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 11
Uploads: 2
I wanted to add multi language support but it's my college project which I have to finish before certain date and I was running out of time so I decided I'll have to add it later and for now just make sure everything else works fine. I have a few final exams in the following weeks but I can start working on multi language support after I'm done with that, thanks for the support!
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 05:08 AM  
Maelynn

Forum posts: 14
File comments: 32
Uploads: 0
If it were possible for you to add this functionality to the Sealed Writs, then I'd insta-download this.
__________________
Just remember... if the world didn't suck, we'd all fall off.
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 02:27 PM  
Greevir
 
Greevir's Avatar

Forum posts: 27
File comments: 126
Uploads: 0
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 04:03 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 11
Uploads: 2
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Report comment to moderator  
Reply With Quote
Unread 02/11/20, 11:17 PM  
Greevir
 
Greevir's Avatar

Forum posts: 27
File comments: 126
Uploads: 0
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Last edited by Greevir : 02/11/20 at 11:18 PM.
Report comment to moderator  
Reply With Quote
Unread 02/14/20, 12:52 AM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 11
Uploads: 2
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Report comment to moderator  
Reply With Quote
Unread 02/14/20, 07:50 PM  
Greevir
 
Greevir's Avatar

Forum posts: 27
File comments: 126
Uploads: 0
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
Report comment to moderator  
Reply With Quote
Unread 02/15/20, 06:47 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 11
Uploads: 2
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
It appears that price gets extracted from TTC but doesnt get saved to the table. Also the table exists because if it didn't then 2nd line in chat would show nothing instead of "nil". My only idea is that for some reason TTC loads up delayed so I want you to try out this:
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     InitializePricesTTC()
  3.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  4.     d(reagents[30148][2])
  5. end
Change the code you pasted last time to this and tell me what shows up on your chat.
Report comment to moderator  
Reply With Quote
Unread 02/23/20, 09:59 PM  
Greevir
 
Greevir's Avatar

Forum posts: 27
File comments: 126
Uploads: 0
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
It appears that price gets extracted from TTC but doesnt get saved to the table. Also the table exists because if it didn't then 2nd line in chat would show nothing instead of "nil". My only idea is that for some reason TTC loads up delayed so I want you to try out this:
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     InitializePricesTTC()
  3.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  4.     d(reagents[30148][2])
  5. end
Change the code you pasted last time to this and tell me what shows up on your chat.
nothing happens
Report comment to moderator  
Reply With Quote
Unread 02/24/20, 03:14 AM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 11
Uploads: 2
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Originally Posted by Hyperioxes
Originally Posted by Greevir
Can't seem to get this working. Has issues with TTC for me.

Code:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: attempt to index a nil value
stack traceback:
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:417: in function 'InitializePricesTTC'
user:/AddOns/AlchemyTooltips/AlchemyTooltips.lua:1392: in function 'OnAddOnLoaded'
|caaaaaa<Locals> event = 65536, addonName = "AlchemyTooltips" </Locals>|r
It seems like the TTC suggested price is nil. Are you absolutely sure that your TTC data is up to date? Are you seeing suggested price in alchemy reagents' tooltips?
Yup, absolutely sure:
Sorry for very late answer, can you try adding this at the end of addon's code?
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  3.     d(reagents[30148][2])
  4. end

Then just use the /test command and tell me what shows up on your chat, I need to figure if the issue is with extracting TTC price or with saving that price to the table.
Chat shows two lines:

45.26
nil
It appears that price gets extracted from TTC but doesnt get saved to the table. Also the table exists because if it didn't then 2nd line in chat would show nothing instead of "nil". My only idea is that for some reason TTC loads up delayed so I want you to try out this:
Lua Code:
  1. SLASH_COMMANDS["/test"] = function ()
  2.     InitializePricesTTC()
  3.     d(TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice)
  4.     d(reagents[30148][2])
  5. end
Change the code you pasted last time to this and tell me what shows up on your chat.
nothing happens
I've just updated the addon, please check if it works now and let me know. If it still doesn't work then I'm out of ideas and I'll need to post this on forums hoping that someone smarter than me can figure it out.
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 10:34 AM  
SneakyWitchTheif

Forum posts: 1
File comments: 42
Uploads: 0
Lovely addon, but the TTC prices are far too low. Could we get an option for using MM prices via libprice?
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 11:05 AM  
wizzard2k

Forum posts: 0
File comments: 57
Uploads: 0
Originally Posted by SneakyWitchTheif
Lovely addon, but the TTC prices are far too low. Could we get an option for using MM prices via libprice?
TTC Suggested by default is the lowest 30% of listings, minus 20%, so it will always be lower than most markets.

by changing the lines such as
Code:
	reagents[30148][2] = TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice
to

Code:
	reagents[30148][2] = LibPrice.ItemLinkToPriceGold("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h")
and making the addon dependent on libprice would give the option for the user to set their own preference, and even add the option to overload the above changed command to specify a source as an optional argument 2
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 12:03 PM  
Hyperioxes
AddOn Author - Click to view AddOns

Forum posts: 2
File comments: 11
Uploads: 2
Originally Posted by wizzard2k
Originally Posted by SneakyWitchTheif
Lovely addon, but the TTC prices are far too low. Could we get an option for using MM prices via libprice?
TTC Suggested by default is the lowest 30% of listings, minus 20%, so it will always be lower than most markets.

by changing the lines such as
Code:
	reagents[30148][2] = TamrielTradeCentrePrice:GetPriceInfo("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h").SuggestedPrice
to

Code:
	reagents[30148][2] = LibPrice.ItemLinkToPriceGold("|H0:item:30148:30:1:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|h|h")
and making the addon dependent on libprice would give the option for the user to set their own preference, and even add the option to overload the above changed command to specify a source as an optional argument 2
Right now I'm working on multi language support but after I'm done with that I'll look into libprice and try to create some settings with options to pick between TTC, MM or ATT.
Report comment to moderator  
Reply With Quote
Unread 03/19/20, 05:50 AM  
t.vicson

Forum posts: 0
File comments: 1
Uploads: 0
I apologize, but in my opinion it looks better. Can you do that?
Last edited by t.vicson : 03/19/20 at 06:03 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: