-
[PHP] WoWClass
WoWClass is my second useful PHP class. It retrieves information from the new Armory part of the WoW site.
It has many functions to retrieve character data.
Heres a list of functions:
http://www.files.uk.to/uploads/21989list.txt
To initialise it you would use
PHP Code:
<?php
include(PATH TO PHP FILE);
$wow = new WoWClass(COUNTRY, REALM, NAME);
?>
So it would be like this for example:
PHP Code:
<?php
include('WoWClass.php');
$wow = new WoWClass('eu', 'Deathwing', 'Tyber');
?>
The country part is either eu or us
Then to use a function you would do something like this:
PHP Code:
<?php
include('WoWClass.php');
$wow = new WoWClass('eu', 'Deathwing', 'Tyber');
echo $wow->charRace();
?>
That would output the race of your character (Human, Troll, etc.)
Another function is the charActive() function, it checks to see if the character is active so it can retrieve the data.
PHP Code:
if($wow->charActive()){
//Do things
}else{
//Do things
}
Here is something I made using this:
http://www.thomas.uk.to/wow
(NOTE: Hunteer and Tyber are not my chars, I am just using them as an example)
If you want things added to WoWClass or if you do not understand post here please.
Download:
http://www.files.uk.to/uploads/11649WoWClass.zip
-
that looks cool :) well done :D
-
Thanks, I thought I would get no replies because it looks confusing.
There is now a basic website for WoWClass
http://wow.files.uk.to
-
it does look confusing.. but then again most php stuff looks confusing, +rep anyway :D
-
Thanks, I could make signatures with this like my Habbo ones. Might do later.
-
I have now added talent functions to it. So you can recieve the names of your talents and the amount of points assigned to them.
-
Really inivative Tom! I love all your scripts!!
+rep for this one :D
-
-
Tom can ya pm me the source code or zip file link for tis script.
http://iat.evenhosting.com/profile/-1.
It is the one with no habbo fuctions, the first profile script.
Thanx,
Ver.
-