-
[Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
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:
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!', '', '', '', '', '', '');
Okay, first open Atom/Habbolatino/Butterstorm in C#. Go to CatalogItem.cs
- Find:
PHP Code:
internal readonly bool HaveOffer;
Add below:
PHP Code:
internal string ExtraData;
- Find:
PHP Code:
this.HaveOffer = ((string)Row["offer_active"] == "1");
Add below:
PHP Code:
this.ExtraData = (string)Row["extradata"];
- Find:
PHP Code:
if (Name.Contains("wallpaper_single") || Name.Contains("floor_single") || Name.Contains("landscape_single"))
{
string[] Analyze = Name.Split('_');
Message.AppendStringWithBreak(Analyze[2]);
}
Below add:
PHP Code:
else if (Name.Contains("rentable_bot"))
{
Message.AppendStringWithBreak(this.ExtraData);
}
Now open Catalog.cs
- 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");
Replace with:
PHP Code:
dbClient.setQuery("SELECT * FROM catalog_items_copy");
- Find:
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;
Below add:
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;
Now reload your emulator. Hopefully I haven't forgot anything. Please like if you like it and rep :)
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Already guessed this, but thanks! :D
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Everytime i´ll go on the Bots Page i´ll Disconnect - Can someone say me why?
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Can it me made for RevCMS > Phoenix
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Mixland
Can it me made for RevCMS > Phoenix
No, unless you edit SWF.
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
CrEcEp
Everytime i´ll go on the Bots Page i´ll Disconnect - Can someone say me why?
I Also Got The Same Problem :/
I Think Something's Is Missing
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
now it´s working you must edit the item_id and the id of the item then its working
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Ethis
Bot buying will be coded by me soon!
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
When will it be the purchase of bots?
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Ivanfut
When will it be the purchase of bots?
When I coded it (logic :))
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
I have Purchased Bots + Inventory Bots but when I have a Placed Bot i have a error:
Unhandled Packet 2087 (Its. OnEventHappened)
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Mininova
I have Purchased Bots + Inventory Bots but when I have a Placed Bot i have a error:
Unhandled Packet 2087 (Its. OnEventHappened)
Then the packet is not in the dictionary. You probably didn't code it.
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
I can´t create bots in the Databse when i go in the room with the bot it´ll disconnects me
Packeterror.log
Error in packet [1730] BODY: [0][0][0]v[0][0]????:
TokenID: 0System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Butterfly.HabboHotel.Rooms.RoomUser.Serialize(ServerMessage Message, Boolean gotPublicRoom) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\HabboHotel\Rooms\RoomUser.cs:Zeile 717.
bei Butterfly.HabboHotel.Rooms.RoomUserManager.DeployBot(RoomBot Bot, Pet PetData) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\HabboHotel\Rooms\RoomUserManager.cs:Zeile 127.
bei Butterfly.HabboHotel.Rooms.Room.DeployBot(RoomBot Bot) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\HabboHotel\Rooms\Room.cs:Zeile 477.
bei Butterfly.HabboHotel.Rooms.Room.InitBots() in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\HabboHotel\Rooms\Room.cs:Zeile 451.
bei Butterfly.HabboHotel.Rooms.RoomManager.LoadRoom(UInt32 Id) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\HabboHotel\Rooms\RoomManager.cs:Zeile 190.
bei Butterfly.Messages.GameClientMessageHandler.PrepareRoomForUser(UInt32 Id, String Password) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\Messages\Requests\Rooms.cs:Zeile 552.
bei Butterfly.Messages.GameClientMessageHandler.enterOnRoom() in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\Messages\Requests\Rooms.cs:Zeile 526.
bei Butterfly.Messages.StaticMessageHandlers.SharedPacketLib.enterOnRoom(GameClientMessageHandler handler) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\Messages\StaticMessageHandlers\SharedPacketLib.cs:Zeile 487.
bei Butterfly.Messages.StaticMessageHandlers.StaticClientMessageHandler.HandlePacket(GameClientMessageHandler handler, ClientMessage message) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\Messages\StaticMessageHandlers\StaticClientMessageHandler.cs:Zeile 28.
bei Butterfly.Messages.GameClientMessageHandler.HandleRequest(ClientMessage request) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\Messages\GameClientMessageHander.cs:Zeile 57.
bei Butterfly.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientMessage Message) in c:\Users\Florian\Desktop\Habbolatino Emulator (Based on Butterfly)\Emulator\Butterfly Emulator\HabboHotel\GameClients\GameClient.cs:Zeile 84.
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
I could not fix the emulator codes are all correct, but the db's something wrong when I try to connect the emulator it appears, and when I try to open the category of bots in the catalog gives disconnect
Sorry for my bad english, I'm brazilian ;)
http://imageshack.us/a/img337/1369/failgq.png
FAIL: http://imageshack.us/a/img337/1369/failgq.png
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
neto737
You did it wrong then, Mine works fine...
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Divide
You did it wrong then, Mine works fine...
I did everything according to the tutorial, but this error has already remade 3 times, but always with the same error!
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
You didn't make the items_base with ID = 9999999
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Divide
You didn't make the items_base with ID = 9999999
and as to leave base_items?
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
neto737
and as to leave base_items?
English please? :L
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Divide
English please? :L
could create a SQL codes and post for me to download please?
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Wow, I like this... I have not got the emulator its self on my computer but if I did, I would be using that as a base to expand the bots system. I like it <3 My opinion no one elses.
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
But these are only the codes for the catalog, there are no codes for inventory or for rooms?
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
djtroy39
No, unless you edit SWF.
Even then it's impossible. As the query needs to be changed. Don't think Aaron will hand you over the Source.
Quote:
Originally Posted by
neto737
What about that you read the error message. The first thing you will see is like; OH! I forgot something.
Emulator couldn't load the damn furniture item. So its your fault... Maybe you shouldn't forget stuff..
So that means he did 'not' fail or the codes failed, but you did.
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Have now finished my own complete Code :) (Catalog, Inventory, Placing, Walking, Talking, Taking :D)
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Mininova
Have now finished my own complete Code :) (Catalog, Inventory, Placing, Walking, Talking, Taking :D)
Share :D?
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
Mininova
Have now finished my own complete Code :) (Catalog, Inventory, Placing, Walking, Talking, Taking :D)
Are you going to share this with all of us?
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
Quote:
Originally Posted by
niels
omfg? <3_<3
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
If someone can share the actuall SWF (Habbo.com) so i can update the Packets, its no problem ;) (Rentable Bots not 100% in the Butterfly Revision "SWF")
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
every time I open the tab "Bots" falls hotel
-
Re: [Atom/Habbolatino] BOTs in catalogue [Requested by Divide]
have any a Bots Inventory fix?