He isn't specifying the hotel or user, from what I can see.
Printable View
He isn't specifying the hotel or user, from what I can see.
no that's because i've updated the file with a new script but i can't update my post.
http://del.jjr-servers.net/habbohead...&habbo=Delused
http://del.jjr-servers.net/habbohead...bo=*HABBONAME*
Try it with a beard on aswell :)
http://del.jjr-servers.net/habbohead...uk&habbo=Xedon
Doesn't work.
Edit: Habbo UK is on maintenance.
Not sure if your updated script does this, but I'm going to try and code a script which deletes the extra pixels around beards etc so that you can get JUST the head.
Habbo's down.Quote:
Doesn't work.
Added Smile and Fixed the HotelCode:<?
$height=43;
$page=file_get_contents("http://www.habbo.".$_GET['hotel']."/home/".$_GET['habbo']);
$imagingurl=split("<div class=\"profile-figure\">", $page);
$imagingurl=split("</div>", $imagingurl[1]);
$imagingurl=split("src=\"/habbo-imaging/avatar/", $imagingurl[0]);
$imagingurl=split("\" />", $imagingurl[1]);
$search=stripos($imagingurl[0], ".fa-");
if ($search !== false) {
$fa=split(".fa-", $imagingurl[0]);
$fa=split("-", $fa[1]);
$fa=$fa[0];
if($fa=="1208" || $fa=="1201"){
$height=$height+1;
} else if($fa=="1210"){
$height=$height+4;
} else if($fa=="1204"){
$height=$height+5;
} else if($fa=="1205"){
$height=$height+11;
}
}
header("Content-type: image/png");
$src_im=imagecreatefrompng("http://www.habbo.".$_GET['hotel']."/habbo-imaging/avatarimage?user=".$_GET['habbo']."&direction=3&head_direction=3&size=l&gesture=sml");
$des_im=imagecreate(35, $height);
imagecopyresized($des_im, $src_im, 0, 0, 15, 14, "35", $height, "35", $height);
imagepng($des_im);
imagedestroy($src_im);
imagedestroy($des_im);
?>
http://www.habbo.co.uk/habbo-imaging...ure=hd-185-1.c
http://del.jjr-servers.net/habbohead...bo=merseymusic seems to work pretty well :)
So, you just want the head, no sholders etc.
Do something to check the image on the users Habbo home, if their head matches something then a cut image that you've created and saved will load or something.
I remember starting work on a habbo imager not long after I completed the group badge script.
I phailed at it though haha all the numbers and stuff well confused me so i gave up.
Did attempt a head script aswell but also failed, if i can dig up my old files i'll post em.
I might give it another shot, it'll gimme something to do before the summer comes to a close and all my freedom is stole by some skank job i'll be doing.
I only know how to get the small heads.