This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Blizzard Talent Url to WowHead
Return to board index
Post by
6454
This post was from a user who has deleted their account.
Post by
blademeld
Points left: 61
Level required: -
Points spent: 0 (0/0/0)
Level cap: 70
Import from Blizzard's talent calculator
Help
Summary
Printable version
There's an import command there >.>
Post by
pelf
Well, the JavaScript they use to parse the URL is there. You could always just read through it and do it yourself.
Post by
Malgayne
With the deprecation of Wowhead's standalone talent picker, I would like to be able to link directly to Wowhead after pulling character information from Armory.
dep·re·cate Pronunciation Key - Show IPA Pronunciation
–verb (used with object), -cat·ed, -cat·ing.
1. to express earnest disapproval of.
2. to urge reasons against; protest against (a scheme, purpose, etc.).
3. to depreciate; belittle.
Is that what you meant? =/
If you want to pull info from the armory, the best way to do it without being a programmer is to use the armory to import to Blizzard's talent calculator, and then copy/paste the URL into the "Import from Blizzard's talent calculator" dialog box.
Post by
pelf
While I imagine the word that matched his meaning was "decommision", the version of deprecate that came to mind was likely this one (rather than the classic definitions of the word):
http://en.wikipedia.org/wiki/Deprecate
In computer software standards and documentation, the term deprecation is used to indicate discouragement of usage of a particular software feature, usually because it has been superseded by a newer/better version. The deprecated feature still works in the current version of the software, but it may raise error messages or warnings recommending an alternate practice.
Post by
6454
This post was from a user who has deleted their account.
Post by
sunsean
The wowhead code does not directly translate a blizzard talent tree url into a wowhead url. Instead there is a function that parses the url into the tree. When a user clicks the
link to this tree
button, the tree information is read back out of the data structure. So although a direct translation could be made, at it does not.
My suggestion to wowhead is allow the talent tree page to take a blizzard url as an argument (or at least the important parts).
Post by
pelf
I admit I wasn't really going to try to sift through obfuscated javascript, so if it actually doesn't parse it to a Wowhead talent code string, then perhaps it would be nifty for you guys to do what sunsean said. ?talent= and ?blizztalent= ?
Post by
Corgan
As far as I can tell, it's split into two parts.
The first converts the class id into the first character of the talent code string. (rogue)
The code to convert the blizzard talent string is run after that. (0250030000000000000000000000000000000000000000000000000000000000000)
In the example above,
The class id would output 'f'.
The talent string would output 'Mxc'.
This put together with the talent url makes up the talent string.
http://www.wowhead.com/?talent=fMxc
I've created a function that takes two arguements, talent string and class name, and converts it into a wowhead talent string. I would gladly release it if Sko gives me the O.K.
Post by
Corgan
Sko gave me the OK, so here it is.
http://pastebin.com/f3670a1e0
BtW(blizz_talent_string, class_name); returns wowhead_talent_string
For example,
BtW('0250030000000000000000000000000000000000000000000000000000000000000', 'Rogue'); returns 'fMxc'
This can then be used to make a wowhead talent url by adding it to
http://www.wowhead.com/?talent=
Any questions, just ask here.
Post by
sunsean
Hey Corgan,
Awesome work, but I tried it out, and it didn't seem to work for me.
http://www.worldofwarcraft.com/info/classes/druid/talents.html?00000000000000000000050320213232210523125105503001000000000000
- turned into -
http://www.wowhead.com/?talent=00000000000VcbdGGdVfRtVxhz
~Sean
Post by
sunsean
Well it was a bit more complicated than just splitting off zeros, but alas I have recoded the function.
http://pastebin.com/f5051bfb7
(Uncompressed:
http://pastebin.com/f5d0dcfe3
)
Post by
Wogan
Thanks, that's very useful!
The forums munged the last link, it's actually
http://pastebin.com/f5d0dcfe3
Post by
6454
This post was from a user who has deleted their account.
Post by
352996
This post was from a user who has deleted their account.
Post Reply
This topic is locked. You cannot post a reply.