add osNpcSetProfileAbout(LSL_Key npc, string about) to set NPCs profile About text. requires OsNpcCreate rights

This commit is contained in:
UbitUmarov
2016-12-06 17:05:02 +00:00
parent 240ab951b5
commit d4e285b1a1
6 changed files with 40 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
private readonly Scene m_scene;
private readonly UUID m_ownerID;
private UUID m_hostGroupID;
private string m_profileAbout = "";
public List<uint> SelectedObjects {get; private set;}
public NPCAvatar(
@@ -98,6 +98,17 @@ namespace OpenSim.Region.OptionalModules.World.NPC
m_hostGroupID = UUID.Zero;
}
public string profileAbout
{
get { return m_profileAbout; }
set
{
if(value.Length > 255)
m_profileAbout = value.Substring(0,255);
else
m_profileAbout = value;
}
}
public IScene Scene
{
get { return m_scene; }