Friend Stream

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 33
  1. #16
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: Friend Stream

    i only need the Avatar picture then i got it done :D

  2. #17
    Atomic Developer lab-hotel is offline
    MemberRank
    Apr 2007 Join Date
    261Posts

    Re: Friend Stream

    i only need the Avatar picture then i got it done :D
    You can create a (relatively) simple avatarimage script with PHP, clothes from Shockwave Habbo are ok, but for Flash Habbo you would need to extract the images and declare their sprites' registry point.

  3. #18
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: Friend Stream

    who can make this?

  4. #19
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: Friend Stream

    Quote Originally Posted by wichard View Post
    who can make this?
    I thought you already coded this? :S

  5. #20
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: Friend Stream

    Im bad in PHP?

    I coded everything, except that part.

  6. #21
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: Friend Stream

    Quote Originally Posted by wichard View Post
    Im bad in PHP?

    I coded everything, except that part.
    As you saw Dominic did preset figures for their gender. That would be an easy replacement for now.

  7. #22
    Account Upgraded | Title Enabled! George2000 is offline
    MemberRank
    Jul 2011 Join Date
    The NetherlandsLocation
    1,150Posts

    Re: Friend Stream

    I'm coding it now but I don't know the types to work I only can do achievements.

  8. #23
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Friend Stream

    I made a verry basic php script for the heads

    Code:
    <?php
    	//Base from http://www.php.net/manual/en/function.imagecopy.php
    
    	$base = 'http://www.habbo.nl/habbo-imaging/avatarimage?figure=';
    	$figure = $_GET['figure'];
    
    	// Create image instances
    	$src = imagecreatefrompng($base.$figure);
    	$dest = imagecreate(54, 62);
    	
    	// Copy
    	imagecopy($dest, $src, 0, 0, 6, 8, 54, 51);
    	
    	// Output and free from memory
    	header('Content-Type: image/gif');
    	imagegif($dest);
    	
    	imagedestroy($dest);
    	imagedestroy($src);
    ?>
    It will output something like this:
    Last edited by Joopie; 05-08-11 at 10:21 PM.

  9. #24

    Re: Friend Stream

    Quote Originally Posted by joopie View Post
    I made a verry basic php script for the heads

    Code:
    <?php
    	//Base from http://www.php.net/manual/en/function.imagecopy.php
    
    	$base = 'http://www.habbo.nl/habbo-imaging/avatarimage?figure=';
    	$figure = $_GET['figure'];
    
    	// Create image instances
    	$src = imagecreatefrompng($base.$figure);
    	$dest = imagecreate(54, 62);
    	
    	// Copy
    	imagecopy($dest, $src, 0, 0, 6, 8, 54, 51);
    	
    	// Output and free from memory
    	header('Content-Type: image/gif');
    	imagegif($dest);
    	
    	imagedestroy($dest);
    	imagedestroy($src);
    ?>
    It will output something like this:
    Tried something similar, wont work. If you pull an image from habbos avatar generator when using a hash (how habbo does it for the stream), then check the .gif data, you'll find something like this:

    GIF89a6>óÿÿÿB0#+V>.þÊ—õõõ‡c:Ë¡y˜yZô‘!þ
    (c) sulake
    If client checks for that, that's probably why it's breaking.

  10. #25
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Friend Stream

    Quote Originally Posted by Dominic A Gunn View Post
    Tried something similar, wont work. If you pull an image from habbos avatar generator when using a hash (how habbo does it for the stream), then check the .gif data, you'll find something like this:



    If client checks for that, that's probably why it's breaking.
    I see, I'll look at it

    ---------- Post added at 10:59 PM ---------- Previous post was at 10:38 PM ----------

    If I add the copyright it's fucked up xD

  11. #26

    Re: Friend Stream

    Fixed the image, do the following to get it yourself.

    .htaccess
    Code:
    RewriteEngine On
    RewriteRule c_images/friendstream/index.gif c_images/friendstream/index.php
    Create two files, in where-ever you want (update .htaccess to suit where-ever you put the file) index.gif, index.php. index.gif you can leave blank, inside index.php put

    PHP Code:
    <?php
        
    // Authors: Joopie, PEJump, Dominic Gunn
        
        
    $base 'http://www.habbo.com/habbo-imaging/avatarimage?figure=';
        
    $figure $_GET['figure'];

        
    // Create image instances
        
    $src imagecreatefrompng($base.$figure);
        
        
    imagealphablending($srctrue); // setting alpha blending on
        
    imagesavealpha($srctrue); // save alphablending setting (important)
        
        
    $dest imagecreate(5465);
        
        
    // Copy
        
    imagecopy($dest$src00685451);
        
        
    imagealphablending($desttrue); // setting alpha blending on
        
    imagesavealpha($desttrue); // save alphablending setting (important)
        
        // Output and free from memory
        
    header('Content-Type: image/png');
        
        
    $outputString  imagepng($dest);    
        
    $outputString .= "(c) sulake!"// copyright shit, should work![/B]
        
        
    echo $outputString;

        
    imagedestroy($dest);
        
    imagedestroy($src);
    ?>
    Request: 127.0.0.1/c_images/friendstream/index.gif?figure={figure}.gif
    Last edited by Dominic A Gunn; 06-08-11 at 12:53 AM.

  12. #27
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Friend Stream

    Uhm, Looks good...

  13. #28
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: Friend Stream

    Lovely to see some fantastic developers back again, thanks for that Myrax!!!
    Posted via Mobile Device

  14. #29
    Iron like a Lion in Zion! vLife is offline
    Super ModRank
    Apr 2009 Join Date
    The BahamasLocation
    3,788Posts

    Re: Friend Stream

    Quote Originally Posted by Roper View Post
    Lovely to see some fantastic developers back again, thanks for that Myrax!!!
    Posted via Mobile Device
    Fantastic work Myrax. We now have a great developer back.

  15. #30

    Re: Friend Stream

    where must i add the code that it works? i develope that too



Page 2 of 3 FirstFirst 123 LastLast

Advertisement