[RELEASE] Badge Displays

Jerry

not rly active lol
Jul 8, 2013
1,956
522
Here I post the fix to upload in your hotels the badges displayers

In your emulator:
Find
Code:
case "roomads":
                    base.WriteString("roomads");
                    base.WriteInteger(2);
                    base.WriteString("events_header");
                    base.WriteString("");
                    base.WriteInteger(2);
                    base.WriteString("");
                    base.WriteString("");
                    //base.WriteInteger(1);
                    break;
Under it add
Code:
case "badge_display":
                    base.WriteString("badge_display");
                    base.WriteInteger(2);
                    base.WriteString(Page.LayoutHeadline);
                    base.WriteString(Page.LayoutTeaser);
                    base.WriteInteger(3);
                    base.WriteString(Page.Text1);
                    base.WriteString(Page.Text2);
                    base.WriteString(Page.TextDetails);
                    break;
Find
Code:
case InteractionType.mannequin:
                        ExtraData = "m" + Convert.ToChar(5) + "ch-215-92.lg-3202-1322-73" + Convert.ToChar(5) +"Default Mannequin";
Under it add
Code:
case InteractionType.badge_display:
                        break;
Find
Code:
gld_item,
        gld_gate,
Under it add
Code:
badge_display,
Find
Code:
case "bot1":
                    return InteractionType.bot1;
Under it add
Code:
case "badge_display":
                    return InteractionType.badge_display;
At last find
Code:
else if (this.GetBaseItem().InteractionType == InteractionType.roombg)
Above it add
Code:
else if (this.GetBaseItem().InteractionType == InteractionType.badge_display)
                {
                    Message.AppendInt32(0);
                    Message.AppendInt32(2);
                    Message.AppendInt32(4);
                    Message.AppendString("0");
                    Message.AppendString(this.ExtraData);
                    Message.AppendString("");
                    Message.AppendString("");
                }

Here are the swf:


Here the sqls:
catalog_items
Code:
INSERT INTO `catalog_items` (`id`, `page_id`, `item_ids`, `catalog_name`, `cost_credits`, `cost_belcredits`, `cost_duckets`, `amount`, `vip`, `achievement`, `song_id`, `limited_sells`, `limited_stack`, `offer_active`, `extradata`, `badge`, `flat_id`) VALUES
(6778421, 5004, '999888479', 'badge_display2', 5, 0, 1, 1, '0', 0, 0, 0, 0, '1', '', '', 12463),


(6778422, 5004, '999888480', 'badge_display', 5, 0, 1, 1, '0', 0, 0, 0, 0, '1', '', '', 12464),
(6778423, 5004, '999888481', 'badge_display4', 5, 0, 1, 1, '0', 0, 0, 0, 0, '1', '', '', 12466),
(6778424, 5004, '999888482', 'badge_display3', 5, 0, 1, 1, '0', 0, 0, 0, 0, '1', '', '', 12467),
(6778425, 5004, '999888483', 'badge_display5', 5, 0, 1, 1, '0', 0, 0, 0, 0, '1', '', '', 12471);
catalog_pages
Code:
INSERT INTO `catalog_pages` (`id`, `parent_id`, `caption`, `icon_color`, `icon_image`, `visible`, `enabled`, `min_rank`, `club_only`, `order_num`, `page_layout`, `page_headline`, `page_teaser`, `page_special`, `page_text1`, `page_text2`, `min_sub`, `page_text_details`, `page_text_teaser`, `vip_only`, `page_link_description`, `page_link_pagename`) VALUES
(5004, -1, 'Expositores de Placas', 1, 1051, '1', '1', 0, '0', 5, 'badge_display', '', '', ' ', '', ' ', 0, 'Click on an item for more information.', ' ', '0','','');
furniture
Code:
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`, `stack_multiplier`, `subscriber`, `effectid`, `height_adjustable`, `flat_id`, `revision`, `description`, `specialtype`, `canlayon`) VALUES
(999888479, 'Badge Display Case', 'badge_display2', 's', 2, 2, '1', '1', '0', '0', 5013, '1', '1', '1', '1', '1', 'badge_display', 1, '0', '0', '0', '0', '0', 0, '0', 12463, 45561, 'Show off your favourite badge!', 1, '0'),
(999888480, 'Badge Display Case', 'badge_display', 's', 1, 1, '1', '1', '0', '0', 5014, '1', '1', '1', '1', '1', 'badge_display', 1, '0', '0', '0', '0', '0', 0, '0', 12464, 45561, 'Show off your favourite badge!', 1, '0'),
(999888481, 'Badge Display Case', 'badge_display4', 's', 1, 1, '1', '1', '0', '0', 5015, '1', '1', '1', '1', '1', 'badge_display', 1, '0', '0', '0', '0', '0', 0, '0', 12466, 47260, 'Show off your favourite badge!', 1, '0'),
(999888482, 'Badge Display Case', 'badge_display3', 's', 1, 1, '1', '1', '0', '0', 5016, '1', '1', '1', '1', '1', 'badge_display', 1, '0', '0', '0', '0', '0', 0, '0', 12467, 45576, 'Show off your favourite badge!', 1, '0'),
(999888483, 'Badge Display Case', 'badge_display5', 's', 1, 1, '1', '1', '0', '0', 5017, '1', '1', '1', '1', '1', 'badge_display', 1, '0', '0', '0', '0', '0', 0, '0', 12471, 45615, 'Show off your favourite badge!', 1, '0');
In the catalog_pages you have to add in page_layout 'badge_display' and in Furniture you have to add in interaction_type 'badge_display'. You must to change the Structure of the table in the database.

Icon:
WcXAH9k.png


Sreenshot
bDMvik5.png


Credits:
Phserk
Custom
wafer
Enjoy it!
 

Jerry

not rly active lol
Jul 8, 2013
1,956
522
Oh shit, I just realized.. idk man.. Look in the source yourself.
 

Spoderman

y u do dis 2 me
Jun 30, 2013
209
37
Code:
case "roomads":
                    base.WriteString("roomads");
                    base.WriteInteger(2);
                    base.WriteString("events_header");
                    base.WriteString("");
                    base.WriteInteger(2);
                    base.WriteString("");
                    base.WriteString("");
                    //base.WriteInteger(1);
                    break;

This is not in InteractionType.cs
 

Kashi

Member
Jun 1, 2014
62
2
i've got phoenix emu,where's the InteractionType.cs file in my HabboHotel/Items? Help Me,I am newb.:(
 

Jerry

not rly active lol
Jul 8, 2013
1,956
522
It's for R63B only, you can use the badge column in catalog_items tablet structure.


Sent from my iPhone using Tapatalk
 

Users who are viewing this thread

Top