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>
This commit is contained in:
Mandarinka Tasty
2016-12-10 21:15:22 +01:00
committed by UbitUmarov
parent 96bdc5e185
commit 5b7986e6be
4 changed files with 11 additions and 1 deletions

View File

@@ -168,6 +168,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
AvatarAppearance appearance)
{
NPCAvatar npcAvatar = null;
string born = DateTime.UtcNow.ToString();
try
{
@@ -222,6 +223,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
ScenePresence sp;
if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp))
{
npcAvatar.Born = born;
npcAvatar.ActiveGroupId = groupID;
sp.CompleteMovement(npcAvatar, false);
sp.Grouptitle = groupTitle;