Jump to content

NPC Gifts 1.0.5

   (1 review)
Message added by Mabel,

For any support please use the support section or join my support discord https://discord.gg/YWzEJVt89V

2 Screenshots

Recommended Comments

NEXT

Posted

please Permission add

 

 

{
  "ContainerReceivedMessage": " :santahat: Merry Christmas <color=#4A95CC>{player.name}</color> from <color=#4A95CC>{server.name}</color> :santahat:",
  "Containers": [
    {
      "IsEnabled": true,
       "Permission": "default",
      "Prefab": "assets/prefabs/misc/xmas/sleigh/presentdrop.prefab",
      "SpawnChance": 0.5
    },
    {
      "IsEnabled": true,
       "Permission": "VIP",
      "Prefab": "assets/prefabs/missions/portal/proceduraldungeon/xmastunnels/loot/xmastunnellootbox.prefab",
      "SpawnChance": 0.5
    },
    {
      "IsEnabled": true,
       "Permission": "VIP2",
      "Prefab": "assets/prefabs/misc/xmas/giftbox/giftbox_loot.prefab",
      "SpawnChance": 0.5
    }
  ],
  "CooldownDurationMinutes": 60.0

Mabel

Posted

6 hours ago, NEXT said:

please Permission add

 

 

{
  "ContainerReceivedMessage": " :santahat: Merry Christmas <color=#4A95CC>{player.name}</color> from <color=#4A95CC>{server.name}</color> :santahat:",
  "Containers": [
    {
      "IsEnabled": true,
       "Permission": "default",
      "Prefab": "assets/prefabs/misc/xmas/sleigh/presentdrop.prefab",
      "SpawnChance": 0.5
    },
    {
      "IsEnabled": true,
       "Permission": "VIP",
      "Prefab": "assets/prefabs/missions/portal/proceduraldungeon/xmastunnels/loot/xmastunnellootbox.prefab",
      "SpawnChance": 0.5
    },
    {
      "IsEnabled": true,
       "Permission": "VIP2",
      "Prefab": "assets/prefabs/misc/xmas/giftbox/giftbox_loot.prefab",
      "SpawnChance": 0.5
    }
  ],
  "CooldownDurationMinutes": 60.0

Updated the plugin now with this change 

NEXT

Posted

very very thank you!!!

perfect job

NEXT

Posted

"SpawnChance": 0.5

0.5=50%?

1.0=100%?

Mabel

Posted

43 minutes ago, NEXT said:

"SpawnChance": 0.5

0.5=50%?

1.0=100%?

Yes 

JustANoob

Posted (edited)

does this new version allow for custom loot?

I'd like to put like food in it maybe.... as an example.

Edited by JustANoob
Mabel

Posted (edited)

15 minutes ago, JustANoob said:

does this new version allow for custom loot?

I'd like to put like food in it maybe.... as an example.

It doesn't have its own loot tables, the containers will use the servers loot table

 

you can spawn any prefabs with it though so you could use food crate ect 

 

Alternatively if your using a loot plugin, you can make use of the unused crates in the game and edit the loot from them 

in your case you could use the DM food crate 

Edited by Mabel
JustANoob

Posted

4 hours ago, Mabel said:

It doesn't have its own loot tables, the containers will use the servers loot table

 

you can spawn any prefabs with it though so you could use food crate ect 

 

Alternatively if your using a loot plugin, you can make use of the unused crates in the game and edit the loot from them 

in your case you could use the DM food crate 

I didn't think of that, but I've tried to work off your code to allow new loot. This is example...

container.itemList.Clear();

foreach (var reward in chestRewardItem) { var items = ItemManager.CreateByName(reward.Key, (int)reward.Value); items?.MoveToContainer(box.inventory); }

Mabel

Posted (edited)

3 hours ago, JustANoob said:

I didn't think of that, but I've tried to work off your code to allow new loot. This is example...

container.itemList.Clear();

foreach (var reward in chestRewardItem) { var items = ItemManager.CreateByName(reward.Key, (int)reward.Value); items?.MoveToContainer(box.inventory); }

https://codefling.com/plugins/npc-gifts?tab=downloads_field_4

Edited by Mabel
Mabel

Posted

6 hours ago, JustANoob said:

I didn't think of that, but I've tried to work off your code to allow new loot. This is example...

container.itemList.Clear();

foreach (var reward in chestRewardItem) { var items = ItemManager.CreateByName(reward.Key, (int)reward.Value); items?.MoveToContainer(box.inventory); }

Ive update it now to support Simple Loot Table, so you can define different tables per container/permissions

JustANoob

Posted

9 hours ago, Mabel said:

Ive update it now to support Simple Loot Table, so you can define different tables per container/permissions

Your awesome for doing that!

  • Like 1
Mabel

Posted

40 minutes ago, JustANoob said:

So whats the verdict?

Look in your support request 

 

JustANoob

Posted

For some reason it works now... Thank You!

image.png.4078779bebbcea434c7f0a56d134168f.png

 

image.png

  • Love 1
Wile E.

Posted (edited)

I am guessing it does not work with BetterLoot. I tried changing one prefab to the DM Food Crate as you suggested to someone else but it ignored my Loot Table and just used a minimum of food bits.

Besides this, thanks so much for creating this and offering it for free. very cool

Edited by Wile E.
Mabel

Posted (edited)

It will populate the containers with your server loot tables or you can use Simple Loot Table to make set tables for any of the containers you have set in the config 

You welcome to DM via discord if you need any help with it 

Edited by Mabel

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
  • Like 2

Mabel's Collection

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.4k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.