The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick question about Houses
Author Message
yopa
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2013
Reputation: 0



Post: #1
Quick question about Houses
Hey all!

I patched my multi files successfully today. My new house is there and running just fine.

At this moment, my new house is at slot 0x51.

My question is, how can I put it in-game using sphere? Not talking about doors, signs or whatever, just the structure.

I have searched on sphere_item_multis_houses_ships and other files related to it and I failed to understand.

Am I missing something too obvious? i.e: [ITEMDEF 0x51]?

Thanks!
03-12-2013 04:22 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Quick question about Houses
You do not need the x in the itemdef. You do need to have the item scripted though to be able to call it.

Oh it's also [MULTIDEF blah] for houses... just for when you add on the missing bits later Wink

[Image: 2nis46r.jpg]
(This post was last modified: 03-12-2013 04:48 AM by Mordaunt.)
03-12-2013 04:46 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
yopa
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2013
Reputation: 0



Post: #3
RE: Quick question about Houses
Thanks Mordaunt.
However, I still failed to understand. Sad

My custom house is at the 00000051 slot on my multi.mul
I need to make it scripted, like below, so I can use it in game, for example: i_bla_house (giving me the placeable house structure)

Code:
[ITEMDEF 04064]
DEFNAME=i_multi_house_stone_plaster_small
Name=Small Stone and Plaster House
TYPE=T_MULTI
VALUE=43800
CATEGORY=Multis
SUBSECTION=Houses
DESCRIPTION=Small Stone and Plaster House
MULTIREGION=-3,-3,3,4
COMPONENT=i_door_wood,0,3,7
COMPONENT=i_sign_brass_2,2,4,5

Using ".add i_multi_house_stone_plaster_small" will give you the Small Stone and Plaster House structure, I need to do the same, but I cannot understand the connection from my multi.mul to the script.

What am I missing?

Thanks!
03-12-2013 06:23 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Quick question about Houses
Try

[MULTIDEF 051] instead of [ITEMDEF 04064]

[Image: 2nis46r.jpg]
03-12-2013 07:10 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Quick question about Houses
That 51 in the multi.mul it's added to the "starting" id number used for multis, in the script you posted
04000 it's the starting id, while 64 it's the multi "position" in the multi.mul (so you get 04064).

Anyway, i think you are using an old sphereversion(the prerelease i think) because all multi item were updated with the MULTIDEF defition(multi "starting" id number was moved to 08000)
(This post was last modified: 03-12-2013 07:29 AM by darksun84.)
03-12-2013 07:29 AM
Find all posts by this user Like Post Quote this message in a reply
yopa
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2013
Reputation: 0



Post: #6
RE: Quick question about Houses
Thanks Mordaunt and darksun84!

Used 04051 and everything worked just fine.

Another happy costumer! Tongue
03-12-2013 01:02 PM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #7
RE: Quick question about Houses
What kind of costumes do you make?
03-12-2013 01:23 PM
Find all posts by this user Like Post Quote this message in a reply
backtobasics
Apprentice
*

Posts: 8
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2013
Reputation: 0



Post: #8
RE: Quick question about Houses
(03-12-2013 01:23 PM)RanXerox Wrote:  What kind of costumes do you make?

Hilarious!
03-12-2013 11:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)