This is a PHP function that generates a VALID habbo figure. Why? It is useful for may things, for example: In register.php, if a user doesn't have flash, you can generate some random figures (like Habbo), or for the new v31 flash which shows a bunch of random habbos, you can use it to generate 30 figures, etc. You can even write a bot for HoloCMS that registers a bunch of random bots. The possibilities are endless. The example script provided generates 10 or whatever you define amount of random figures and their associated image.
To install, just make sure figuredata.xml is under the folder /xml/, the example script is just an example, you should integrate it with HoloCMS or whatever you are using it for, just please don't remove the credits (users won't see it, it's just so I get credits if you redistribute it (which is allowed) in your scripts)
How does it work? First it uses rand() to randomize club status and gender if not defined. Second, it goes through the list of settypes (from the figuredata XML) and if 1) it is required for the figure (head,body,legs), or 2) rand() returns 1 (for the extra stuff), then add it to the figure. 3) if the figure is colorable, then generate a random color from that set's palette.
Again, this is just a useless demo script until someone intergrates it with their script or makes something out of it. I'll look forward to your creations. (I already intergrated it with PHPRetro in register.php and v31 flash)