Download
(44Kb)
Download
Updated: 05-24-09 02:03 PM
Pictures
File Info
Updated:05-24-09 02:03 PM
Created:unknown
Downloads:7,582
Favorites:55
MD5:

TradeLinks  Popular! (More than 5000 hits)

Version: 3.1.2 - 9901a
by: Maldivia [More]

Simple addon, that can create custom trade-hyperlinks.

For instance can be used to create a small list of recipees you want to make, instead of linking all of them.

How to use:
Type /tradelinks or /tl to open the window.
Select the profession from the drop down menu
Check the recipees you want to include
Click Link, and a link will be written to your primary chat frame, and the profession window will pop up as if you clicked it.
To send the link to others, shift-click the link written to the chat frame.

To decode a trade-link, and dump a list of the spells in it:
/tldecode [trade link]

To see a list of trade-skills that's not in a link (ie, which skills you're missing):
/tlmissing [trade link]

If holding down shift while finding the recipees in the TradeLinks frame, information about the recipe will show in a tooltip. Shift-click on a recipe in the TradeLinks frame with the chat edit box open, will link that spell.

Known issues:
* Skills that do not create/enchant items, such as the new abilities you gain with professions (Milling, Decipher, Glyph Mastery for Inscription etc) will not show in the profession window that pops up.
* If no skills are selected that create/enchant items, the link generated will not work
* First Aid is weird...
* Mining is not included
* Creating links with recipees noone has, can disconnect you, since the items for those recipees are not loaded on the server. The same thing can happen if you use shift to view tooltips for such recipees.

9901a:
* Fixed bug with Purge in the library
9901:
* Added data files for build 9901 (3.1.2)
* Added function LibTradeLinks:GetSkillId(professionSpell)
* Added function LibTradeLinks:GetSpecializationSpells(skillId)
* Added function LibTradeLinks:GetSpecializationSpells(tradeLink, buildnumber)
9835:
* Added data files for build 9835 (3.1.1a)
9806:
* Added data files for build 9806 (3.1.1)
9767:
* Added data files for build 9767 (3.1.0)
* Added /tlmissing command
9551/9614:
* Fixed bug in decoder that for certain links could add spell not included in the link
* Added data files for build 9614 (0.1.0 PTR)
9551:
* Added data files for build 9551 (3.0.9)
9506:
* Added data files for build 9506 (3.0.8a)
9464:
* Added data files for build 9464 (3.0.8)
9183/9438:
* Added data files for build 9438 (0.0.8 PTR)
9183/9355:
* Added data files for build 9355 (0.0.8 PTR)
9183/9155:
* Added data files for build 9183 (3.0.3)
9056/9155:
* Added data files for build 9155
9056/9061 v2:
* Fixed support for decoding specialized professions
9056/9061:
* Added data files for build 9056 - release version of 3.0.2
* Supports dual data files, so it works on both live and beta
9061:
* Updated data files for build 9061
9038:
* Updated data files for build 9038
* Fixed typo in an assert
9014:
* Updated data files for build 9014
8982:
* Updated data files for build 8982
8970:
* Updated data files for build 8970
* Some initial code for turning the functionality into a library with BoP and black list support.
8905:
* Updated data files for build 8905
8885:
* Updated data files for build 8885
8820:
* Updated data files for build 8820
* Updated to the new encoding scheme of build 8820
8788:
* Updated data files for build 8788
8770-2:
* Added decode option: /tldecode [tradeLink]
Optional Files (0)


Post A Reply Comment Options
Unread 04-20-09, 05:19 AM  
Maldivia
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 31
Uploads: 5
Re: What does purgeNonRecipe remove?

Originally posted by galmok
What does purgeNonRecipe actually remove from the tradelink table? Only items that are not valid anymore or also some valid items?
The trade-link also contains the spells for the different skill-levels of the tradeskill (apprentice, expert, master, Potion Master, Elixir Master etc). the flag should remove those.
Report comment to moderator  
Reply With Quote
Unread 04-19-09, 07:21 AM  
galmok
A Defias Bandit

Forum posts: 2
File comments: 55
Uploads: 0
What does purgeNonRecipe remove?

