NoPlayerLoot = No NPC Loot ??Fixed

I have a Custom Map, the entire Southern half is covered in one large Zone to create a Safe Area, for RP purposes Players can take damage & die but they cannot be Looted.

However, we have various PVE activities inside this Safe Zone as well, and my Players are unable to Loot dead NPCs.

here is an image of the Zone Flags I'm using —> Safe Zone Flags

Is there a solution here I'm not seeing? or is there a way to fix this in via config file? Thanks in advance.

i edited the the zone manager's code to have NPC's lootable in my own version.  i would love to share the code with the original author so everyone can use it

How did you do it exactly?

evestraw

i edited the the zone manager's code to have NPC's lootable in my own version.  i would love to share the code with the original author so everyone can use it

Brute force method is to put

			if (whatever is NPCPlayerCorpse) {
				return; / return null;
			}​
Depending on the method.

If the method returns something, it needs to return null
If the method returns void, it just needs to return before the code that cancels looting

This is needed in a few places, the 'CanLoot' methods and the 'OnLoot' methods.
Remember to do the 'container' methods too, if you skin the body and it leaves a backpack behind, that's now a different method.
evestraw

i edited the the zone manager's code to have NPC's lootable in my own version.  i would love to share the code with the original author so everyone can use it

Could you share the code you added please, i would help a great deal

i am still trying to achieve no player looting but can still loot npcs, i cant seem to get anything to work or just break the plugin entirely, i know this post is a year old but i would really appreciate some help.

IT1nuYyvvkn7gs5.png k1lly0u

I've have added a seperate flag 'NoNPCLoot' and updated the check to differentiate between player loot and NPC loot in the upcoming version. There is a beta of it out for testing if interested 
https://umod.org/community/zone-manager/44117-310-beta 

Thank you very much for taking the time to have a look at this and add the features, i will deffinitely get this loaded up and tested out

Locked automatically