diff options
author | UbitUmarov | 2016-12-06 17:05:02 +0000 |
---|---|---|
committer | UbitUmarov | 2016-12-06 17:05:02 +0000 |
commit | d4e285b1a1da036220d9b3a7141ebe1b865c5d35 (patch) | |
tree | 89c95decf61b38f16e6edf622db319728efaecc2 /OpenSim/Region/OptionalModules/World | |
parent | let NPCs have profile (diff) | |
download | opensim-SC_OLD-d4e285b1a1da036220d9b3a7141ebe1b865c5d35.zip opensim-SC_OLD-d4e285b1a1da036220d9b3a7141ebe1b865c5d35.tar.gz opensim-SC_OLD-d4e285b1a1da036220d9b3a7141ebe1b865c5d35.tar.bz2 opensim-SC_OLD-d4e285b1a1da036220d9b3a7141ebe1b865c5d35.tar.xz |
add osNpcSetProfileAbout(LSL_Key npc, string about) to set NPCs profile About text. requires OsNpcCreate rights
Diffstat (limited to 'OpenSim/Region/OptionalModules/World')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 1ad71ba..1096eae 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -69,7 +69,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
69 | private readonly Scene m_scene; | 69 | private readonly Scene m_scene; |
70 | private readonly UUID m_ownerID; | 70 | private readonly UUID m_ownerID; |
71 | private UUID m_hostGroupID; | 71 | private UUID m_hostGroupID; |
72 | 72 | private string m_profileAbout = ""; | |
73 | public List<uint> SelectedObjects {get; private set;} | 73 | public List<uint> SelectedObjects {get; private set;} |
74 | 74 | ||
75 | public NPCAvatar( | 75 | public NPCAvatar( |
@@ -98,6 +98,17 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
98 | m_hostGroupID = UUID.Zero; | 98 | m_hostGroupID = UUID.Zero; |
99 | } | 99 | } |
100 | 100 | ||
101 | public string profileAbout | ||
102 | { | ||
103 | get { return m_profileAbout; } | ||
104 | set | ||
105 | { | ||
106 | if(value.Length > 255) | ||
107 | m_profileAbout = value.Substring(0,255); | ||
108 | else | ||
109 | m_profileAbout = value; | ||
110 | } | ||
111 | } | ||
101 | public IScene Scene | 112 | public IScene Scene |
102 | { | 113 | { |
103 | get { return m_scene; } | 114 | get { return m_scene; } |