Jump to content

After update loottable does not always work for some reason

Pending 1.1.7

Sorry - ScareCrow 🙂
We have the Plugin NightZombies and use CustomLoot to set the loot table for them. They are spawned at night, bur it seem they have the "normal" loot table that ScareCrows have, and not the loot table made by CustomLoot.

We use this setting:
    "ScareCrow": {
      "enabled": true,
      "lootTable": "default",
      "maxItems": 6,
      "minItems": 6,
      "gunsWithAmmo": false,
      "noGuns": false,
      "MaxBps": 0,
      "WaterPreFillPercent": 20,
      "ClearContainerFirst": true
With this loot table:
(Look at attachments)

This worked fine before feb. update 🙂

default.json

Share this comment


Link to comment

Since update, Im getting this:

Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0
Failed to run a 0.30 timer in 'CustomLoot v1.1.7' (NullReferenceException: Object reference not set to an instance of an object)
  at Oxide.Plugins.CustomLoot.AddToBotList (BasePlayer player) [0x0000d] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Plugins.CustomLoot+<OnEntitySpawned>c__AnonStorey6.<>m__0 () [0x00064] in <dc2c1c5fa52141d9833b5694ec542ada>:0
  at Oxide.Core.Libraries.Timer+TimerInstance.FireCallback () [0x00018] in <dfcb48ea05694263bbc08e62a39c274c>:0

Share this comment


Link to comment
On 2/25/2022 at 4:26 PM, Steenamaroo said:

@ITSB- Sorry for the delayed response.
The attached copy should solve the issue with ScarecrowNPCs. Would you mind confirming?

@Perfectangel01- Is your issue still live? If so, could you also try the attached copy, please?
Thank you both ^.

CustomLoot.cs 40.55 kB · 1 download

Testet it and ScarecrowNPC SOMETIMES have correct loot table (The one created with CustomLoot) and sometimes not 😕

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

80.8k

Files Sold

Total number of files sold.

1.6m

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.