Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUT] How to make a Phoenix Habbo Retro [TUT]
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Caraghhh" data-source="post: 151218" data-attributes="member: 20471"><p><strong>If you dont know ANYTHING about Habbo Retros, this is not for you.</strong></p><p> </p><p><u>Downloads</u></p><p></p><p>PhoenixPHP - <span style="color: #000000">Please</span> buy Phoenix or find your own as I dont support cracked versions</p><p>Phoenix Emulator 3.7.1 - <span style="color: #000000">Please</span> buy Phoenix or find your own as I dont support cracked versions</p><p>XAMPP - <a href="http://xampp.en.softonic.com/" target="_blank"><u><span style="color: #0066cc">XAMPP - Download</span></u></a></p><p>SWF Pack - <a href="http://www.2shared.com/file/fCBjAKBg/gamedata.html?cau2=403tNull" target="_blank"><u><span style="color: #0066cc">2shared - download gamedata.rar</span></u></a></p><p>Database - <a href="http://www.mediafire.com/?vl4ncoau0j80y9q" target="_blank"><u><span style="color: #0066cc">http://www.mediafire.com/?vl4ncoau0j80y9q</span></u></a></p><p></p><p></p><p><strong>Okay, so first Install XAMPP. Then run XAMPP control panel, and next to apache and mysql there are start buttons. So start up apache and mysql then go to </strong><a href="http://localhost/security" target="_blank"><u><span style="color: #0066cc">http://localhost/security</span></u></a><strong> and set up a password (something easy to remember).</strong></p><p></p><p></p><p><strong>Now download PhoenixPHP and Phoenix Emulator 3.7.1. Go to where XAMPP is located and go inside htdocs and delete every file in there. Open up PhoenixPHP and extract all of the files inside into the htdocs folder. Now go to</strong> <a href="http://localhost/phpmyadmin" target="_blank"><u><span style="color: #0066cc">http://localhost/phpmyadmin</span></u></a><strong> and log in with the username root and the password you set up before. Go to databases, and create a new one. call it: "phoenixdb" (Without the quotes.) Download the Database in the downloads section and put it on your desktop. In phpmyadmin, go into your database and select the tab "Import". Then select "Choose file" Or "Browse" and a window will pop up, in the window, go to your desktop and double click (select) the Database (sql) then go down to the bottom of the page, and click go. After you did this, click the import tab once again, press "Browse" and select the "3.7.1 SQL" inside the Phoenix Emulator 3.7.1 folder. (Extract the folder from the archive to your desktop if you must first), then press go at the bottom of the page once again.</strong></p><p></p><p></p><p><strong>To setup the emulator, create a new folder on your desktop and name it whatever you like. Then, extract the folder inside the Emulator winrar file to your desktop (If you haven't already.) Open the emulator folder, Double click into "config.conf" (Open with wordpad or notepad) and edit it like this:</strong></p><p>Code:</p><p>[CODE]## Phoenix 3.0 System Configuration File</p><p> </p><p>## Licence Information</p><p>**************.username=JayPwnsAll</p><p>**************.password=Rulez</p><p> </p><p>## MySQL Configuration</p><p>db.hostname=localhost</p><p>db.port=3306</p><p>db.username=root</p><p>db.password=(The password you setup)</p><p>db.name=phoenixdb</p><p> </p><p>## MySQL pooling setup (controls amount of connections)</p><p>db.pool.minsize=5</p><p>db.pool.maxsize=100</p><p> </p><p>## Game TCP/IP Configuration</p><p>game.tcp.bindip=127.0.0.1</p><p>game.tcp.port=30000</p><p>game.tcp.conlimit=5000</p><p> </p><p>## Client configuration</p><p>client.ping.enabled=1</p><p>client.ping.interval=30000</p><p> </p><p>## MUS TCP/IP Configuration</p><p>mus.tcp.bindip=127.0.0.1</p><p>mus.tcp.port=30001</p><p>mus.tcp.allowedaddr=127.0.0.1</p><p> </p><p>## Console Configuration</p><p>emu.messages.connections=1</p><p>emu.messages.roommgr=1[/CODE]</p><p></p><p><strong>So put in your password, and the name of your database (This should be phoenixdb) but DON'T start the emulator yet</strong>.</p><p></p><p></p><p><strong>Go into your database again and select the SQL tab. Then put in this:</strong></p><p>Code:</p><p>[HTML]ALTER TABLE `permissions_ranks` ADD `cmd_masspixels` enum('1','0') NOT NULL DEFAULT '0';</p><p>ALTER TABLE `permissions_ranks` ADD `cmd_globalpixels` enum('1','0') NOT NULL DEFAULT '0';</p><p> </p><p>ALTER TABLE `permissions_users` ADD `cmd_masspixels` enum('1','0') NOT NULL DEFAULT '0';</p><p>ALTER TABLE `permissions_users` ADD `cmd_globalpixels` enum('1','0') NOT NULL DEFAULT '0';</p><p> </p><p>DROP TABLE IF EXISTS `permissions_vip`;</p><p>CREATE TABLE `permissions_vip` (</p><p> `cmdPush` enum('0','1') NOT NULL DEFAULT '1',</p><p> `cmdPull` enum('0','1') NOT NULL DEFAULT '1',</p><p> `cmdFlagme` enum('0','1') NOT NULL DEFAULT '1',</p><p> `cmdMimic` enum('0','1') NOT NULL DEFAULT '1',</p><p> `cmdMoonwalk` enum('0','1') NOT NULL DEFAULT '1'</p><p>) ENGINE=MyISAM DEFAULT CHARSET=latin1;</p><p> </p><p>INSERT INTO permissions_vip VALUES ('1', '1', '1', '1', '1');</p><p> </p><p>ALTER TABLE `rooms` ADD `achievement` int(11) NOT NULL DEFAULT '0';</p><p> </p><p>ALTER TABLE `bots` ADD `effect` int(2) NOT NULL DEFAULT '0';[/HTML]</p><p> </p><p><strong>Then press go, if that doesn't work then it probably means you already have the right things in your database, so don't worry about it. Now, go into your htdocs and open up the config file. Edit it like this:</strong></p><p>Code:</p><p>[HTML]<?php</p><p>$host = "localhost"; ////Most of the time this is Localhost////</p><p>$username = "root"; ////I think this is root..////</p><p>$password = "password"; ////You're mysql password////</p><p>$dbname = "phoenixdb"; ////You're mysql database////</p><p> </p><p>$sitename = 'Habbza'; ////This is you're hotel name!////</p><p>$gameport = '30000';</p><p>$musport = '30001';</p><p> </p><p>$twitter = 'Amir_Zz'; ////Do you have twitter?////</p><p>$radio = 'idk'; ////Fill in a .m3u radio////</p><p>$footer = 'Enjoy the hotel!'; ////You can put anything here for in the footer////</p><p>?>[/HTML]</p><p></p><p> </p><p><strong>Put in your password, and again the name of your database (phoenixdb). Tthen go to </strong><a href="http://localhost/phpmyadmin" target="_blank"><u><span style="color: #0066cc">http://localhost/phpmyadmin</span></u></a><strong> - Go into your database and go to the left and scroll down and find the table "users", click into it and then find your user and edit your rank to 7. Now refresh the hotel page and you should have housekeeping. Download the SWF pack i have in the downloads, Put that folder into your htdocs folder. Open up external_variables and press ctrl+h Then put in the "Find what" box "</strong>bobba.in<strong>" and In the replace box put in your ip from whatismyip.org. Also replace "</strong>yohabbohotel.com<strong>" and "</strong>%predefined%<strong>" with your IP.</strong></p><p></p><p></p><p><strong>Find a portforwarding tutorial as i cannot write one and forward ports 80 and 30000. Okay, now go into your housekeeping and change whatever you like, like the hotel name and stuff. And change the Server IP to your ip, And change the swf's like this:</strong></p><p><strong>SWF Path</strong> = <a href="http://(youripadress)/gamedata" target="_blank"><u><span style="color: #0066cc">http://(youripadress)/gamedata</span></u></a></p><p><strong>SWF</strong> = <a href="http://(youripadress)/gamedata/Habbo.swf" target="_blank"><u><span style="color: #0066cc">http://(youripadress)/gamedata/Habbo.swf</span></u></a></p><p><strong>External variables</strong> = <a href="http://(youripadress)/gamedata/external_variables.txt" target="_blank"><u><span style="color: #0066cc">http://(youripadress)/gamedata/external_variables.txt</span></u></a></p><p><strong>External texts</strong> = <a href="http://(youripadress)/gamedata/external_flash_texts.txt" target="_blank"><u><span style="color: #0066cc">http://(youripadress)/gamedata/external_flash_texts.txt</span></u></a></p><p></p><p></p><p><strong>Go back into phpmyadmin, select your database, look to the left again and scroll down until you find the table "cms_settings" click into it, once there, you have to edit everything that is there to your details. If you don't know how to do this post a comment, I will reply back teaching you how to configure this part. However if you do know, change all the links/settings to yours and then continue.</strong></p><p></p><p></p><p><strong>Once you have set all that up, You need to change just 1 more thing before you can get into your hotel. Go into htdocs/content and open up the "client.php" file. Replace the whole code with this:</strong></p><p>Code:</p><p>[HTML]<?php</p><p>define('USERNAME_REQUIRED', TRUE);</p><p>define('ACCOUNT_REQUIRED', TRUE);</p><p>include('../global.php');</p><p>?></p><p><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></p><p> </p><p><?php</p><p> </p><p>function rndchar()</p><p>{</p><p> $rnd = rand(65, 122);</p><p> </p><p> if(96 >= $rnd && $rnd >= 91)</p><p> {</p><p> $rnd = 95;</p><p> }</p><p> return chr($rnd);</p><p>}</p><p> </p><p>$str = "";//rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar();</p><p> </p><p>$ticket = "ST-".$str.rand(10000, 99999).$str."-".rand(100000, 999999).rand(100000, 999999);</p><p> </p><p>$username = $_SESSION['username'];</p><p>if(@$_GET['ticket'] && @$_GET['username'] && $users->UserPermission('hk_ext_login', $_SESSION['username']))</p><p>{</p><p> $username = $_GET['username'];</p><p> $ticket = $_GET['ticket'];</p><p>}</p><p>$query = mysql_query("UPDATE users SET auth_ticket = '$ticket' WHERE username = '$username'");</p><p>$query = mysql_query("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '$username'");</p><p>?></p><p> </p><p><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"></p><p><head></p><p> <meta http-equiv="content-type" content="text/html; charset=utf-8" /></p><p> <title><?php echo $sitename." - Client"; ?></title></p><p> </p><p> <script type="text/javascript"></p><p> var andSoItBegins = (new Date()).getTime();</p><p> var ad_keywords = "";</p><p> document.habboLoggedIn = true;</p><p> var habboName = "<?php echo $_SESSION['username']; ?>";</p><p> var habboReqPath = "<?php echo $core->CmsSetting('cms_url'); ?>";</p><p> var habboStaticFilePath = "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery";</p><p> var habboImagerUrl = "http://www.habbo.com/habbo-imaging/";</p><p> var habboPartner = "";</p><p> var habboDefaultClientPopupUrl = "<?php echo $core->CmsSetting('cms_url'); ?>/client";</p><p> window.name = "ClientWndw";</p><p> if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }</p><p> </script></p><p> </p><p> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/common.css" type="text/css" /></p><p> </p><p> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/libs2.js" type="text/javascript"></script></p><p> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/visual.js" type="text/javascript"></script></p><p> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/libs.js" type="text/javascript"></script></p><p> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/common.js" type="text/javascript"></script></p><p> </p><p> </p><p> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/habboflashclient.css" type="text/css" /></p><p> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script></p><p> </p><p> <script type="text/javascript"></p><p> FlashExternalInterface.loginLogEnabled = false;</p><p> FlashExternalInterface.logLoginStep("web.view.start");</p><p> </p><p> if (top == self) {</p><p> FlashHabboClient.cacheCheck();</p><p> }</p><p> var flashvars = {</p><p> "client.allow.cross.domain" : "1",</p><p> "client.notify.cross.domain" : "1",</p><p> "connection.info.host" : "<?php echo $core->CmsSetting('client_ip'); ?>",</p><p> "connection.info.port" : "<?php echo $core->CmsSetting('client_port'); ?>",</p><p> "site.url" : "<?php echo $core->CmsSetting('cms_url'); ?>",</p><p> "url.prefix" : "<?php echo $core->CmsSetting('cms_url'); ?>",</p><p> "client.reload.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client",</p><p> "client.fatal.error.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?flash_client_error",</p><p> "client.connection.failed.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?client_connection_failed",</p><p> "external.variables.txt" : "<?php echo $core->CmsSetting('client_variables'); ?>",</p><p> "use.sso.ticket" : "1",</p><p> "sso.ticket" : "<?php echo $ticket ?>",</p><p> "processlog.enabled" : "0",</p><p> "account_id" : "1",</p><p> "client.starting" : "Please wait while Habbza Hotel is loading",</p><p> "flash.client.url" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",</p><p> "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",</p><p> "has.identity" : "0",</p><p> "flash.client.origin" : "popup",</p><p> "token" : "<?php echo $ticket ?>",</p><p> "logout.disconnect.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&origin=%origin%",</p><p> "logout.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&reason=%reason%&origin=%origin%"</p><p> };</p><p> var params = {</p><p> "base" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/",</p><p> "allowScriptAccess" : "always",</p><p> "menu" : "false" </p><p> };</p><p> </p><p> if (!(HabbletLoader.needsFlashKbWorkaround())) {</p><p> params["wmode"] = "opaque";</p><p> }</p><p> </p><p> //no cach!!</p><p> </p><p> var clientUrl = "<?php echo $core->CmsSetting('client_habbo_swf'); ?>";</p><p> </p><p> swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/flash/expressInstall.swf", flashvars, params);</p><p> </p><p> window.onbeforeunload = unloading;</p><p> function unloading() {</p><p> var clientObject;</p><p> if (navigator.appName.indexOf("Microsoft") != -1) {</p><p> clientObject = window["flash-container"];</p><p> } else {</p><p> clientObject = document["flash-container"];</p><p> }</p><p> try {</p><p> clientObject.unloading();</p><p> } catch (e) {}</p><p> }</p><p> </script></p><p> </p><p> <!--[if IE 8]></p><p> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie8.css" type="text/css" /></p><p> <![endif]--></p><p> <!--[if lt IE 8]></p><p> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie.css" type="text/css" /></p><p> <![endif]--></p><p> <!--[if lt IE 7]></p><p> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie6.css" type="text/css" /></p><p> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/pngfix.js" type="text/javascript"></script></p><p> <script type="text/javascript"></p><p> try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</p><p> </script></p><p> </p><p> <![endif]--></p><p></head></p><p><body id="client" class="flashclient"></p><p> <div id="overlay"></div></p><p> <img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/images/page_loader.gif" style="position:absolute; margin: -1500px;" /></p><p> <div id="overlay"></div></p><p> <div id="client-ui" ></p><p> <div id="flash-wrapper"></p><p> <div id="flash-container"></p><p> <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none"></p><p> <div class="cbb clearfix"></p><p> <h2 class="title">Por favor, actualiza tu Flash Player a la ?ltima versi?n</h2></p><p> <div class="box-content"></p><p> <p>Puedes instalar y descargar Adobe Flash Player aqu?: <a href="http://get.adobe.com/flashplayer/">Instala Flash player</a>. M?s instrucciones para su instalaci?n aqu?: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">M?s informaci?n</a></p></p><p> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p></p><p> </div></p><p> </div></p><p> </div></p><p> <script type="text/javascript"></p><p> $('content').show();</p><p> </script></p><p> </div></p><p> </div></p><p> <div id="content" class="client-content"></div> </p><p> </div></p><p> <script type="text/javascript"></p><p> HabboView.run();</p><p> </script></p><p></body></p><p></html>[/HTML]</p><p> </p><p><strong>Once you have done that, start the Phoenix emulator and if it starts up fine, you can now enter your hotel! If you need any help please post a comment <img src="/styles/default/xenforo/smilies/emojione/smile.png" class="smilie" loading="lazy" alt=":)" title="Smile :)" data-shortname=":)" />.</strong></p></blockquote><p></p>
[QUOTE="Caraghhh, post: 151218, member: 20471"] [B]If you dont know ANYTHING about Habbo Retros, this is not for you.[/B] [U]Downloads[/U] PhoenixPHP - [COLOR=#000000]Please[/COLOR] buy Phoenix or find your own as I dont support cracked versions Phoenix Emulator 3.7.1 - [COLOR=#000000]Please[/COLOR] buy Phoenix or find your own as I dont support cracked versions XAMPP - [URL='http://xampp.en.softonic.com/'][U][COLOR=#0066cc]XAMPP - Download[/COLOR][/U][/URL] SWF Pack - [URL='http://www.2shared.com/file/fCBjAKBg/gamedata.html?cau2=403tNull'][U][COLOR=#0066cc]2shared - download gamedata.rar[/COLOR][/U][/URL] Database - [URL='http://www.mediafire.com/?vl4ncoau0j80y9q'][U][COLOR=#0066cc]http://www.mediafire.com/?vl4ncoau0j80y9q[/COLOR][/U][/URL] [B]Okay, so first Install XAMPP. Then run XAMPP control panel, and next to apache and mysql there are start buttons. So start up apache and mysql then go to [/B][URL='http://localhost/security'][U][COLOR=#0066cc]http://localhost/security[/COLOR][/U][/URL][B] and set up a password (something easy to remember).[/B] [B]Now download PhoenixPHP and Phoenix Emulator 3.7.1. Go to where XAMPP is located and go inside htdocs and delete every file in there. Open up PhoenixPHP and extract all of the files inside into the htdocs folder. Now go to[/B] [URL='http://localhost/phpmyadmin'][U][COLOR=#0066cc]http://localhost/phpmyadmin[/COLOR][/U][/URL][B] and log in with the username root and the password you set up before. Go to databases, and create a new one. call it: "phoenixdb" (Without the quotes.) Download the Database in the downloads section and put it on your desktop. In phpmyadmin, go into your database and select the tab "Import". Then select "Choose file" Or "Browse" and a window will pop up, in the window, go to your desktop and double click (select) the Database (sql) then go down to the bottom of the page, and click go. After you did this, click the import tab once again, press "Browse" and select the "3.7.1 SQL" inside the Phoenix Emulator 3.7.1 folder. (Extract the folder from the archive to your desktop if you must first), then press go at the bottom of the page once again.[/B] [B]To setup the emulator, create a new folder on your desktop and name it whatever you like. Then, extract the folder inside the Emulator winrar file to your desktop (If you haven't already.) Open the emulator folder, Double click into "config.conf" (Open with wordpad or notepad) and edit it like this:[/B] Code: [CODE]## Phoenix 3.0 System Configuration File ## Licence Information **************.username=JayPwnsAll **************.password=Rulez ## MySQL Configuration db.hostname=localhost db.port=3306 db.username=root db.password=(The password you setup) db.name=phoenixdb ## MySQL pooling setup (controls amount of connections) db.pool.minsize=5 db.pool.maxsize=100 ## Game TCP/IP Configuration game.tcp.bindip=127.0.0.1 game.tcp.port=30000 game.tcp.conlimit=5000 ## Client configuration client.ping.enabled=1 client.ping.interval=30000 ## MUS TCP/IP Configuration mus.tcp.bindip=127.0.0.1 mus.tcp.port=30001 mus.tcp.allowedaddr=127.0.0.1 ## Console Configuration emu.messages.connections=1 emu.messages.roommgr=1[/CODE] [B]So put in your password, and the name of your database (This should be phoenixdb) but DON'T start the emulator yet[/B]. [B]Go into your database again and select the SQL tab. Then put in this:[/B] Code: [HTML]ALTER TABLE `permissions_ranks` ADD `cmd_masspixels` enum('1','0') NOT NULL DEFAULT '0'; ALTER TABLE `permissions_ranks` ADD `cmd_globalpixels` enum('1','0') NOT NULL DEFAULT '0'; ALTER TABLE `permissions_users` ADD `cmd_masspixels` enum('1','0') NOT NULL DEFAULT '0'; ALTER TABLE `permissions_users` ADD `cmd_globalpixels` enum('1','0') NOT NULL DEFAULT '0'; DROP TABLE IF EXISTS `permissions_vip`; CREATE TABLE `permissions_vip` ( `cmdPush` enum('0','1') NOT NULL DEFAULT '1', `cmdPull` enum('0','1') NOT NULL DEFAULT '1', `cmdFlagme` enum('0','1') NOT NULL DEFAULT '1', `cmdMimic` enum('0','1') NOT NULL DEFAULT '1', `cmdMoonwalk` enum('0','1') NOT NULL DEFAULT '1' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO permissions_vip VALUES ('1', '1', '1', '1', '1'); ALTER TABLE `rooms` ADD `achievement` int(11) NOT NULL DEFAULT '0'; ALTER TABLE `bots` ADD `effect` int(2) NOT NULL DEFAULT '0';[/HTML] [B]Then press go, if that doesn't work then it probably means you already have the right things in your database, so don't worry about it. Now, go into your htdocs and open up the config file. Edit it like this:[/B] Code: [HTML]<?php $host = "localhost"; ////Most of the time this is Localhost//// $username = "root"; ////I think this is root..//// $password = "password"; ////You're mysql password//// $dbname = "phoenixdb"; ////You're mysql database//// $sitename = 'Habbza'; ////This is you're hotel name!//// $gameport = '30000'; $musport = '30001'; $twitter = 'Amir_Zz'; ////Do you have twitter?//// $radio = 'idk'; ////Fill in a .m3u radio//// $footer = 'Enjoy the hotel!'; ////You can put anything here for in the footer//// ?>[/HTML] [B]Put in your password, and again the name of your database (phoenixdb). Tthen go to [/B][URL='http://localhost/phpmyadmin'][U][COLOR=#0066cc]http://localhost/phpmyadmin[/COLOR][/U][/URL][B] - Go into your database and go to the left and scroll down and find the table "users", click into it and then find your user and edit your rank to 7. Now refresh the hotel page and you should have housekeeping. Download the SWF pack i have in the downloads, Put that folder into your htdocs folder. Open up external_variables and press ctrl+h Then put in the "Find what" box "[/B]bobba.in[B]" and In the replace box put in your ip from whatismyip.org. Also replace "[/B]yohabbohotel.com[B]" and "[/B]%predefined%[B]" with your IP.[/B] [B]Find a portforwarding tutorial as i cannot write one and forward ports 80 and 30000. Okay, now go into your housekeeping and change whatever you like, like the hotel name and stuff. And change the Server IP to your ip, And change the swf's like this:[/B] [B]SWF Path[/B] = [URL='http://(youripadress)/gamedata'][U][COLOR=#0066cc]http://(youripadress)/gamedata[/COLOR][/U][/URL] [B]SWF[/B] = [URL='http://(youripadress)/gamedata/Habbo.swf'][U][COLOR=#0066cc]http://(youripadress)/gamedata/Habbo.swf[/COLOR][/U][/URL] [B]External variables[/B] = [URL='http://(youripadress)/gamedata/external_variables.txt'][U][COLOR=#0066cc]http://(youripadress)/gamedata/external_variables.txt[/COLOR][/U][/URL] [B]External texts[/B] = [URL='http://(youripadress)/gamedata/external_flash_texts.txt'][U][COLOR=#0066cc]http://(youripadress)/gamedata/external_flash_texts.txt[/COLOR][/U][/URL] [B]Go back into phpmyadmin, select your database, look to the left again and scroll down until you find the table "cms_settings" click into it, once there, you have to edit everything that is there to your details. If you don't know how to do this post a comment, I will reply back teaching you how to configure this part. However if you do know, change all the links/settings to yours and then continue.[/B] [B]Once you have set all that up, You need to change just 1 more thing before you can get into your hotel. Go into htdocs/content and open up the "client.php" file. Replace the whole code with this:[/B] Code: [HTML]<?php define('USERNAME_REQUIRED', TRUE); define('ACCOUNT_REQUIRED', TRUE); include('../global.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?php function rndchar() { $rnd = rand(65, 122); if(96 >= $rnd && $rnd >= 91) { $rnd = 95; } return chr($rnd); } $str = "";//rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar().rndchar(); $ticket = "ST-".$str.rand(10000, 99999).$str."-".rand(100000, 999999).rand(100000, 999999); $username = $_SESSION['username']; if(@$_GET['ticket'] && @$_GET['username'] && $users->UserPermission('hk_ext_login', $_SESSION['username'])) { $username = $_GET['username']; $ticket = $_GET['ticket']; } $query = mysql_query("UPDATE users SET auth_ticket = '$ticket' WHERE username = '$username'"); $query = mysql_query("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '$username'"); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title><?php echo $sitename." - Client"; ?></title> <script type="text/javascript"> var andSoItBegins = (new Date()).getTime(); var ad_keywords = ""; document.habboLoggedIn = true; var habboName = "<?php echo $_SESSION['username']; ?>"; var habboReqPath = "<?php echo $core->CmsSetting('cms_url'); ?>"; var habboStaticFilePath = "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery"; var habboImagerUrl = "http://www.habbo.com/habbo-imaging/"; var habboPartner = ""; var habboDefaultClientPopupUrl = "<?php echo $core->CmsSetting('cms_url'); ?>/client"; window.name = "ClientWndw"; if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; } </script> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/common.css" type="text/css" /> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/libs2.js" type="text/javascript"></script> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/visual.js" type="text/javascript"></script> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/libs.js" type="text/javascript"></script> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/common.js" type="text/javascript"></script> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/habboflashclient.css" type="text/css" /> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script> <script type="text/javascript"> FlashExternalInterface.loginLogEnabled = false; FlashExternalInterface.logLoginStep("web.view.start"); if (top == self) { FlashHabboClient.cacheCheck(); } var flashvars = { "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "1", "connection.info.host" : "<?php echo $core->CmsSetting('client_ip'); ?>", "connection.info.port" : "<?php echo $core->CmsSetting('client_port'); ?>", "site.url" : "<?php echo $core->CmsSetting('cms_url'); ?>", "url.prefix" : "<?php echo $core->CmsSetting('cms_url'); ?>", "client.reload.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client", "client.fatal.error.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?flash_client_error", "client.connection.failed.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?client_connection_failed", "external.variables.txt" : "<?php echo $core->CmsSetting('client_variables'); ?>", "use.sso.ticket" : "1", "sso.ticket" : "<?php echo $ticket ?>", "processlog.enabled" : "0", "account_id" : "1", "client.starting" : "Please wait while Habbza Hotel is loading", "flash.client.url" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/", "user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02", "has.identity" : "0", "flash.client.origin" : "popup", "token" : "<?php echo $ticket ?>", "logout.disconnect.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&origin=%origin%", "logout.url" : "<?php echo $core->CmsSetting('cms_url'); ?>/client/disconnected.php?logout&reason=%reason%&origin=%origin%" }; var params = { "base" : "<?php echo $core->CmsSetting('client_swf_path'); ?>/", "allowScriptAccess" : "always", "menu" : "false" }; if (!(HabbletLoader.needsFlashKbWorkaround())) { params["wmode"] = "opaque"; } //no cach!! var clientUrl = "<?php echo $core->CmsSetting('client_habbo_swf'); ?>"; swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/flash/expressInstall.swf", flashvars, params); window.onbeforeunload = unloading; function unloading() { var clientObject; if (navigator.appName.indexOf("Microsoft") != -1) { clientObject = window["flash-container"]; } else { clientObject = document["flash-container"]; } try { clientObject.unloading(); } catch (e) {} } </script> <!--[if IE 8]> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie8.css" type="text/css" /> <![endif]--> <!--[if lt IE 8]> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie.css" type="text/css" /> <![endif]--> <!--[if lt IE 7]> <link rel="stylesheet" href="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/styles/ie6.css" type="text/css" /> <script src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/static/js/pngfix.js" type="text/javascript"></script> <script type="text/javascript"> try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {} </script> <![endif]--> </head> <body id="client" class="flashclient"> <div id="overlay"></div> <img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/images/page_loader.gif" style="position:absolute; margin: -1500px;" /> <div id="overlay"></div> <div id="client-ui" > <div id="flash-wrapper"> <div id="flash-container"> <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none"> <div class="cbb clearfix"> <h2 class="title">Por favor, actualiza tu Flash Player a la ?ltima versi?n</h2> <div class="box-content"> <p>Puedes instalar y descargar Adobe Flash Player aqu?: <a href="http://get.adobe.com/flashplayer/">Instala Flash player</a>. M?s instrucciones para su instalaci?n aqu?: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">M?s informaci?n</a></p> <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/957/web-gallery/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> </div> </div> </div> <script type="text/javascript"> $('content').show(); </script> </div> </div> <div id="content" class="client-content"></div> </div> <script type="text/javascript"> HabboView.run(); </script> </body> </html>[/HTML] [B]Once you have done that, start the Phoenix emulator and if it starts up fine, you can now enter your hotel! If you need any help please post a comment :).[/B] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUT] How to make a Phoenix Habbo Retro [TUT]
Top