Log in

View Full Version : [PHP] WoWClass



ZAG
09-03-2007, 07:59 PM
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
include(PATH TO PHP FILE);
$wow = new WoWClass(COUNTRY, REALM, NAME);
?>
So it would be like this for example:


<?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
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.



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

Blinger1
10-03-2007, 09:42 AM
that looks cool :) well done :D

ZAG
10-03-2007, 09:43 AM
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

Blinger1
10-03-2007, 09:46 AM
it does look confusing.. but then again most php stuff looks confusing, +rep anyway :D

ZAG
10-03-2007, 09:49 AM
Thanks, I could make signatures with this like my Habbo ones. Might do later.

ZAG
10-03-2007, 10:07 AM
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.

Verrou
10-03-2007, 10:16 AM
Really inivative Tom! I love all your scripts!!
+rep for this one :D

ZAG
10-03-2007, 10:20 AM
Thanks :)))

Verrou
10-03-2007, 10:46 AM
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.

ZAG
10-03-2007, 10:47 AM
This is the only Habbo Profile link I have.
http://thomas.uk.to/projects/habboprofile.zip

Verrou
10-03-2007, 10:53 AM
That's the new one with habboFunctions.
Do you have just the original first profile script?

http://iat.evenhosting.com/profile/-1.
That one ^^^
http://iat.evenhosting.com/profile/-1.

ZAG
10-03-2007, 10:54 AM
Nope, I had to format my computer. Maybe someone else in the world will have it.

I have the old, old, Habbo Status script. Habbo Profile has always had habboFunctiond or habboClass.

http://etom.5gigs.com/habbostatus.zip

Anyway, back on topic. Im gonna start testing signatures etc. with WoWClass.

Blob
10-03-2007, 11:45 AM
Very good tom :D Get on MSN LOL!

ZAG
10-03-2007, 11:50 AM
The link will no longer work. I am doing something with it.

Tomm
10-03-2007, 12:24 PM
If anyone has this file could they send it to me, I really need it.

ZAG
10-03-2007, 01:40 PM
WoWClass is found on

http://wow.files.uk.to

Verrou
11-03-2007, 02:29 AM
Na, when you first released Habbo Profile with the badge window, it was all in one php doc, no habboFunctions.

Tomm
11-03-2007, 10:12 AM
I generated some documentation for you:

http://www.uploadz.co.uk/541wowclassdocuments.zip

ZAG
11-03-2007, 10:30 AM
Cool, Thanks very much +rep.

Ill add it to the website and include it in the ZIP :)

Tomm
11-03-2007, 10:36 AM
Cool, Thanks very much +rep.

Ill add it to the website and include it in the ZIP :)

No problem.

You might want to add some descriptions though.

ZAG
11-03-2007, 10:50 AM
OK Ill do that now. I was just redesigning the page.

Want to hide these adverts? Register an account for free!