diff options
author | UbitUmarov | 2016-06-28 23:30:04 +0100 |
---|---|---|
committer | UbitUmarov | 2016-06-28 23:30:04 +0100 |
commit | 90b825cda8eac02d9bb0af0dd734a662014b4d26 (patch) | |
tree | fa12574b7df2b386951860ffd275772111f95daa /OpenSim/Region/OptionalModules/World/NPC | |
parent | fix NPCs OS_NPC_OBJECT_GROUP option. group ID needs to be set during creation... (diff) | |
download | opensim-SC_OLD-90b825cda8eac02d9bb0af0dd734a662014b4d26.zip opensim-SC_OLD-90b825cda8eac02d9bb0af0dd734a662014b4d26.tar.gz opensim-SC_OLD-90b825cda8eac02d9bb0af0dd734a662014b4d26.tar.bz2 opensim-SC_OLD-90b825cda8eac02d9bb0af0dd734a662014b4d26.tar.xz |
if a NPC is owned, allow access if ownerID matchs parcel owner or it is in the access list. option OS_NPC_OBJECT_GROUP it still needed if access is by group (this option should also work with not owned NPC) NEEDS TESTING, may prove to be a bad solution
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 95cf73c..43b4e02 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -43,6 +43,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
43 | public class NPCAvatar : IClientAPI, INPC | 43 | public class NPCAvatar : IClientAPI, INPC |
44 | { | 44 | { |
45 | public bool SenseAsAgent { get; set; } | 45 | public bool SenseAsAgent { get; set; } |
46 | public UUID Owner | ||
47 | { | ||
48 | get { return m_ownerID;} | ||
49 | } | ||
46 | 50 | ||
47 | public delegate void ChatToNPC( | 51 | public delegate void ChatToNPC( |
48 | string message, byte type, Vector3 fromPos, string fromName, | 52 | string message, byte type, Vector3 fromPos, string fromName, |