change decay of Lamp Post

Place for sharing your game modifications for Life is Feudal: Your Own

Tobasium
 
Posts: 13
Joined: 03 Nov 2016, 21:29

change decay of Lamp Post

Post by Tobasium » 26 Dec 2016, 20:29

Hi,

Could someone tell me how i can turn off decay of objects like Lap Post ID 166. I know it is possible but i don't know where in the database to change.

Thanks very much


Catall
Devoted Believer
 
Posts: 43
Joined: 07 Jul 2016, 11:04

Re: change decay of Lamp Post

Post by Catall » 05 Jan 2017, 14:15

You could add a sql-script in dump.sql that sets actual durability of an itemID back to durability.created.

Every Server-Restart, the durability will be set to item Maximum again.

I do not know any other way.

We did that for a decoration-sawmill once:
Code: Select all
UPDATE `lif_1`.`unmovable_objects` SET `Durability`= `CreatedDurability` WHERE `ObjectTypeID`=135;


Do not use that command while Server is up and running!

This can be done for several unmovable_objects and movable_objects.

Maybe there exists some Kind of pendent to "FastDecay" to use in cm_objects.xml. Have not tried that.


Tobasium
 
Posts: 13
Joined: 03 Nov 2016, 21:29

Re: change decay of Lamp Post

Post by Tobasium » 06 Jan 2017, 21:47

Thanks for your input. I have had the same idea and it works fine

Return to Game mods