What does purgeNonRecipe actually remove from the tradelink table? Only items that are not valid anymore or also some valid items?
Report comment to moderator  
Reply With Quote
Unread 02-27-09, 01:34 AM  
orionshock
A Wyrmkin Dreamwalker
 
orionshock's Avatar
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 72
Uploads: 4
Originally posted by galmok
Do you intend to distribute LibTradeLinks as a stand-alone library? Also, I'd like to include LibTradeLinks with GuildAds to help cut down on the storage needed (and communication needed). LibTradeLinks could assist with that. :-)

Coupled with LibPeriodicTable, it is possible to get item-ids from the enchant-ids provided by LibTradeLinks :-)
honestly it is. All you'd have to do is run a data miner on wowhead and cross reference it with the creating spell. Then include that lookup in the lib data. Then when it creates the spell table from decoding it, it could provide that id as the value instead of a 1. IMO best thing to do would be to get the resultant item's ID, and the Orange/Yellow/Green/Gray crafting levels for that item.

From that you can infer if the person can skill up off it or not.. But that's alot of data to ask for in this lib
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 03:30 PM  
Maldivia
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 31
Uploads: 5
Originally posted by galmok
Do you intend to distribute LibTradeLinks as a stand-alone library? Also, I'd like to include LibTradeLinks with GuildAds to help cut down on the storage needed (and communication needed). LibTradeLinks could assist with that. :-)
Was my plan, yes - never got around to it though

But feel free to include the lib in your addon if you like, until I find time to set it up as stand-alone.
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 03:19 PM  
Maldivia
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 31
Uploads: 5
Ok, found the bug - typo in the decoder causing it to see certain bit combinations as all ones instead, uploading new version later today (for those curious, it read 112 a place where it should have read 127).

Sorry for the inconvenience.
Last edited by Maldivia : 02-25-09 at 03:31 PM.
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 02:33 PM  
lilsparky
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 117
File comments: 159
Uploads: 3
the decode doesn't work 100%

single bits encode and decode properly -- like if you check [Fish Feast] and then decode the resulting link it works fine. the trouble seems to come when you have lists of spells in the link instead of just singletons.

["Inscription"] = "|cffffd000|Htrade:45357:356:450:1F2AC4F:g/vP/6npr13/v//A8/Dw/PA+/B+/Bw/PA+/Bw/PA+5nfg//////////////EAAX|h[Inschriftenkunde]|h|r",

will indicate [Glyph of Lava] in the tldecode. language isn't an issue because you can simply change the german text to english and see the problem.

you can also generate other links that are not decoded properly. simply iterate thru the list of spells and add to the list each time (instead of reseting the list). you'll find lots of cases where the tldecode reports spells that it shouldn't.
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 12:24 PM  
galmok
A Defias Bandit

Forum posts: 2
File comments: 55
Uploads: 0
Do you intend to distribute LibTradeLinks as a stand-alone library? Also, I'd like to include LibTradeLinks with GuildAds to help cut down on the storage needed (and communication needed). LibTradeLinks could assist with that. :-)

Coupled with LibPeriodicTable, it is possible to get item-ids from the enchant-ids provided by LibTradeLinks :-)
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 08:36 AM  
Maldivia
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 31
Uploads: 5
Originally posted by Pirhotek
Okay, in my Cooking window I can clearly see that I know [Fish Feast] and do not know [Gigantic Feast]. I run:
simply shift-clicking the link after /tldecode should work

Originally posted by Pirhotek
In the resulting list, it has [Gigantic Feast] and no [Fish Feast]
Can I get you to try the following
/tl
Select cooking
Scroll down till you find Gigantic Feast and select it
Click Link
Check if Gigantic Feast is show in the tradeskill window that popped up

Afterwards try the same thing with Fish Feast (uncheck Gigantic Feast first)

Originally posted by Pirhotek
The wowwiki page on TradeSkillLinks implies data may be different on a per server basis.
the wiki page is wrong then. It's stored in the client.

The thing I'm considering right now, is if it's a language issue. I can see from the curseforge link, that the person is using the deDE version of the client, where as the data is generated from the enUS version. I tested with enUS and enGB in the beta, but found no differences there, so figured it would be the same across all languages, otherwise linking from one client to another wouldn't work.

