Theresia02
New Member
- Apr 14, 2019
- 2
- 0
i cant seem to fix my client its allways stuck at 76% and i have tryed everything it feels like. i dident want to end up asking for help but right now i think i really need help :.D
my emu works and is connected im using the plusemu from: retro ripper.com /plusemu
This is the brain.config,php file
And this is the client.php file
my emu works and is connected im using the plusemu from: retro ripper.com /plusemu
This is the brain.config,php file
PHP:
]<?php
if(!defined('BRAIN_CMS'))
{
die('Sorry but you cannot access this file!');
}
/* Database Setting */
$db['host'] = 'MY DOMAIN'; //Mysql's Host
$db['port'] = '3306'; //Mysql's port
$db['user'] = "MY USER"; //Mysql's user
$db['pass'] = '*****'; //Mysql's password
$db['db'] = "retro"; //Mysql's database
/* Emu Settings */
$config['hotelEmu'] = 'plusemu'; // plusemu // arcturus Hotel
/* Client Setting */
$hotel['emuHost'] = "MY HO"; //IP of VPS//IP of Proxy
$hotel['emuPort'] = "30000"; //Port of VPS//Port of Proxy
$hotel['staffCheckClient'] = false; //Enable the staff pin in the client (true) or disable it (false)
$hotel['staffCheckClientMinimumRank'] = 3; //Minium staff rank to get the staff pin in the client
$hotel['homeRoom'] = '23'; //Set the start room when you get in the hotel
$hotel['external_Variables'] = "http://MY DOMAIN/game/gamedata/external_variables.txt";
$hotel['external_Variables_Override'] = "http://MY DOMAIN/game/gamedata/override/external_override_variables.txt";
$hotel['external_Texts'] = "http://MY DOMAIN/game/gamedata/external_flash_texts.txt";
$hotel['external_Texts_Override'] = "http://MY DOMAIN/game/gamedata/override/external_flash_override_texts.txt";
$hotel['productdata'] = "http://MY DOMAIN/game/gamedata/productdata.txt";
$hotel['furnidata'] = "http://MY DOMAIN/game/gamedata/furnidata.xml";
$hotel['figuremap'] = "http://MY DOMAIN/game/gamedata/figuremap.xml";
$hotel['figuredata'] = "http://MY DOMAIN/game/gamedata/figuredata.xml";
$hotel['swfFolder'] = "http://MY DOMAIN/game/gordon/PRODUCTION-201701242205-837386173";
$hotel['swfFolderSwf'] = "http://MY DOMAIN/game/gordon/PRODUCTION-201701242205-837386173/Habbo.swf";
$hotel['onlineCounter'] = true; // Enable the user count in the client.
$hotel['diamonds.enabled'] = true; // Enable diamonds in the hotel.
/* Website Setting */
$config['hotelUrl'] = "http://MY DOMAIN";//Address of your hotel. Does not end with a "/"
$config['skin'] = "brain"; //Skin/template of your website
$config['lang'] = "en"; //Language of your website en/nl/es
$config['hotelName'] = "MY HOTELNAME"; //Name of your hotel
$config['favicon'] = "http://MY DOMAIN/favicon.ico";
$config['staffCheckHk'] = true; //Enable the staff pin in the housekeeping (true) or disable it (false)
$config['staffCheckHkMinimumRank'] = 4; //Minium staff rank to get the staff pin in the housekeeping
$config['maintenance'] = false; //Enable the maintenance of your website (true) or disable it (false)
$config['maintenancekMinimumRankLogin'] = 4; //Minium staff rank to login when the website is in maintenance
$config['groupBadgeURL'] = "http://MY DOMAIN/game/habbo-imaging/badge.php?badge=";
$config['badgeURL'] = "http://MY DOMAIN/game/c_images/album1584/";
$config['userLikeEnable'] = true; // Enable user likes
$config['newsCommandEnable'] = true; //Enable news commands
$config['newsCommandFilter'] = true; //Enable wordfilter on news commands (the filter use the db tabels wordfilter and wordfilter_characters)
$config['alertReferrer'] = false;
$config['alert'] = 'Please report all bugs and requests to user '; //Alert message. If you don't want a alert, you do leave it blank.
$config['brainversion'] = '1.9.1'; // Please do not change.
/* Email Settings */
$email['mailServerHost'] = 'smtp.gmail.com';
$email['mailServerPort'] = 587;
$email['SMTPSecure'] = 'TLS';
$email['mailUsername'] = '[email protected]';
$email['mailPassword'] = '*****';
$email['mailLogo'] = 'http://MY DOMAIN/templates/brain/style/images/logo/logo.png';
$email['mailTemplate'] = '/system/app/plugins/PHPmailer/temp/resetpassword.html';
/* Social settings */
$config['facebook'] = 'https://www.facebook.com/*****/';
$config['facebookEnable'] = false;
$config['twitter'] = 'https://twitter.com/twitter/';
$config['twitterEnable'] = true;
/* Register Setting */
$config['startMotto'] = "I love Habbo hotel"; //Register start motto
$config['credits'] = "10000";
$config['duckets'] = "20000";
$config['diamonds'] = "10";
$config['diamondsRef'] = "10";
$config['registerEnable'] = true;
$config['look'] = "hr-3163-1035.hd-3092-2.ch-215-63.lg-3320-1189-62.sh-3089-1408.ca-3219-110.wa-2001-0";
/* Google recaptcha Site Key
Go to this website to create a recaptcha Site Key: https://www.google.com/recaptcha/intro/index.html */
$config['recaptchaSiteKey'] = "6LdzewwUAAAAABkJ3vsdfCDca9qmLGDaWAHqMRtFEs2";
$config['recaptchaSiteKeyEnable'] = false;
/* Buy VIP Settings */
$config['vipCost'] = "25";
$config['vipRankToGet'] = "3";
$config['vipBadge'] = "vip";
switch($config['hotelEmu'])
{
case "arcturus":
$emuUse['user_wardrobe'] = 'users_wardrobe ';
$emuUse['ip_last'] = 'ip_current';
$emuUse['respect'] = 'respects_received';
$emuUse['user_stats'] = 'users_settings';
$emuUse['user_stats_user_id'] = 'user_id';
$emuUse['OnlineTime'] = 'online_time';
break;
case "plusemu":
$emuUse['user_wardrobe'] = 'user_wardrobe ';
$emuUse['ip_last'] = 'ip_last';
$emuUse['respect'] = 'Respect';
$emuUse['user_stats'] = 'user_stats';
$emuUse['user_stats_user_id'] = 'id';
$emuUse['OnlineTime'] = 'OnlineTime';
break;
default:
//Nothing
break;
}
And this is the client.php file
PHP:
<?php
staffCheck();
Game::sso('client');
Game::homeRoom();
?>
<html>
</body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?= $config['hotelName'] ?> - Hotel</title>
<script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/flashclient.js"></script>
<script src="/templates/brain/client/js/flash_detect_min.js"></script>
<script src="/templates/brain/client/js/browse.js"></script>
<script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
<link rel="stylesheet" href="/templates/brain/client/css/client.css" type="text/css">
<link rel="stylesheet" href="/templates/brain/client/css/no-flash.css" type="text/css">
</head>
<body>
<?php
if($hotel['onlineCounter'] == true)
{
?>
<script type="text/javascript">
$(document).ready(function(e) {
$.ajaxSetup({
cache:true
});
setInterval(function() {
$('#onlinecount').load('/onlinecountclient');
}, 8000);
$( "#onlinecount").click(function() {
$('#onlinecount').load('/onlinecountclient');
});
});
</script>
<div class="clientOnlineBox">
<div class="clientOnlineBoxTxt" id="onlinecount"><small><b><?= Game::usersOnline() ?></b> <?= $config['hotelName'] ?>'s online</small></div>
<img src="/templates/brain/client/images/onlineiconclient.png" style="width:29px;height:28px;ht; */position: absolute;margin-left: 130px;margin-top: -19px;">
</div>
<?php
}
?>
<center>
<div id="client-ui">
<div class="client" id="client"></div>
<div class="hb-container" id="area-container">
<h1 class="text" id="client-title"></h1>
<div id="no-flash" style="display: none;">
<div id="info-allow"></div>
<div id="info-allow-button" style="display: none; text-align: center;">
<a href="https://get.adobe.com/nl/flashplayer/" target="_blank" id="allow-flash-button-extern" class="client-reload__button" style="display: none;"><?=$lang['nbutton']?></a>
<button id="allow-flash-button-more" class="client-reload__button" style="display: none; background-color: #f44336;border-color: #d66d66;color: #fff;"><?=$lang['nbuttonerror']?></button>
</div>
<p id="info-flash">
<?=$lang['ninfoflash']?>
<br /><br />
<?=$lang['ninfoflashtray']?><br /><br />
<b style="font-weight: bold;"><?=$lang['ninfoflashpc']?></b>
</p>
<div id="info-flash-extra">
<ul>
<li>Download <a href="https://get.adobe.com/nl/flashplayer/">Adobe Flash Player</a> <?=$lang['nfree']?></li>
</ul>
<br />
<b style="font-weight: bold;"><?=$lang['nenableflash']?></b>
<ul>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-chrome.html">Google Chrome</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/install-flash-player-windows.html">Internet Explorer</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/flash-player/kb/flash-player-issues-windows-10-edge.html">Microsoft Edge</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-firefox.html">Firefox</a>
<?=$lang['nenableflashinfo']?>
</li>
<li><?=$lang['nenableflashsee']?> <a target="_blank" href="https://helpx.adobe.com/nl/flash-player/kb/enabling-flash-player-safari.html">Apple Safari</a>
<?=$lang['nenableflashinfo']?>
</li>
</ul>
</div>
</div>
</div>
<script>
var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
Client.addVariable("client.allow.cross.domain", "0");
Client.addVariable("client.notify.cross.domain", "1");
Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
Client.addVariable("use.sso.ticket", "1");
Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
Client.addVariable("processlog.enabled", "0");
Client.addVariable("client.starting", "<?= $config['hotelName'] ?> is loading...");
Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
Client.addVariable("flash.client.origin", "popup");
Client.addVariable("ads.domain", "");
Client.addVariable("diamonds.enabled", '<?= $hotel['diamonds.enabled'] ?>');
Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
Client.addParam('allowScriptAccess', 'always');
Client.addParam('wmode', "opaque");
Client.write('client');
FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
$(document).ready(function() {
if (!FlashDetect.installed) {
$("#disconnected, #hide-message,#client-support, #no-flash").show();
$("#client").hide();
if (bowser.chrome) {
$("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
$("#client-title").html('<?=$lang['ntitlechrome']?>');
$("#info-allow").html('<?=$lang['ntxtchrome']?>');
$("#info-allow-button, #allow-flash-button-extern").show();
} else if (bowser.msedge) {
$("#client-reload, #hide-message, #client-support, #info-flash, #info-flash-extra").hide();
$("#client-title").html('<?=$lang['ntitleedge']?>');
$("#info-allow").html('<?=$lang['ntxtedge']?>');
$("#info-allow-button, #allow-flash-button-extern").show();
}
$("#disconnected").show().css('z-index', 0);
$("#flash-wrapper").remove();
$(".roomenterad-habblet-container").hide();
connection = false;
}
});
$('#allow-flash-button-extern').click(function(event){
if(bowser.chrome){
$("#info-allow").html('<?=$lang['ntxtchromeerror']?>');
event.stopPropagation();
}
if(bowser.msedge){
$("#info-allow").html('<?=$lang['ntxtedgeerror']?>');
event.stopPropagation();
}
$("#allow-flash-button-extern").hide();
$("#allow-flash-button-more").show();
});
$('#allow-flash-button-more').click(function(){
if(bowser.chrome){
location.href="https://get.adobe.com/nl/flashplayer/";
}
});
</script>
</center>
</body>
</html>