Jump to content
C4-timah

Force Loot to Despawn

Recommended Posts

Instead of changing nominal and min values and waiting a couple of days for the server to eventually (if at all) to despawn the extra massive amounts of loot, is there a faster way to specifically remove loot by force? Then update the nominal/min values with the desired lower values for desired amount of fresh spawned loot items on Chenarus?

Share this post


Link to post
Share on other sites

Well, I just thought of this, dunno if it will work or not:

  1. create a dummy types.xml file with maybe just one item in it, the water bottle perhaps and make its nominal/min/max values zero.
  2. Shut down the server.
  3. Delete the persistence files (if you want to wipe the server completely of course, otherwise skip this step).
  4. Backup the types.xml you want to use later and then put the dummy in place.
  5. Temporarily change globals.xml to not spawn any infected.
  6. Start the server and let it create new persistence files.
  7. Once it's fully up and running, you should have a loot-free world.
  8. Shut down the server.
  9. Put the real types.xml file back in place with your updated min/max values.
  10. Reset the infected to spawn again in globals.xml and start the server.

You'll probably get loads of errors from things missing related to events, etc. but as long as persistence files get created, it should in theory wipe all the loot?

Use at your own risk...just thought of this and have never tried it personally.

Share this post


Link to post
Share on other sites

or 

 

go into the missions folder and find the storage folder

then rename the date and backup folders with "donotuse" on the end so they look like datadonotuse / backupdonotuse

restart the server and presto you have loot spawn refresh

the server will generate new data and backup files once you jump on the server AND then you can delete the old ones

 

please note this will take ALL LOOT off the server, including in bases and persistent stuff.

 

i do this only when i have done a full wipe of the server to start again AND have added to the types.xml file   only do this once you have the extras added.   

Share this post


Link to post
Share on other sites
array<Object> objects = new array<Object>;
GetGame().GetObjectsAtPosition("7500 0 7500", 10000, objects, null);
foreach(Object obj: objects)
{
    if ( obj.GetType() == "GardenPlot" )
    {
        GetGame().ObjectDelete( obj );
        Print("DELETE");
    }
}

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×