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:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Ageless Houses?
Author Message
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #1
Ageless Houses?
I tried looking through the housing system the community scp housing system. I didn't see anywhere to make the house ageless? Is this feature possible with the default script and if so how ?
04-29-2012 11:03 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: Ageless Houses?
set that to zero:

HOUSE_DECAY_TIMER 20 //House decay timer, in days (0=Decay Off)

if you want just some of the houses ageless, you can set their tables timer to -1.
04-30-2012 06:57 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #3
RE: Ageless Houses?
I see a lot of people talk about "Tables" what do you mean its table? how would I for example view the house sign's table ?
04-30-2012 10:54 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #4
RE: Ageless Houses?
i mean the house sign.
04-30-2012 11:59 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Reflex
Journeyman
*

Posts: 130
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #5
RE: Ageless Houses?
Ah, ok.
Anyone else wondering.. Just set your house sign's timer to -1 and make sure your house.scp script has at least the ageless return

Code:
[Function HouseSys_GetHouseAge]
Local.MaxTime=<eval <DEF.scp.House_DecayTimer>*24*60*60>
If <TAG0.DEMOLITION_PENDING>
Return 1062497
Elseif <Eval (<Local.MaxTime>*99) / 100> < <Timer>
Return 1043010 //Like New
Elseif <Eval (<Local.MaxTime>*75) / 100> < <Timer>
Return 1043011 //Slightly
Elseif <Eval (<Local.MaxTime>*50) / 100> < <Timer>
Return 1043012 //Somewhat
Elseif <Eval (<Local.MaxTime>*25) / 100> < <Timer>
Return 1043013 //Fairly
Elseif <Eval (<Local.MaxTime>*4) / 100> < <Timer>
Return 1043014 //Greatly
Elseif <timer> == -1
RETURN 1043009 //Ageless
Else
Return 1043015 //Collapse
Endif
(This post was last modified: 04-30-2012 02:00 PM by Reflex.)
04-30-2012 01:56 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)