The '.' operator cannot be applied of type 'IPlayerItemDefinition'Fixed
5e13a8d5b2bc5.jpg Wulf
The compiler fix is just to fix compiling related to skins, nothing related to how this plugin works otherwise.

Then something else changed. NPCs are not dropping guns or leaving a gun in thier inventory if the above temp fix is applied. If it's not applied then one is presented with the error above.

Clearly something has changed in the background and NPC Drop Guns is failing to drop weapons, or in fact alter the NPCs inventory. Somewhere it's getting stuck.

TheFriendlyChap

Then something else changed. NPCs are not dropping guns or leaving a gun in thier inventory if the above temp fix is applied. If it's not applied then one is presented with the error above.

Clearly something has changed in the background and NPC Drop Guns is failing to drop weapons, or in fact alter the NPCs inventory. Somewhere it's getting stuck.

That could very well be the case, but this thread is about the plugin compiling due to skin changes, not guns not being dropped. Please see the other existing thread regardinfg that.

Still broken
NPCs no longer drop guns
sorry didn't see the updated plugin. my bad
I was getting Error while compiling: NPCDropGun.cs(211,81): error CS0023: The `.' operator cannot be applied to operand of type `IPlayerItemDefinition'
on the updated plugin.  Wulfs fix works and the NPCs drop guns again. Thank you!
Locked automatically