LibWowHeroes

LibWowHeroes is a library for the .NET framework that interfaces with WoW Heroes. WoW Heroes (http://www.wow-heroes.com) is an online character auditor for World of Warcraft.

Be sure to check out my other WoW-related projects:
LibWowArmory

Requirements

There are no requirements! This is a stand-alone library.

Version History

3.2.2 - 10/11/2009

  • Initial version.

Usage

Be sure to include a reference to LibWowHeroes in your class with the following declaration:
VB.Net:
Imports roncliProductions.LibWowHeroes
C#:
using roncliProductions.LibWowHeroes;


Steps:
  1. Query the WoW Heroes XML with your zone, realm, and guild name
  2. Extract data from the XmlGuild.Characters object

Query WoW Heroes

Querying WoW Heroes is very simple, just pass the zone in lower case, your server name, and your guild name. Note only US, Oceanic, and European servers are supported by WoW Heroes.
VB.Net:
Dim guild As New XmlGuild("us", "Korialstrasz", "Six Minutes To Release")
C#:
XmlGuild guild = new XmlGuild("us", "Korialstrasz", "Six Minutes To Release");

Extract the data

There are two ways to extract the data. One involves using LINQ:
VB.Net:
Dim character As XmlGuild.Character = guild.Characters.Where(Function(c) c.Name = "Roncli")
C#:
XmlGuild.Character character = guild.Characters.Where(c => c.Name == "Roncli");


The other involves looping through the XmlGuild.Characters collection:
VB.Net:
For Each character As XmlGuild.Character In guild.Characters
    ' Do some work here
Next
C#:
foreach (XmlGuild.Character character in guild.Characters) {
    // Do some work here
}


There is a fair amount of data you can obtain from an XmlGuild.Character object. It is suggested that you check out the included demo console application for ideas on how to use the data from WoW Heroes.

Last edited Jul 31, 2011 at 5:23 PM by roncli, version 3