1. Computing

How to read character information from the World of Warcraft servers.

By

Lets say that you, like me, are addicted to World of Warcraft, and you decide that you'd like to track the progress of your characters, or maybe your friends characters, on your personal website. You could hard code all that data, updating whenever you have the time, or with some simple Perl scripting magic, you could automate the whole process!

First, like all non-standard Perl modules, you will need to install Games::WoW::Armory from CPAN, and then you can include it at the top of your Perl programs with the use statement:

 use Games::WoW::Armory; 
After that, we create a new WoW object and do a simple search:
 my $wow = Games::WoW::Armory->new(); $wow->search_character( { realm => 'YOUR_REALM', character => 'YOUR_CHARACTER', country => 'SERVER_COUNTRY_CODE'} ); 
Once the lookup is complete, you can print out all kinds of interesting data about your character and use it to automatically track your progress:
 print $wow->character->name;
 print $wow->character->race;
 print $wow->character->level; 
There's even a guild search function for tracking your guilds members. Once again, why take the time to do things that can easily be automated with a little Perl scripting! Module Links:
  1. Games::WoW::Armory on CPAN
  2. Games::WoW::Armory Documentation
  3. Franck Cuny
  1. About.com
  2. Computing
  3. Perl
  4. Programming Perl
  5. Packages & Modules
  6. Perl Module Games::WoW::Armory - How to read character information from the World of Warcraft servers.

©2014 About.com. All rights reserved.