Hello. Divide asked me to take a look for the BOTs in catalogue. After some research I finally found it.
How it will look like:
http://i.imgur.com/vbPmp.png
Before you start: All the SQL queries you need:
Okay, first open Atom/Habbolatino/Butterstorm in C#. Go to CatalogItem.cs
- Find:
Add below:
- Find:
Add below:
- Find:
Below add:
Now open Catalog.cs
- Find:
Replace with:
- Find:
Below add:
Now reload your emulator. Hopefully I haven't forgot anything. Please like if you like it and rep :)
How it will look like:
http://i.imgur.com/vbPmp.png
Before you start: All the SQL queries you need:
PHP Code:
ALTER TABLE `catalog_items_copy` ADD `extradata` VARCHAR( 255 ) NOT NULL
PHP Code:
INSERT INTO `catalog_items_copy` (
`id` ,`page_id` ,`item_ids` ,`catalog_name` ,`cost_credits` ,`cost_pixels` ,`amount` ,`cost_crystal` ,`cost_oude_belcredits` ,`song_id` ,`limited_stack` ,`limited_sells` ,`offer_active` ,`extradata`)
VALUES (NULL , '923', '99999999', 'rentable_bot_visitor_log', '20', '0', '1', '0', '0', '0', '0', '0', '1', 'hr-893-42.hd-185-8.ch-255-86.lg-275-64.sh-295-78.ea-1406.fa-1212');
PHP Code:
INSERT INTO `items_base` (`item_id`, `sprite_id`, `public_name`, `item_name`, `type`, `width`, `length`, `height`, `allow_stack`, `allow_walk`, `allow_sit`, `allow_recycle`, `allow_trade`, `allow_marketplace_sell`, `allow_gift`, `allow_inventory_stack`, `interaction_type`, `cycle_count`, `vending_ids`) VALUES ('99999999', '0', 'rentable_bot_visitor_log', 'rentable_bot_visitor_log', 'r', '1', '1', '0.0', '0', '0', '0', '0', '0', '0', '0', '0', 'default', '0', '0');
PHP Code:
ALTER TABLE `catalog_pages` CHANGE `page_layout` `page_layout` ENUM( 'default_3x3', 'club_buy', 'frontpage', 'spaces', 'recycler', 'recycler_info', 'recycler_prizes', 'trophies', 'plasto', 'marketplace', 'marketplace_own_items', 'pets', 'pets2', 'spaces_new', 'soundmachine', 'bots' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'default_3x3'
PHP Code:
INSERT INTO `droppy`.`catalog_pages` (`id`, `parent_id`, `caption`, `icon_color`, `icon_image`, `visible`, `enabled`, `min_rank`, `club_only`, `coming_soon`, `order_num`, `page_layout`, `page_headline`, `page_teaser`, `page_special`, `page_text1`, `page_text2`, `page_text_details`, `page_text_teaser`, `text3`, `link`, `mobile_frntpg`) VALUES ('923', '-1', 'BOTs', '11', '65', '1', '1', '1', '0', '0', '4', 'bots', 'bots', 'bots_teaser', '', 'Buy now your bots. Oh wait.. djtroy39 will code buying of bots VERY SOON!', '', '', '', '', '', '');
- Find:
PHP Code:
internal readonly bool HaveOffer;
PHP Code:
internal string ExtraData;
PHP Code:
this.HaveOffer = ((string)Row["offer_active"] == "1");
PHP Code:
this.ExtraData = (string)Row["extradata"];
PHP Code:
if (Name.Contains("wallpaper_single") || Name.Contains("floor_single") || Name.Contains("landscape_single"))
{
string[] Analyze = Name.Split('_');
Message.AppendStringWithBreak(Analyze[2]);
}
PHP Code:
else if (Name.Contains("rentable_bot"))
{
Message.AppendStringWithBreak(this.ExtraData);
}
- Find:
PHP Code:
dbClient.setQuery("SELECT id,item_ids,catalog_name,cost_credits,cost_pixels,amount,page_id,cost_crystal,cost_oude_belcredits,song_id,limited_sells,limited_stack,offer_active FROM catalog_items_copy");
PHP Code:
dbClient.setQuery("SELECT * FROM catalog_items_copy");
PHP Code:
case "club_buy":
PageData.AppendString("vip_buy"); // layout
PageData.AppendInt32(2);
PageData.AppendString("ctlg_buy_vip_header");
PageData.AppendString("ctlg_gift_vip_teaser");
PageData.AppendInt32(0);
break;
PHP Code:
case "bots":
PageData.AppendStringWithBreak(Page.Layout);
PageData.AppendInt32(3);
PageData.AppendStringWithBreak(Page.LayoutHeadline);
PageData.AppendStringWithBreak(Page.LayoutTeaser);
PageData.AppendStringWithBreak(Page.LayoutSpecial);
PageData.AppendInt32(3);
PageData.AppendStringWithBreak(Page.Text1);
PageData.AppendStringWithBreak(Page.TextDetails);
PageData.AppendStringWithBreak(Page.TextTeaser);
break;