Keiz' Effect Stealer

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Keiz' Effect Stealer


    Hi y'all,
    you probably don't know me as I'm not quite busy in the international scene as I'm a Dutch developer.

    I made this cute CLI PHP tooll which automatically updates your effects.

    This tool is for latest Productions only, because it uses the new effectmap.xml.
    (Works on Plus Emulator Sledmore's edit)

    If you're not familiar with opening a .php file in CLI, here's a small tutorial;
    Spoiler:

    Right mouse click the effectstealer.php, click on something like "Open with..." (I'm not sure as my pc is Dutch), then something like "Select standard program". Then click More Options and scroll all the way down to "Try another app on this PC", or something like that. Then you just select your php.exe file which should be either at C:\xampp\php\php.exe or at C:\Program Files\PHP\ something, you'll find it. So yeah that's how to open a .php in CLI.


    What does it do exactly
    After you changed the settings ( by opening the file in Notepad++ and editing the settings ) ,

    you open the script this command line thing pops up telling you it either downloaded some effects or you're already up-to-date.
    What it does is, it checks Habbo's effectmap.xml, checks for every effect in it if you already have it in your production folder, if not download it.
    After downloading all missing effects it replaces your original effectmap.xml with Habbo's latest.

    After opening the script, what do I do
    Make sure you and your users clear their cache, and everything is updated automatically! Just do :effect {id}, and it should work instantly!
    ( If a new effect gets downloaded it tells you what id and name it has. )

    Screens
    Spoiler:


    Enjoying the new "hoverplank" :-)


    The code
    Safe this code as a .php file, and put it on your VPS, so that all new files get downloaded at your VPS' game files.
    I'm sure there are other ways to code this, but this is my way.

    Code:
    <?php    
        cli_set_process_title("Keiz' Effect Stealer v1");
        
        echo <<<KES
                      :::    ::: :::::::::: :::::::: 
                     :+:   :+:  :+:       :+:    :+: 
                    +:+  +:+   +:+       +:+         
                   +#++:++    +#++:++#  +#++:++#++   
                  +#+  +#+   +#+              +#+    
                 #+#   #+#  #+#       #+#    #+#     
                ###    ### ########## ########        
                     Keiz' Effect Stealer v1
    KES;
    
    
    echo PHP_EOL . PHP_EOL;
        
        sleep(1);
        
        
        //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/
        //\\//\\//                         KES Settings                            //\\//\\/
        //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/
        //\\//\\//                   Habbo's PRODUCTION folder                    //\\//\\/
        $hUrl = "http://images-eussl.habbo.com/gordon/PRODUCTION-201603071224-880429594/";
        //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/
        //\\//\\//         Your production folder, must be a PATH, not an URL        //\\//\\/
        $jUrl = "C:/xampp/htdocs/game/gordon/PRODUCTION-201601012205-226667486/";
        //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/
        //\\//\\//                        That's all settings                        //\\//\\/
        //\\//\\//             Recommended not to change anything below here        //\\//\\/
        //\\//\\//                         Made with ♥ by Keiz                        //\\//\\/
        //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/
    
        // Questions? Skype: keiz.er
        
        
        
        $hCon = file_get_contents($hUrl . "/effectmap.xml") or die("The Habbo gordon folder url doesn't work.");
        $hObj = simplexml_load_string($hCon);
        $i = 0;
        
        foreach($hObj as $a)
        {
            $hId = $a["id"];
            $hLib = $a["lib"];
            if(!file_exists($jUrl . "/" . $hLib . ".swf"))
            {
                file_put_contents($jUrl . "/" . $hLib . ".swf", file_get_contents($hUrl . "/" . $hLib . ".swf"));
                echo "Found and downloaded new effect: " . $hId . ": " . $hLib . ".swf" . PHP_EOL;
                $i++;
                continue;
            }
            else
            {
                continue;
            }
            
        }
        
        file_put_contents($jUrl . "/effectmap.xml", $hCon);
        
        echo PHP_EOL . PHP_EOL;
        if($i > 0)
            echo "Done, " . $i . " new effects have been downloaded!" . PHP_EOL;
        else
            echo "No new effects downloaded, you already are up-to-date!" . PHP_EOL;
        
        while(true)
        {
            // keeping the console open so you can read anything above and close it safely.
            sleep(999);
        }
    Enjoy!


    Love,
    Keiz



    Credits
    Keiz for writing the tool
    Some Dutch annoying kid who didn't want to share their up-to-date effectmap so he gave me the idea to write this lol.
    Last edited by Keiz; 16-03-16 at 08:29 AM.


  2. #2
    Retired Robot is offline
    MemberRank
    Apr 2015 Join Date
    EnglandLocation
    720Posts

    Re: Keiz' Effect Stealer

    This will be very handy indeed, great release!

  3. #3
    Valued Member ToxRetros is offline
    MemberRank
    Jul 2015 Join Date
    Habbo ReleasesLocation
    102Posts

    Re: Keiz' Effect Stealer

    Nice release mate, keep up the good work.

  4. #4
    Account Upgraded | Title Enabled! Alozi is offline
    MemberRank
    Nov 2014 Join Date
    SwedenLocation
    452Posts

    Re: Keiz' Effect Stealer

    Good too see that you are back with something new, this can come in hand for many!

  5. #5
    Valued Member MedinaJoshua is offline
    MemberRank
    Oct 2009 Join Date
    inetpub/wwwrootLocation
    114Posts

    Re: Keiz' Effect Stealer

    Doesn't work with me It just open then automatically exit.

  6. #6
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: Keiz' Effect Stealer

    Quote Originally Posted by MedinaJoshua View Post
    Doesn't work with me It just open then automatically exit.
    Meaning some error occured.
    Would you send your settings please.

  7. #7
    Valued Member Tom Lammers is offline
    MemberRank
    Dec 2012 Join Date
    Westerzicht, ZeLocation
    144Posts

    Re: Keiz' Effect Stealer

    Why is enable Hoverplank number 1?

    <effect id="1" lib="Hoverplank" type="fx" revision="61770"/>

    How do i this enable?

  8. #8
    Proficient Member Articuz is offline
    MemberRank
    Jan 2016 Join Date
    157Posts

    Re: Keiz' Effect Stealer

    Quote Originally Posted by Tom Lammers View Post
    Why is enable Hoverplank number 1?

    <effect id="1" lib="Hoverplank" type="fx" revision="61770"/>

    How do i this enable?
    Maybe :enable 1?

  9. #9
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: Keiz' Effect Stealer

    Quote Originally Posted by Tom Lammers View Post
    Why is enable Hoverplank number 1?

    <effect id="1" lib="Hoverplank" type="fx" revision="61770"/>

    How do i this enable?
    It is how Habbo made it, I'm just ripping their effectmap, however you can easily fix this by setting the id="1" to id="191"

  10. #10
    Proficient Member Articuz is offline
    MemberRank
    Jan 2016 Join Date
    157Posts

    Re: Keiz' Effect Stealer

    Quote Originally Posted by Keiz View Post
    It is how Habbo made it, I'm just ripping their effectmap, however you can easily fix this by setting the id="1" to id="191"
    OFT: Keiz PM pls.
    ONT: This is damn good!

    -Articuz

  11. #11
    Novice AndyK is offline
    MemberRank
    Mar 2016 Join Date
    1Posts

    Re: Keiz' Effect Stealer

    Well Keiz, I had expected something like that from you! 'M glad you're back!

  12. #12

    Re: Keiz' Effect Stealer

    Someone explain to me what this is?

  13. #13
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,375Posts

    Re: Keiz' Effect Stealer

    Code:
    //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/
    Is literally cancer to my eyes. Nice and helpful script though!

  14. #14
    Live Ocottish Sverlord Joopie is online now
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: Keiz' Effect Stealer

    Quote Originally Posted by Jonteh View Post
    Code:
    //\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\/
    Is literally cancer to my eyes. Nice and helpful script though!
    Hahaha, kinda overkill :p


    Btw, copy can also be used to download a file and save it somewhere (hence copy)!

    Code:
    file_put_contents($jUrl . "/" . $hLib . ".swf", file_get_contents($hUrl . "/" . $hLib . ".swf"))
    Could be something like:

    Code:
    if (!@copy($hUrl . "/" . $hLib . ".swf", $jUrl . "/" . $hLib . ".swf")) {
    // failure logic in here
    }
    Just anohter way of doing it :P

  15. #15
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: Keiz' Effect Stealer

    Quote Originally Posted by Joopie View Post
    Btw, copy can also be used to download a file and save it somewhere (hence copy)!

    Code:
    file_put_contents($jUrl . "/" . $hLib . ".swf", file_get_contents($hUrl . "/" . $hLib . ".swf"))
    Could be something like:

    Code:
    if (!@copy($hUrl . "/" . $hLib . ".swf", $jUrl . "/" . $hLib . ".swf")) {
    // failure logic in here
    }
    Just anohter way of doing it :P
    Ahh I didn't think of that, how dumb, thanks!



Page 1 of 2 12 LastLast

Advertisement