Item respawn in buildings

Orake3l

New member
Hello friends

I set in my dedi server an item respawn time for all 3 days

But now, after 2 weeks all shops and their shelves are empty.

Can any of you explain, what i did wrong?

<property name="LootRespawnDays"                value="3" />    

Thanks in advance

 
loot respawn only works for containers that don't change to the new state, open.

So shelves would not restock with loot with the Loot Respawn Days setting.  If you want shelves to restock, you need to enable the new function, chunk reset

 
Hello and thanks

Do you mean this entry?

<property name="MaxChunkAge"                    value="-1"/>                <!--

The number of in-game days which must pass since visiting a chunk before it will reset to its original state

Edit: i cant find a chunk reset

 
Last edited by a moderator:
I think -1 may mean it is disabled. You will probably have to have a positive number for it to work.

For example 2 for it to wait 2 days with no one visiting the chunk for it to reset.

 
Anything with a LCB block (Land claim block) will not reset.  Not sure about bedrolls though.

Note that the chunk reset will also reset any mines you started in that area.

 
Another option would be to change the loot containers

  <!-- cntStoreShelf_Shoes -->
  <lootcontainer name="shoesShelves" count="1" size="6,2" sound_open="UseActions/open_garbage" sound_close="silencefiller" loot_quality_template="qualBaseTemplate" destroy_on_close="empty">
    <item group="groupApparelShoesAll" />
  </lootcontainer>




Where it states destroy_on_close="empty", having a modlet that changes those from empty to false would keep them as a lootable container.  Then the loot respawn should affect them since they stay in that state

destroy_on_close options:

  • empty - changes to empty model, does not respawn loot (some models will destroy like birdnests)
  • true - after you loot, container destroys itself
  • false - should stay in lootable state
 
Back
Top