Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Old Habbo Imager script

Junior Spellweaver
Joined
Jun 8, 2008
Messages
174
Reaction score
24
Hey guys,

I'm currently working with ZabboWeb and was wondering if anyone knew how to get the habbo imager to work with the old figures (in the format of ch=s02/53,51,44)?

I would prefer if it could be something like the one on puddihotel where it is all done by the username:


Thanks in advance,
eMagic
 
Developer
Joined
Nov 26, 2011
Messages
509
Reaction score
81
Everytime I'm saying to some people you have to make from your idea a story :D
Look. First we have to know if you have experience with php?
 
Upvote 0
Developer
Developer
Joined
Dec 11, 2010
Messages
2,956
Reaction score
2,683
Credits to Near.

PHP:
public function convertFigure($figure) {
	$start = 0;
	$parts = array();
	$increase_start = array(0, 5, 10, 15, 20);
   
	for($x = 0; $x < 10; $x++) {
			$length = (in_array($start, $increase_start)) ? 3 : 2;
			$parts[$x] = substr($figure, $start, $length);
			$start = $start + $length;
	}
   
	return 'hr-'.$parts[0].'-'.$parts[1].'.hd-'.$parts[2].'-'.$parts[3].'.ch-'.$parts[4].'-'.$parts[5].'.lg-'.$parts[6].'-'.$parts[7].'.sh-'.$parts[8].'-'.$parts[9];
}
 
Upvote 0
Junior Spellweaver
Joined
Jun 8, 2008
Messages
174
Reaction score
24
@ Premiumeye
Yes, I do although not as much as I wish :p

@ Quackster
Thanks mate,
Not sure about how to implement this though. Will try though :)

UPDATE:

@ Quackster

I have implemented this, and now when i do <?php echo($figure); ?> i get this coming out:
hr-ch=-s0.hd-2/5-3,.ch-51,-44.lg--.sh--

UPDATE #2:

@ Quackster

Thanks, My bad I used figure not app :) Fixed now
 
Last edited:
Upvote 0
Back
Top