[PHP] Furnidata maker

Results 1 to 14 of 14
  1. #1
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    [PHP] Furnidata maker

    Hello,

    I made this script because if i use the furnidata from habbo the hole catalogus is one mess.

    This helps me and the catalogus is fine :)


    It makes a furnidata.txt file dat you must use in your variable.
    PHP Code:

    <?php
        
    /*####################################
        ###        Furnidata maker         ###
        ###                                ###
        ###  Made by J.J.P.(c)             ###
        ###  Date: 18-8-2010 / 16:00       ###
        ###                                ###
        ###  Bugs please report it!        ###
        ###   @ragezone: Joopie            ###
        ###                                ###
        ####################################*/

        
    $dbuser "username";
        
    $dbpass "password";
        
    $dbhost "localhost";
        
    $database "database";


        
    $link mysql_connect($dbhost$dbuser$dbpass);    
        
    $dbname mysql_select_db($database$link);
                            
        
    $oldfurnidata file_get_contents("http://hotel-nl.habbo.com/gamedata/furnidata");
        
    $newfurnidata fopen("furnidata.txt""w+");
                                        
        
    $furnidata[] = "[";
        
        
    $result mysql_query("Select * From furniture");
        while (
    $row mysql_fetch_array($resultMYSQL_ASSOC))
        {
            
            
    $data[] = "[";
            
            
    $data[] = chr(34) . $row['type'] . chr(34) . ",";
            
    $data[] = chr(34) . $row['sprite_id'] . chr(34) . ",";
            
    $data[] = chr(34) . $row['item_name'] . chr(34) . ",";
            
            
    $strpos strpos($oldfurnidata$data[3]);
            
    $strlen strlen($data[3]);
            
    $substr substr($oldfurnidata, (($strpos $strlen) + 1));
            
    $strpos strpos($substr"]");
            
    $substr substr($substr0$strpos);
            
            
    $data[] = chr(34) . $substr;
            
            
    $data[] = "]";
            
            foreach(
    $data as $value)
            {
                
    $furnirow .= $value;
            }
            
            
    $furnidata[] = $furnirow;
            
            
    $furnirow null;
            
    $data null;
        }
        
        
    $furnidata[] = "]";
        
        foreach(
    $furnidata as $value)
        {
            
    $putsfurnidata .= $value;
        }
        
        
    fputs($newfurnidata$putsfurnidata);
        
    fclose($newfurnidata);
        
    mysql_close($link);
        
        
    $oldfurnidata null;
        
    $furnidata null;
        
    $putsfurnidata null;
    ?>
    Bugs found? report it here, send a pm.


  2. #2
    yerro Adde is offline
    MemberRank
    Feb 2010 Join Date
    none ur bizzLocation
    2,731Posts

    Re: [PHP] Furnidata maker

    This has already been released.. And you arent the creator off it.

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

    Re: [PHP] Furnidata maker

    Quote Originally Posted by Adde View Post
    This has already been released.. And you arent the creator off it.
    So what, I made it..., first ask that you say something that is not true bungler. -.-'

  4. #4
    Account Upgraded | Title Enabled! Sledmore is offline
    MemberRank
    Jun 2009 Join Date
    1,133Posts

    Re: [PHP] Furnidata maker

    Nice release mate, wont be using it though.

  5. #5
    Don't buff my pylon! Admiral-Speedy is offline
    MemberRank
    Jun 2008 Join Date
    CanadaLocation
    1,292Posts

    Re: [PHP] Furnidata maker

    Quote Originally Posted by joopie View Post
    So what, I made it..., first ask that you say something that is not true bungler. -.-'
    I know you didn't didn't make this, I have seen this released a while ago by someone else.

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

    Re: [PHP] Furnidata maker

    This would be called a re-release
    [p.s] why arent the moderators fixing any threads?[p.s]

  7. #7
    Member M3tt is offline
    MemberRank
    Aug 2010 Join Date
    United StatesLocation
    62Posts

    Re: [PHP] Furnidata maker

    Thanks for the rerelease Lol ;p

  8. #8
    Alpha Member Masius is offline
    MemberRank
    Dec 2007 Join Date
    1,580Posts

    Re: [PHP] Furnidata maker

    Quick note: The THANKS button is there for a reason. Use it instead of making a post with just "yo thanks" .

  9. #9
    Ex-Supervisor Sean is offline
    LegendRank
    Jun 2007 Join Date
    JerseyLocation
    4,097Posts

    Re: [PHP] Furnidata maker

    Nice work.

    @Above, stfu. That is classified as spam, and you thank him then -.- I only thank respected members noob.

  10. #10
    I'm back! iJay is offline
    MemberRank
    Nov 2008 Join Date
    Down Under ;)Location
    602Posts

    Re: [PHP] Furnidata maker

    Wow,

    I can't believe you are claiming this as your own...

    SO many people have released this before.

    You even added a little thing on your code...

    /*####################################
    ### Furnidata maker ###
    ### ###
    ### Made by J.J.P.(c) ###
    ### Date: 18-8-2010 / 16:00 ###
    ### ###
    ### Bugs please report it! ###
    ### @ragezone: Joopie ###
    ### ###
    ####################################*/

    LOL!

  11. #11
    Valued Member jordyhouben is offline
    MemberRank
    Aug 2009 Join Date
    EuropaLocation
    111Posts

    Re: [PHP] Furnidata maker

    I have that , But how you need add it to Sql?

  12. #12
    Proficient Member Hydros1 is offline
    MemberRank
    May 2010 Join Date
    156Posts

    Re: [PHP] Furnidata maker

    Quote Originally Posted by Masius View Post
    Quick note: The THANKS button is there for a reason. Use it instead of making a post with just "yo thanks" .
    Quick note: The mods are here to tell the users that they are wrong, no need for you to post something saying they are wrong and be completely offtopic! :)

    Ontopic: Great release, helped me :)

  13. #13
    Not active anymore! Winter is offline
    MemberRank
    Aug 2009 Join Date
    AustraliaLocation
    461Posts

    Re: [PHP] Furnidata maker

    Hey nice release! Mind giving us like a demo or something?

  14. #14
    I'm back! iJay is offline
    MemberRank
    Nov 2008 Join Date
    Down Under ;)Location
    602Posts

    Re: [PHP] Furnidata maker

    Typhoid, Use iLost's fix... It's much better as it just does it for you in your databse, rather then you having to use this furnidata.txt shit..

    Also: He didn't make this, he just added a stupid little copyright to it and claimed it as his work, this was originally released on some spanish forum.

    I'm not flaming, just stating the facts...



Advertisement