BetterLoot

A complete re-implementation of the drop system

Total Downloads: 42,609 - First Release: Feb 26, 2015 - Last Update: Mar 20, 2018

4.95699/5, 93 likes
  1. I have the plugin does not work after upgrade ((
     
  2. which plugin is used to place new ones i've been looking for that and cannot find it ?
     
  3. does not see to allow blacklisting of Rocket and Rocket Launchers, maybe I have the wrong Item name? Not sure.
     
  4. if im right the item id of Rocket = ammo_rocket
    and from the rocket launcher = launcher_rocket
     
  5. is there a way to set the loot to spawn in a certian radius as HapisIsland the loot crates are all off shore
     
  6. does the plugin works? ive used for 2 months now but today it aint working?? anyone got the same probs ? i havent changed anything?
     
  7. i don't know that it's hapis island but barrels sont seem to spawn on the island
     
  8. You have to remember.. as stated by the dev team, Hapis Island is still under heavy construction and may not be a playable map. Also keep in mind that that map will probably be wiped every week until they fine tune it.
     
  9. CHR

    CHR

    And the Loots are fucked there.... read stuff on rustafied.com
     
  10. Ignore this, I switched my plugin over to Lua and for some reason it's no longer an issue oddly enough.

    Hello dcode, I was wondering if there was a way to get BetterLoot working on manually spawned barrels?

    I am using the following function to spawn the "autospawn/resource/loot/loot-barrel-1" prefab in a couple locations around the map.
    Code:
            public void CreateEnt(string prefab, Vector3 pos, Quaternion ang)
            {
                UnityEngine.GameObject newPrefab = GameManager.server.FindPrefab(prefab);
                if (newPrefab == null) { return; }
      
                BaseEntity entity = GameManager.server.CreateEntity(newPrefab, pos, ang);
                if (entity == null) { return; }
      
                entity.Spawn(true);
            }
    
    But when they are spawned in manually like this, they have the normal vanilla loot.

    I tried two things: Running UpdateIntervals (and making it public) after spawning the barrels (which probably doesn't help at all), and modifying your plugin by turning this part into a function and running it after spawning the barrels:
    Code:
                        lastRefresh = now;
                        int n = 0;
                        int m = 0;
                        var all = refreshList.ToArray();
                        refreshList.Clear();
                        foreach (var ctr in all) {
                            if (ctr.time < now) {
                                if (ctr.container.isDestroyed) { // Discard destroyed containers
                                    ++m;
                                    continue;
                                }
                                if (ctr.container.IsOpen()) {
                                    refreshList.Add(ctr); // Re-add for later if occupied
                                    continue;
                                }
                                try {
                                    PopulateContainer(ctr.container); // Will re-add
                                    ++n;
                                } catch (Exception ex) {
                                    Error("Failed to refresh container: " + ContainerName(ctr.container) + ": " + ex.Message + "\n" + ex.StackTrace);
                                }
                            } else
                                refreshList.Add(ctr); // Re-add for later
                        }
                        if (n > 0 || m > 0)
                            Log("Refreshed " + n + " containers (" + m + " destroyed)");
    
    Neither of those seemed to work. Could you possibly point me towards the right direction? I am quite new to Rust plugins, although I am a programmer.

    Edit: Also, could you at some point maybe (pretty please!) add a way to turn the blacklist into a whitelist? Right now I manually edited your plugin to turn the blacklist into a whitelist, but if you update the plugin I'm going to have to make my changes again.
     
    Last edited by a moderator: May 3, 2015
  11. Updated to the new version of oxide this morning and BetterLoot is locking up the server again like it used to do. Did it twice within 20 minutes. Removed BetterLoot and haven't had a problem the rest of the day. Love this plugin too :(
     
  12. Hi everyone !

    Does anyone know how to update this plugin ? Because there a lot of new stuff since the last update..

    Thanks ! :)
     
  13. Ok, i read the overview of this plugin but it doesn't explain how we can add the newer blueprint/items.
    It only shows how to blacklist them.
    Shall we mess up a bit with the original file inside, and not the configs? And if so, i can't seem to find any line that has to do something about blueprints, so i can add/remove some.
     
  14. Yes, i had the same problem, I opened the cs file to add new stuff but I can't find lines with the present stuff.. I hope an update soon ! :)
     
  15. When the wait for the update and whether to wait for it at all?
     
  16. ###### New Problem about the BP Blacklist ######
    As research tables were just added to the game, people can now just trick the plugin and get blacklisted bp's on that way.
    Please fix that.
    - Laser :)
    #######################################
     
  17. does this allow me to edit the stone and barrel nodes? or what addon does?
     
  18. Just read description
     
  19. Bandage BP's are dropping from barrels when you spawn in a fresh server able to make bandages... ??uhh
     
  20. Hi. Please help. possible to disable command / blacklist for the players? (not owner and moderator). Thanks.