Jump to content

How to remove building decay?


Recommended Posts

I also did just this but still experienced deterioration. Using Heidi SQL access your database and look for setDamageOnAge. You should have a file resembling this:

UPDATE `Object_DATA` SET `Damage`=0.1 WHERE `ObjectUID` <> 0 AND `CharacterID` <> 0 AND `Datestamp` < DATE_SUB(CURRENT_TIMESTAMP, INTERVAL 3 DAY) AND ( (`Inventory` IS NULL) OR (`Inventory` = '[]') )

Where is says `Damage`=0.1, set this to 0.

 

In addition, regarding the previous advice setting the value to -1 instead of 999 works if the `Damage`=0.1 isn't in your database's SQL files.

Link to comment
Share on other sites

  • 2 weeks later...

You will need to use Heidi SQL. It's a free database editor. Use the database login details provided by your host (you can find the username and password in the config file; use FileZilla to access the server files or PhP Admin provided by your host) to locate the setDamageOnAge file. It's where you'll also find the object_DATA file which contains your buildings data.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...