Post by Debillus
This is my second attempt at asking this. My first post got deleted within minutes after without explanation so I'm a little dubious about trying again as I haven't got the slightest clue about what I did wrong, or what rule I broke asking this.
If you are a moderator and You take offense to this, please have the courtesy to give me an explanation by email.
~~~
I have spent the better part of the last year and a half coding an Event Signup System to be used with the community/server I play on - in one of "those other MMOs", and now I'm looking to extent my system to include the other popular titles on the market, which of WoW obviously is one.
A part of my system is an Item database with sparse information about the loot picked up during an event. 5 pieces of information is saved about an item. 1) it's Name, 2) It's class (color), 3) It's category (gear, quest, tradeskill, etc.), 4) It's picture and 5) it's itemlink to be copied from the website, and pasted on the chatline in-game to let others take a look at that item you're otherwise talking about.
This is all working very fine for the original target game, where You have the ability to produce an itemlink into the chatline by shift-clicking the picture in the items examine box. If you copy this link (ctrl-c) you can simply paste the link into my system from where it will provide me with #1 and #5 from the list above. The user then just need to provide information about #2-4 which is done pretty fast via select boxes. The picture is grabbed by a client side program i had written for the purpose, able to browse through a screenshot and locate examineboxes and then uploading them to my server. On top of that I even had a program made that will grab the itemlinks themselves directly from the game log and provide a list of recent loots for the specific player in question, eliminating the need to copy/paste altogether.
Now concerning WoW I'm thinking, that with the thumbnail service this site provides, I don't need the images and the screenshot program, but can simply link to wowhead.com using the javascript applet provided. Item class and category will still be entered in manually which leaves me with the pasteable itemlink and the name of the item I still need to grab somehow. Unlike that other game, copy/pasting the itemlink doesn't provide you with more information than the Item name, in brackets. You don't get that item id that is needed to use the wowhead links.
<a href="
http://www.wowhead.com/?item=31015" class="q4">Skyshatter Cover</a>
In other words, how do I get a hold of "31015", when all I have is "Skyshatter Cover:" ?
/Deb
Post by Wanderingfox
http://www.wowhead.com/?item=Skyshatter%20Cover&xmlMight help you out greatly. Works for all items (and only items, no xml data exists for spells or quests at the moment).
Be warned that when searching by name it will pick up the first result. You can however do the same thing with item id though (ie.
http://www.wowhead.com/?item=31015&xml)
Don't forget to attribute wowhead someplace if you're using their xml heavily. It's only fair XD
Post by Debillus
Never mind =) ...
http://www.wowhead.com/?search=skyshatter+cover&xmlSeems to work just perfectly.. Thanks A LOT for your feedback Wanderingfox. I'm on my way from here. (And thank's Mod's for not killing my post ;-)
/Deb