Announcement

Collapse
No announcement yet.

custom loot box

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Request custom loot box

    how can i make a custom loot box with set items in it? want the box to be the cm menu nonplayer but i want to give box to player so they can place it on ground and loot it and then the box destroys itself. the box needs to contain about 5-7 set items with set quality.

    #2
    Can I have an example of the items you want to spawn?

    Comment


      #3
      this is just an example im looking to do something like 5 different boxes that only an admin can give to a player. so that can place the box and open it to get loot then have the box destroy

      lootbox 1

      pickaxe lvl 6
      gyro
      shovel lvl 5

      lootbox 2

      4x4
      fireaxe lvl 6
      ak47 lvl 6
      500 7.62 ammo

      Comment


        #4
        I know two different ways to do this. But I don't know a way off hand of controlling the individual item quality, only all the items in the container, so they can all be 6 for instance, but not some 6 and some 5. Also, I don't think there is a way to control the durability of the items in the container, unfortunately, so they get assigned random durability levels. Of course both of these issues are fixable if the game's code is patched via the DMT launcher, but I figure you might be looking for and XML only patch, as those mods are applied automatically to players rather than requiring you to distribute files.

        Comment


          #5
          ok so how to do it without the lvl if i can get a start there i can work with it

          Comment


            #6
            I've made you something that you can use. You can look through it and alter it as you need. Unzip this to your mods folder.
            https://drive.google.com/uc?export=d...ZGFRHjLYmO4x4X

            To use it, in the game, open the console and type lp
            This will list the current players. Find the player you want to give a crate to, and look at their pos.

            Now type sea UbberN00berCrate1 x y z and replace x y and z with the pos values you saw for that player.
            This will cause a crate to appear next to that player.

            The mod also includes UbberN00berCrate2. Both the crates contain what you described.

            Give it a try and let me know if you have any questions. I also created a crate object that you can hold in your inventory, but that option doesn't work quite as well because there's not a command to give an item to a player, so you'd have to give it to yourself and then go to the player and give it to them, then they have to place it on the ground and break it to open it, so the HP on it is set to 1. I feel the option that I've given you above is a more elegant solution.
            Last edited by ExtremeLurker; 02-21-2020, 10:37 PM.

            Comment


              #7
              ty i will try it out

              Comment


                #8
                Originally posted by UbberN00ber View Post
                ty i will try it out
                FYI, in my instructions I accidentally listed the command as se but it should be sea, so I edited the post. You can use the se command to spawn the crate as well (if you look up the entityid) but it doesn't spawn it right next to the player so I recommend the sea command instead.

                Comment


                  #9
                  this works but im wanting it to be an item box (list in CM) not an entity box (F6)... so i can spawn the box into the players inventory so they can place it down and open it for the loot... also i did notice the items are a lvl 6 but not full health if the health thing is random i can work with that but would like it at 100% health
                  ty

                  Comment


                    #10
                    anyone?

                    Comment


                      #11
                      as far as I know being an admin you can spawn any item of quality you choose right into players inventory.

                      I take it you don't want all the items in one box but be able to give them a box with one item in it?

                      Or is it like the class thing some servers do to give new players some items when they join?>
                      Last edited by Gamida; 03-02-2020, 04:48 AM.

                      Comment


                        #12
                        im looking for a way to spawn many items at once so like making a box the contains certain items that i can just spawn that box to players not having to do it 1 at a time

                        Comment


                          #13
                          Well the way ExtremeLurker mentioned is probably the way to go.

                          Comment


                            #14
                            yeah but its an airdrop and all the items are damaged not full health

                            Comment


                              #15
                              is there a way to set items to full health in the loot xml?

                              <lootqualitytemplates>
                              <lootqualitytemplate name="UbberN00berContainerQuality">
                              <qualitytemplate level="1,999999" default_quality="1">
                              <loot quality="6" prob="1" />
                              </qualitytemplate>
                              </lootqualitytemplate>
                              </lootqualitytemplates>

                              Comment

                              Working...
                              X