[TUT] How to add custom furni [Noob guide]

Status
Not open for further replies.

Philly

Member
Oct 1, 2011
60
20
I don't know if this type of tut has been made, i didn't look.
  • Difficulty: 4/10
  • Requirements: A little understanding of your CMS file locations | Must be hosting your own DCR's
  • Time taken: For this guide, around 10 minutes maybe, but once you know how to do it, it takes as little as 2 minutes.
Okay, here we go.
First off, find the customs you want to add, and for this tutorial, we will be adding 'Recolored petal patches' (By Joe)
The link can be found here: (But you don't need to access it, i will post the codes here)
So you will need to download his SWF pack, click here:
Okay, so the SWF's are basically just the 'furnis', these will be placed inside your hof_furni folder, shortly.
What you now need to do, is open whatever you use to access your database, it may be Navicat, PHPmyadmin etc.
If you are on PHP my admin: These should be the steps you have to follow
- Log in to your PHPmyadmin with your username and password​
- Click the database you use, on the left hand side​
- At the top, you will see an array of buttons, click the one called 'SQL'​

If you are using Navicat:
- Connect to your database​
- Double click any table, it doesn't matter which one​
- Then in the 'File' menu, select 'Query table'​
----------------------------------------------------------------------------​
Now copy the code below, and paste it into Navicat or PHPmyadmin​

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`) VALUES
(3000085, 'Orange Petal patch', 'orng_daffodil_rug', 's', 2, 2, 0, '1', '0', '1', 3000085, '1', '1', '1', '1', '1', 'default', 1, '0', '0'),
(3000086, 'Red Petal patch', 'rede_daffodil_rug', 's', 2, 2, 0, '1', '0', '1', 3000086, '1', '1', '1', '1', '1', 'default', 1, '0', '0'),
(3000087, 'Grey Petal patch', 'grey_daffodil_rug', 's', 2, 2, 0, '1', '0', '1', 3000087, '1', '1', '1', '1', '1', 'default', 1, '0', '0'),
(3000088, 'Gold Petal patch', 'gold_daffodil_rug', 's', 2, 2, 0, '1', '0', '1', 3000088, '1', '1', '1', '1', '1', 'default', 1, '0', '0'),
(3000089, 'Inverted Petal patch', 'invt_daffodil_rug', 's', 2, 2, 0, '1', '0', '1', 3000089, '1', '1', '1', '1', '1', 'default', 1, '0', '0'),
(3000090, 'Purple Petal patch', 'purp_daffodil_rug', 's', 2, 2, 0, '1', '0', '1', 3000090, '1', '1', '1', '1', '1', 'default', 1, '0', '0');

What this will do, will insert data into the 'furniture' table. You should click the 'Run' button in Navicat or the 'Go' button in PHPmyadmin. It will tell you if it was successfully added.​
Now you want to do the exact same thing, for the next set of codes.​

Code:
INSERT INTO `catalog_items` (`id`, `page_id`, `item_ids`, `catalog_name`, `cost_credits`, `cost_pixels`, `cost_snow`, `amount`) VALUES
(3000085, 94, '3000085', 'Orange Petal Patch', 1000, 0, 0, 28),
(3000086, 94, '3000086', 'Red Petal Patch', 1000, 0, 0, 28),
(3000087, 94, '3000087', 'Grey Petal Patch', 1000, 0, 0, 28),
(3000088, 94, '3000088', 'Gold Petal Patch', 1000, 0, 0, 28),
(3000089, 94, '3000089', 'Inverted Petal Patch', 1000, 0, 0, 28),
(3000090, 94, '3000090', 'Purple Petal Patch', 1000, 0, 0, 28);

You should change '94' to a page ID, (Look under the 'catalogue_pages' table).
----------------------------------------------------------------------------​
Now you have to deal with the 'furnidata'. If you know where your furnidata file is located, open it, or search for it. It will most likely be in your gamedata folder, then furnidata.txt, or in a folder called furnidata, then 1.txt Just search for the file and open it. At the very bottom of the file, paste this code:​

Code:
["s","3000085","orng_daffodil_rug","25824","0","2","2","0,0,0","Orange Petal Patch","Designed by Joe!","","-1","-1"],
["s","3000086","rede_daffodil_rug","25824","0","2","2","0,0,0","Red Petal Patch","Designed by Joe!","","-1","-1"],
["s","3000087","grey_daffodil_rug","25824","0","2","2","0,0,0","Grey Petal Patch","Designed by Joe!","","-1","-1"],
["s","3000088","gold_daffodil_rug","25824","0","2","2","0,0,0","Gold Petal Patch","Designed by Joe!","","-1","-1"],
["s","3000089","invt_daffodil_rug","25824","0","2","2","0,0,0","Inverted Petal Patch","Designed by Joe!","","-1","-1"],
["s","3000090","purp_daffodil_rug","25824","0","2","2","0,0,0","Purple Petal Patch","Designed by Joe!","","-1","-1"]]
Save and close.
----------------------------------------------------------------------------​
Now we just have to place the SWF's in the correct folder. They should have downloaded, open them. There should be 6 files inside. In your web folder, open the hof_furni folder, will most likely be under 'DCR -> hof_furni', then go to the folder called '25824', and place those files inside.​
You know that it should be placed inside the folder called 25824, because if you look back at code for the furnidata, you can see that it tells you to place the files in that folder. (Marked in red below)​
["s","3000089","invt_daffodil_rug","25824","0","2","2","0,0,0","Inverted Petal Patch" ...]​
----------------------------------------------------------------------------​
That is everything, you may have to go in the hotel on an admin account, type ':update_items' and ':update_catalogue' to view the customs. You may also need to clear your cache.
----------------------------------------------------------------------------​
The furniture that is shown in this tutorial, was not created by me. All credits to Joe for the codes, SWF's etc.
Credits:​
- Me: 60% for the tutorial​
- Joe: For the furniture​
 

Philly

Member
Oct 1, 2011
60
20
i dont have this folder 25824
Hey, I havn't really worked on hotels since December, and the new SWF pack i'm using doesn't have these numbered folders either.
If you post a topic in the , i'm sure someone will be able to help you, sorry.
 

Goofy

New Member
Apr 4, 2012
5
1
Very helpful and understanding to n00bs. I really like how you put the detail in it 10/10.
 
Status
Not open for further replies.

Users who are viewing this thread

Top