Originally posted by Pirhotek
How do you get the data for your LiveData.lua?
The data files are generated from extracts from the client files.
Report comment to moderator  
Reply With Quote
Unread 02-25-09, 07:53 AM  
Pirhotek
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Okay, in my Cooking window I can clearly see that I know [Fish Feast] and do not know [Gigantic Feast]. I run:

/script DEFAULT_CHAT_FRAME:AddMessage(gsub(GetTradeSkillListLink(), "\124", "\124\124"))

and get the string I pass to /tldecode below

/tldecode |cffffd000|Htrade:51296:450:450:ADB664:2flmndhJWA8TD//7/f///HKVov4/D|h|Cooking|h|r


In the resulting list, it has [Gigantic Feast] and no [Fish Feast]

There is another example at
http://wow.curseforge.com/projects/g...which-are-not/

The wowwiki page on TradeSkillLinks implies data may be different on a per server basis. So maybe it works on your server, but not on mine (Lothar). If that is true, maybe the whole concept of this library is impossible. Or we have to generate different data files for each server.

How do you get the data for your LiveData.lua?
Report comment to moderator  
Reply With Quote
Unread 02-24-09, 04:35 PM  
Maldivia
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 31
Uploads: 5
Originally posted by Pirhotek
Yes, the data is definitely off. I use gsub(GetTradeSkillListLink(), "\124", "\124\124") to get a link string for my Cooking, then feed it back into /tldecode and it definitely is wrong. It lists Gigantic Feast which I don't know and doesn't list Fish Feast which I do know.
I have done various tests the last few days, but everything has come out as it should, with the output from this library matching the spells listed in the tradeskill frame.

Any other information you can give that might be of help?
Report comment to moderator  
Reply With Quote
Unread 02-20-09, 01:23 PM  
Pirhotek
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Yes, the data is definitely off. I use gsub(GetTradeSkillListLink(), "\124", "\124\124") to get a link string for my Cooking, then feed it back into /tldecode and it definitely is wrong. It lists Gigantic Feast which I don't know and doesn't list Fish Feast which I do know.
Report comment to moderator  
Reply With Quote
Unread 02-13-09, 07:35 PM  
orionshock
A Wyrmkin Dreamwalker
 
orionshock's Avatar
AddOn Author - Click to view AddOns

Forum posts: 50
File comments: 72
Uploads: 4
Hi, you really need a project for LTL

Im getting reports that LTL is decoding links improperly and adding things or missing things that should be there. ofc using latest availiable from here. More information to follow if people actually post tickets on guildcraft's ticket tracker with the proper information....
Report comment to moderator  
Reply With Quote
Unread 01-12-09, 04:17 PM  
lilsparky
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 117
File comments: 159
Uploads: 3
i'm using this lib in my gnomish yellow pages mod which stores tradeskill links. way handy.

i think a few support functions would be nice to add, tho:

1. convert from links of build ### to build ###. my mod saves links which means an update to the build could make those links confused. if i stored the build # of the links, then i could check it when i load and convert the stored links to the new version. i suspect it's doable with the current system, but a single function call to handle it would be nice.

2. bitwise logic operations would be nice, too. and/or/xor.

3. a simple full-link for each trade skill would be cool to provide.
Last edited by lilsparky : 01-12-09 at 04:18 PM.
Report comment to moderator  
Reply With Quote
Unread 01-03-09, 06:42 PM  
Maldivia
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 12
File comments: 31
Uploads: 5
Originally posted by dewin
When I did that it dumped a list of all of the tradeskills to the chat window, but didn't select anything in the window. I'll have to play with it more.
Heh, yeah - it appears it does now. Previously it would both dump and save.

I'll add a slash command for it with next version, just haven't had time over christmas to do anything (also missing updating to data from latest PTR).
Report comment to moderator  
Reply With Quote
Unread 12-29-08, 06:59 PM  
dewin
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 6
File comments: 14
Uploads: 2
Originally posted by Maldivia
/tldecode [link]
should do that for you
When I did that it dumped a list of all of the tradeskills to the chat window, but didn't select anything in the window. I'll have to play with it more.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: