READTHESCROLL

Increase loot spawn speed?

3 posts in this topic

Loot spawns WAY too slow. Is there a way to speed it up or is that just how it is? It seems like it takes forever for loot to spawn compared to the loot spawn script I was using before. Loot script would have loot almost as soon as you got into a town. Here's my current loot config setup. It is set high so I can debug the loot spawn points I made with a position tool. If anyone has any suggestions I'm all ears! Thanks.

class LootSettings
    {
        /**
         * Chance in % to spawn loot in a building
         */
        spawnChancePerBuilding = 100;

        /**
         * Chance in % to spawn loot per loot spot per building.
         *
         * 100% = Super high loot
         * 50%  = Normal loot spawn rates
         * 20%  = You get the point
         */
        spawnChancePerPosition = 100;

        /**
         * Should be self-explanatory :)
         */
        maximumNumberOfLootSpotsPerBuilding = 30;

        /**
         * Exile spawns a random number of items per loot spot. This
         * is the upper cap for that. So 3 means it could spawn 1, 2
         * or 3.
         */
        maximumNumberOfItemsPerLootSpot = 1;

        /**
         * Radius in meter to spawn loot AROUND each player.
         * Do NOT touch this value if you dont know what you do.
         * The higher the number, the higher the drop rates, the
         * easier your server will lag.
         *
         * 50m  = Minimum
         * 200m = Maximum
         */
        spawnRadius = 100;

        /**
        * Define a de-spawn radius here. That is the radius where loot
        * is not near to players and their lifeTime expired. It will
        * also not spawn loot in a circle around the players to
        * prevent "flickering".
        *
        * 10m  = Minimum (thats better if a house is alone in the wild)
        * 50m = Maximum
        */
        visualThreshold = 50;

        /**
         * Time in seconds to define how long loot stays on the ground
         * after it has been spawned. Loot will despawn after this time
         * has passed and if no player is within the despawnRadius.
         * If the maximum life time expired, it will despawn loot
         * regardless if players are nearby or not.
         */
        minimumLifeTime = 300; // 5 minutes
        maximumLifeTime = 600; // 10 minutes

        /**
         * Notify players that loot spawned for them
         *
         * 1 = Yes
         * 0 = No
         */
        notifyPlayer = 0;

        /**
         * Defines the radius around trader cities where the system should
         * not spawn loot. Set this to 0 if you want to have loot spawning
         * in trader citites, ugh.
         */
        minimumDistanceToTraderZones = 250;

        /**
         * Defines the radius around territories where no loot spawns.
         * This does not regard the actual size of a territory. So do not
         * set this to a lower value than the maximum radius of a territory,
         * which is 150m by default.
         */
        minimumDistanceToTerritories = 150;
    };

Share this post


Link to post
Share on other sites

Are you talking about the frequency in when the server checks to see if it should spawn loot? The default is 60 seconds, but you could decrease it.

 

Also, you can go over 100% for loot chances and its a lot easier/more stable than changing the 60 seconds, for example:  spawnChancePerBuilding = 250;

Share this post


Link to post
Share on other sites

Are you talking about the frequency in when the server checks to see if it should spawn loot? The default is 60 seconds, but you could decrease it.

 

Also, you can go over 100% for loot chances and its a lot easier/more stable than changing the 60 seconds, for example:  spawnChancePerBuilding = 250;

Yea basically I'd like to speed up the amount of time it takes for loot to spawn around the player. I'll give those a try, thanks!

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.