diff options
author | Mandarinka Tasty | 2016-12-10 21:15:22 +0100 |
---|---|---|
committer | UbitUmarov | 2016-12-10 22:45:11 +0000 |
commit | 5b7986e6beb3d452a2845fa367b26c818098aba5 (patch) | |
tree | a7801c362d8d0ec5a01fb600f30bfc1ccb05525d /OpenSim/Region/OptionalModules/World | |
parent | Merge branch 'master' of opensimulator.org:/var/git/opensim (diff) | |
download | opensim-SC_OLD-5b7986e6beb3d452a2845fa367b26c818098aba5.zip opensim-SC_OLD-5b7986e6beb3d452a2845fa367b26c818098aba5.tar.gz opensim-SC_OLD-5b7986e6beb3d452a2845fa367b26c818098aba5.tar.bz2 opensim-SC_OLD-5b7986e6beb3d452a2845fa367b26c818098aba5.tar.xz |
Setting precise date of creation in NPC's profile.
Signed-off-by: Mandarinka Tasty <mandarinka.tasty@gmail.com>
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
Diffstat (limited to 'OpenSim/Region/OptionalModules/World')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 7 | ||||
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 1096eae..b904353 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -70,6 +70,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
70 | private readonly UUID m_ownerID; | 70 | private readonly UUID m_ownerID; |
71 | private UUID m_hostGroupID; | 71 | private UUID m_hostGroupID; |
72 | private string m_profileAbout = ""; | 72 | private string m_profileAbout = ""; |
73 | private string m_born; | ||
73 | public List<uint> SelectedObjects {get; private set;} | 74 | public List<uint> SelectedObjects {get; private set;} |
74 | 75 | ||
75 | public NPCAvatar( | 76 | public NPCAvatar( |
@@ -611,6 +612,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
611 | set { } | 612 | set { } |
612 | } | 613 | } |
613 | 614 | ||
615 | public string Born | ||
616 | { | ||
617 | get { return m_born; } | ||
618 | set { m_born = value; } | ||
619 | } | ||
620 | |||
614 | public bool IsGroupMember(UUID groupID) | 621 | public bool IsGroupMember(UUID groupID) |
615 | { | 622 | { |
616 | return (m_hostGroupID == groupID); | 623 | return (m_hostGroupID == groupID); |
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs index 8462661..ced82e6 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs | |||
@@ -168,6 +168,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
168 | AvatarAppearance appearance) | 168 | AvatarAppearance appearance) |
169 | { | 169 | { |
170 | NPCAvatar npcAvatar = null; | 170 | NPCAvatar npcAvatar = null; |
171 | string born = DateTime.UtcNow.ToString(); | ||
171 | 172 | ||
172 | try | 173 | try |
173 | { | 174 | { |
@@ -222,6 +223,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
222 | ScenePresence sp; | 223 | ScenePresence sp; |
223 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) | 224 | if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) |
224 | { | 225 | { |
226 | npcAvatar.Born = born; | ||
225 | npcAvatar.ActiveGroupId = groupID; | 227 | npcAvatar.ActiveGroupId = groupID; |
226 | sp.CompleteMovement(npcAvatar, false); | 228 | sp.CompleteMovement(npcAvatar, false); |
227 | sp.Grouptitle = groupTitle; | 229 | sp.Grouptitle = groupTitle; |