- Joined
- Aug 9, 2007
- Messages
- 410
- Reaction score
- 13
Hello there. Today is the day that I am quitting owning a Habbo retro. I will continue to maybe develop with Holograph and ION, but I will no longer be owning a hotel, therefore I will make all of my (terribly coded) snippets public.
I really don't care if this should be posted in the Holograph thread, people don't always look in the Holograph thread. I will offer no support for this snippet, if you can't get it to work with my instructions below then you must be an idiot.
Instructions to install
The snippet
Enjoy, TomSpit.
Moogly Edit...
Here's the SQL as posted by Ricky:
I really don't care if this should be posted in the Holograph thread, people don't always look in the Holograph thread. I will offer no support for this snippet, if you can't get it to work with my instructions below then you must be an idiot.
Instructions to install
- Copy the snippet to your clipboard
- Open your Holograph virtualuser.cs
- Search for "love shuffler" or somthing similar
- Under the "love shuffler" case, paste my one way door case
- Add the one way door to the catalogue, it should work buggily
The snippet
Code:
case "Ch": // Ch + ONE-WAY-DOOR-FURNI-ID (answer: Dx + WIRE(FURNI-ID) + I + WIRE(ROOM-UID-OF-CLICKER)) (sprite: 'one_way_door*#)
{
try
{
int itemID = Encoding.decodeVL64(currentPacket.Substring(2));
if (Room.floorItemManager.containsItem(itemID))
{
Rooms.Items.floorItem Item = Room.floorItemManager.getItem(itemID); // Find the itemID.
if (Item.Sprite == "one_way_door*1")
{
Room.sendData("Dx" + Encoding.encodeVL64(itemID) + "I" + Encoding.encodeVL64(Room.roomID)); // Opens the gate, with green light
Room.moveUser(this.roomUser, Item.X, Item.Y, true); // Walk into the item
Thread.Sleep(350);
if (Item.Z == 0)
Room.moveUser(this.roomUser, roomUser.X, roomUser.Y+1, true);
else if (Item.Z == 2)
Room.moveUser(this.roomUser, roomUser.X-1, roomUser.Y, true);
else if (Item.Z == 4)
Room.moveUser(this.roomUser, roomUser.X, roomUser.Y-1, true);
else if (Item.Z == 6)
Room.moveUser(this.roomUser, roomUser.X+1, roomUser.Y, true);
Thread.Sleep(350);
Room.sendData("Dx" + Encoding.encodeVL64(itemID) + "H" + Encoding.encodeVL64(Room.roomID));
}
}
}
catch { }
break;
}
Enjoy, TomSpit.
Moogly Edit...
Here's the SQL as posted by Ricky:
catalogue_pages
catalogue_itemsCode:INSERT INTO `catalogue_pages` (`indexid`, `minrank`, `indexname`, `displayname`, `style_layout`, `img_header`, `img_side`, `label_description`, `label_misc`, `label_moredetails`, `opt_bodyreplace`) VALUES (CIP, 7, 'One Way Doors', 'One Way Doors', 'ctlg_layout2', 'catalog_limited_headline1', 'catalog_limited_teaser1,', 'New SciFi Furni', NULL, 'Click on the item you want for more information.', 'NULL');
No problem.Code:INSERT INTO `catalogue_items` (`tid`, `catalogue_name`, `catalogue_description`, `catalogue_cost`, `typeid`, `length`, `width`, `top`, `name_cct`, `colour`, `catalogue_id_page`, `door`, `tradeable`, `recycleable`, `catalogue_id_index`) VALUES (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*1', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*2', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*3', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*4', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*5', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*6', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*7', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*8', '0,0,0', CIP, '0', '1', '1', CID), (TID, 'NAME', 'DESC', 5, 1, 1, 1, 0.00, 'one_way_door*9', '0,0,0', CIP, '0', '1', '1', CID);
Last edited by a moderator: