Post by Eilonthay
I know this is all super old (I thought the thread needed a rez?), but if you're like me, transmogging became even more important as time passed, expansions came out, and more ugly gear was forced upon us. I couldn't make Router54's rather elegant and clean method work for me (I'm a total newbie at this and I don't understand the bit about pairs...), but after a quick experiment with the
Judgment Armor with the usual method listed by the opener, I discovered at least one thing (the other was touched upon) that wasn't mentioned here.
1. The older sets are easier to work with, due to the sequential numbering. I imagine they were numbered as such because it was a bright new world with less junk. Now we essentially have a flea market of miscellaneous items, some of which exist for some people before they were made unavailable and other things that are still in play today. It's a hodge-podge now and I haven't figured out how to work with the sets that aren't as neatly ordered. Maybe you'll be able to.
2. It is also very, very,
VERY important that when you figure out the sequential numbering of the items (by looking at the item number itself when you look at the address bar of the item's page), that you change the order of the words of said items as they appear in the script code. Otherwise, when you put your shiny bit of new code into the game, you'll have the list pop up, but nothing will link correctly--you'll have shoulders linking as boots, gloves as pants, complete chaos! Thankfully, an easy enough fix.
As an example, here is what my first attempt looked like for the
Judgment Armor. The item numbers run sequentially from 16951-16958:
/run local k,s=1,{"Cap","Spaulders","Pants","Bracers","Boots","Gloves","Belt","Tunic"}for i=16951,16958 do print("\124cff0070dd\124Hitem:"..i..":0:0:0:0:0:0:0:0\124h.."]\124h\124r")k=k+1 end
Looks good, right? Not quite. The numbering was right and I even had the set name correct (that Judgement part near the end), but testing it in-game had the headpiece linking as bracers, the shoulders as the belt, etc....EXCEPT for the gloves. The gloves worked perfectly because of where they fell in the number set. That was a fluke. So I broke out an Excel sheet to look at my links better (it was easier on my eyes) and matched things up as they should have been.
So instead of:
Cap, Spaulders, Pants, Bracers, Boots, Gloves, and Belt
I ended up with:
Bracers, Belt, Spaulders, Pants, Cap, Gloves, and Boots.
Attention to detail, totally important in this jumble of letters and punctuation. And don't delete the quotes when you change them, you'll just get an error message in WoW when you copy+paste the whole thing into the game.
My second attempt was exactly what I was looking for. No, it's not pretty to look at, like Router54's fine example, but it works and everything links up as it should.
/run local k,s=1,{"Bracers","Belt","Spaulders","Pants","Cap","Gloves","Boots","Tunic"}for i=16951,16958 do print("\124cff0070dd\124Hitem:"..i..":0:0:0:0:0:0:0:0\124h.."]\124h\124r")k=k+1 end
Is this easy? No. I found it to be rather tedious. Bear in mind that the only sort of coding I know is the most basic of HTML, so this was and still is extremely foreign to me. Even just finding the resources to get me to
this page took me way longer than it should have and as far as tutorials go, this was about it after a half-hour of searching through Wowhead and Google (don't make the same mistake I did and put "transmog set" into your search words, you will not get anywhere fast). If there's a more concise tutorial on Wowhead, it's buried somewhere in my blind spot and I've failed at seeing it. That's why I wish other people would work on this as well, people who can do this stuff better than me. I did find
this page helpful in understanding what some of those extra letters meant, so maybe you will, too.
Sorry for the wall of text, but I thought after my experience, there might be others interested in doing this sort of thing...as far as 'mogging goes, we're all in the same boat and I've found people to be rather pleasant and helpful about it. =D