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;
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
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.