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 Releases
R63 to R63B Catalogue converter [PlusEMU]
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="Jerry" data-source="post: 265283" data-attributes="member: 35321"><p>Credits go to the amazing genius, HillBilly on another forum.</p><p>All I did was change it from bcstorm to plus emu/skybird P:</p><p></p><p>Well I use this on removed and well I thought why not share it since I'm kinda getting inactive due to exams and all, thought I could contribute something..</p><p></p><p>Well so I'm not sure that this has been released, but well I can assure you I edited it myself from Tdid's converters and so yeh , here are the codes..</p><p></p><p>Furniture table:</p><p>[PHP]<?php</p><p>/* */</p><p></p><p>$host = "localhost"; </p><p>$user = "root"; </p><p>$password = ""; </p><p>$database = "phoenix"; </p><p></p><p>mysql_connect($host, $user, $password) or die(mysql_error()); </p><p>mysql_select_db($database) or die(mysql_error()); </p><p></p><p>$sql = 'SELECT * FROM `furniture` ORDER BY `id` ASC';</p><p>$furni = mysql_query("$sql") or die(mysql_error());</p><p>echo "INSERT INTO `furniture`(`id`, `public_name`, `item_name`, `type`, `width`, `length`, `stack_height`, `can_stack`, `can_sit`, `is_walkable`, `sprite_id`, `allow_recycle`, `allow_trade`, `allow_marketplace_sell`, `allow_gift`, `allow_inventory_stack`, `interaction_type`, `interaction_modes_count`, `vending_ids`, `is_arrow`, `foot_figure`, `height_adjustable`, `effectM`, `effectF`, `subscriber`) VALUES ";</p><p>while ($output = mysql_fetch_array($furni)){</p><p>$name = mysql_real_escape_string("$output[public_name]");</p><p>?></p><p>('<?php echo "$output[id]"; ?>',</p><p>'<?php echo $name; ?>',</p><p>'<?php echo "$output[item_name]"; ?>',</p><p>'<?php echo "$output[type]"; ?>',</p><p>'<?php echo "$output[width]"; ?>',</p><p>'<?php echo "$output[length]"; ?>',</p><p>'<?php if</p><p>("$output[stack_height]" == 1)</p><p>{</p><p>echo"1.00";</p><p>}</p><p>elseif ("$output[stack_height]" == 2)</p><p>{</p><p>echo"2.00";</p><p>}</p><p>elseif ("$output[stack_height]" == 3)</p><p>{</p><p>echo"3.00";</p><p>}</p><p>elseif ("$output[stack_height]" == 4)</p><p>{</p><p>echo"4.00";</p><p>}</p><p>elseif ("$output[stack_height]" == 5)</p><p>{</p><p>echo"5.00";</p><p>}</p><p>elseif ("$output[stack_height]" == 6)</p><p>{</p><p>echo"6.00";</p><p>}</p><p>elseif ("$output[stack_height]" == 0)</p><p>{</p><p>echo"0.00";</p><p>}</p><p>else</p><p>{</p><p>echo "$output[stack_height]";</p><p>}</p><p>?>',</p><p>'<?php echo "$output[can_stack]"; ?>',</p><p>'<?php echo "$output[can_sit]"; ?>',</p><p>'<?php echo "$output[is_walkable]"; ?>',</p><p>'<?php echo "$output[sprite_id]"; ?>',</p><p>'<?php echo "$output[allow_recycle]"; ?>',</p><p>'<?php echo "$output[allow_trade]"; ?>',</p><p>'<?php echo "$output[allow_marketplace_sell]"; ?>',</p><p>'<?php echo "$output[allow_gift]"; ?>',</p><p>'<?php echo "$output[allow_inventory_stack]"; ?>',</p><p>'0',</p><p>'<?php echo "$output[interaction_type]"; ?>',</p><p>'<?php echo "$output[interaction_modes_count]"; ?>',</p><p>'<?php echo "$output[vending_ids]"; ?>',</p><p>'0',</p><p>'',</p><p>'0',</p><p>'0',</p><p>'0'),</p><p><br /></p><p><?php</p><p>}</p><p>?></p><p><br /></p><p><br /></p><p><br /></p><p><?php</p><p>echo "Done!";</p><p></p><p>?>[/PHP]</p><p>Catalog Items table:</p><p>[PHP]<?php</p><p>/* */</p><p></p><p></p><p></p><p>$host = "localhost";</p><p>$user = "root"; </p><p>$password = ""; </p><p>$database = "phoenix"; </p><p>set_time_limit(1000); </p><p></p><p>mysql_connect($host, $user, $password) or die(mysql_error()); </p><p>mysql_select_db($database) or die(mysql_error()); </p><p></p><p>$sql = 'SELECT * FROM `catalog_items` ORDER BY `catalog_items` . `id` ASC';</p><p>$catalog_items = mysql_query("$sql") or die(mysql_error()); </p><p>echo "INSERT INTO `catalog_items`(`id`, `page_id`, `item_ids`, `catalog_name`, `cost_credits`, `cost_duckets`, `cost_snow`, `amount`, `vip`, `achievement`, `song_id`, `limited_sells`, `limited_stack`, `offer_active`, `extradata`, `cost_pixels` , `badge`) VALUES "; </p><p>while ($output = mysql_fetch_array($catalog_items)){ </p><p>?></p><p>(</p><p>'<?php echo "$output[id]"; ?>',</p><p>'<?php echo "$output[page_id]"; ?>',</p><p>'<?php echo "$output[item_ids]"; ?>',</p><p>'<?php echo "$output[catalog_name]"; ?>',</p><p>'<?php echo "$output[cost_credits]"; ?>',</p><p>'<?php echo "$output[cost_pixels]"; ?>',</p><p>'0',</p><p>'<?php echo "$output[amount]"; ?>',</p><p>'0',</p><p>'0',</p><p>'0',</p><p>'0',</p><p>'0',</p><p>'1',</p><p>'',</p><p>'0',</p><p>''),<br /></p><p><?php</p><p>}</p><p>?></p><p><br /></p><p><br /></p><p><br /></p><p><?php</p><p>echo "Done";</p><p></p><p>?>[/PHP]</p><p>Well I'm sorry, I didn't make a page sql since it was easy to change the page columns by default so yeh .. To those who want to change from phoenix to plus and want to keep your current cata, you need to convert your items table aswell , leave me pm and I might make one for ya guys , well so anyway how to use this :</p><p></p><p>make a php file called whatever you want , mine for example is gloffin.php , so what you do is upload your phoenix sqls to a new table for phoenix and then link it to your .php file</p><p>[PHP]$host = "localhost"; </p><p>$user = "root"; </p><p>$password = ""; </p><p>$database = "phoenix";[/PHP]</p><p>that, put in your correct details and keep the database to your phoenix database , and if you go to your url bar and type in , for example localhost/gloffin.php you will be getting the sqls converted to plus.</p><p>Screenie:</p><p><img src="http://i.imgur.com/Jz3tMn4.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p>So yeah .. there you have it P: All you need is some experience and some brains.</p><p></p><p>Don't forget that in the end of the sql , change ',' to ';'</p><p></p><p>Rep maybe?</p><p></p><p>Credits to Tdid on another forum.</p><p>Credits goes to Vaulient for creating this thread on another forum.</p></blockquote><p></p>
[QUOTE="Jerry, post: 265283, member: 35321"] Credits go to the amazing genius, HillBilly on another forum. All I did was change it from bcstorm to plus emu/skybird P: Well I use this on removed and well I thought why not share it since I'm kinda getting inactive due to exams and all, thought I could contribute something.. Well so I'm not sure that this has been released, but well I can assure you I edited it myself from Tdid's converters and so yeh , here are the codes.. Furniture table: [PHP]<?php /* */ $host = "localhost"; $user = "root"; $password = ""; $database = "phoenix"; mysql_connect($host, $user, $password) or die(mysql_error()); mysql_select_db($database) or die(mysql_error()); $sql = 'SELECT * FROM `furniture` ORDER BY `id` ASC'; $furni = mysql_query("$sql") or die(mysql_error()); echo "INSERT INTO `furniture`(`id`, `public_name`, `item_name`, `type`, `width`, `length`, `stack_height`, `can_stack`, `can_sit`, `is_walkable`, `sprite_id`, `allow_recycle`, `allow_trade`, `allow_marketplace_sell`, `allow_gift`, `allow_inventory_stack`, `interaction_type`, `interaction_modes_count`, `vending_ids`, `is_arrow`, `foot_figure`, `height_adjustable`, `effectM`, `effectF`, `subscriber`) VALUES "; while ($output = mysql_fetch_array($furni)){ $name = mysql_real_escape_string("$output[public_name]"); ?> ('<?php echo "$output[id]"; ?>', '<?php echo $name; ?>', '<?php echo "$output[item_name]"; ?>', '<?php echo "$output[type]"; ?>', '<?php echo "$output[width]"; ?>', '<?php echo "$output[length]"; ?>', '<?php if ("$output[stack_height]" == 1) { echo"1.00"; } elseif ("$output[stack_height]" == 2) { echo"2.00"; } elseif ("$output[stack_height]" == 3) { echo"3.00"; } elseif ("$output[stack_height]" == 4) { echo"4.00"; } elseif ("$output[stack_height]" == 5) { echo"5.00"; } elseif ("$output[stack_height]" == 6) { echo"6.00"; } elseif ("$output[stack_height]" == 0) { echo"0.00"; } else { echo "$output[stack_height]"; } ?>', '<?php echo "$output[can_stack]"; ?>', '<?php echo "$output[can_sit]"; ?>', '<?php echo "$output[is_walkable]"; ?>', '<?php echo "$output[sprite_id]"; ?>', '<?php echo "$output[allow_recycle]"; ?>', '<?php echo "$output[allow_trade]"; ?>', '<?php echo "$output[allow_marketplace_sell]"; ?>', '<?php echo "$output[allow_gift]"; ?>', '<?php echo "$output[allow_inventory_stack]"; ?>', '0', '<?php echo "$output[interaction_type]"; ?>', '<?php echo "$output[interaction_modes_count]"; ?>', '<?php echo "$output[vending_ids]"; ?>', '0', '', '0', '0', '0'), <br /> <?php } ?> <br /> <br /> <br /> <?php echo "Done!"; ?>[/PHP] Catalog Items table: [PHP]<?php /* */ $host = "localhost"; $user = "root"; $password = ""; $database = "phoenix"; set_time_limit(1000); mysql_connect($host, $user, $password) or die(mysql_error()); mysql_select_db($database) or die(mysql_error()); $sql = 'SELECT * FROM `catalog_items` ORDER BY `catalog_items` . `id` ASC'; $catalog_items = mysql_query("$sql") or die(mysql_error()); echo "INSERT INTO `catalog_items`(`id`, `page_id`, `item_ids`, `catalog_name`, `cost_credits`, `cost_duckets`, `cost_snow`, `amount`, `vip`, `achievement`, `song_id`, `limited_sells`, `limited_stack`, `offer_active`, `extradata`, `cost_pixels` , `badge`) VALUES "; while ($output = mysql_fetch_array($catalog_items)){ ?> ( '<?php echo "$output[id]"; ?>', '<?php echo "$output[page_id]"; ?>', '<?php echo "$output[item_ids]"; ?>', '<?php echo "$output[catalog_name]"; ?>', '<?php echo "$output[cost_credits]"; ?>', '<?php echo "$output[cost_pixels]"; ?>', '0', '<?php echo "$output[amount]"; ?>', '0', '0', '0', '0', '0', '1', '', '0', ''),<br /> <?php } ?> <br /> <br /> <br /> <?php echo "Done"; ?>[/PHP] Well I'm sorry, I didn't make a page sql since it was easy to change the page columns by default so yeh .. To those who want to change from phoenix to plus and want to keep your current cata, you need to convert your items table aswell , leave me pm and I might make one for ya guys , well so anyway how to use this : make a php file called whatever you want , mine for example is gloffin.php , so what you do is upload your phoenix sqls to a new table for phoenix and then link it to your .php file [PHP]$host = "localhost"; $user = "root"; $password = ""; $database = "phoenix";[/PHP] that, put in your correct details and keep the database to your phoenix database , and if you go to your url bar and type in , for example localhost/gloffin.php you will be getting the sqls converted to plus. Screenie: [IMG]http://i.imgur.com/Jz3tMn4.png[/IMG] So yeah .. there you have it P: All you need is some experience and some brains. Don't forget that in the end of the sql , change ',' to ';' Rep maybe? Credits to Tdid on another forum. Credits goes to Vaulient for creating this thread on another forum. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
R63 to R63B Catalogue converter [PlusEMU]
Top