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>melanie
parent
96bdc5e185
commit
5b7986e6be
|
@ -1009,7 +1009,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
|
||||||
|
|
||||||
if (p != null && p.isNPC)
|
if (p != null && p.isNPC)
|
||||||
{
|
{
|
||||||
remoteClient.SendAvatarProperties(avatarID, ((INPC)(p.ControllingClient)).profileAbout, "5/25/1977",
|
remoteClient.SendAvatarProperties(avatarID, ((INPC)(p.ControllingClient)).profileAbout, ((INPC)(p.ControllingClient)).Born,
|
||||||
Utils.StringToBytes("Non Player Character (NPC)"), "NPCs have no life", 16,
|
Utils.StringToBytes("Non Player Character (NPC)"), "NPCs have no life", 16,
|
||||||
UUID.Zero, UUID.Zero, "", UUID.Zero);
|
UUID.Zero, UUID.Zero, "", UUID.Zero);
|
||||||
remoteClient.SendAvatarInterestsReply(avatarID, 0, "",
|
remoteClient.SendAvatarInterestsReply(avatarID, 0, "",
|
||||||
|
|
|
@ -59,6 +59,7 @@ namespace OpenSim.Region.Framework.Interfaces
|
||||||
UUID ActiveGroupId { get; set; }
|
UUID ActiveGroupId { get; set; }
|
||||||
UUID Owner { get; }
|
UUID Owner { get; }
|
||||||
string profileAbout { get; set; }
|
string profileAbout { get; set; }
|
||||||
|
string Born { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public interface INPCModule
|
public interface INPCModule
|
||||||
|
|
|
@ -70,6 +70,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
private readonly UUID m_ownerID;
|
private readonly UUID m_ownerID;
|
||||||
private UUID m_hostGroupID;
|
private UUID m_hostGroupID;
|
||||||
private string m_profileAbout = "";
|
private string m_profileAbout = "";
|
||||||
|
private string m_born;
|
||||||
public List<uint> SelectedObjects {get; private set;}
|
public List<uint> SelectedObjects {get; private set;}
|
||||||
|
|
||||||
public NPCAvatar(
|
public NPCAvatar(
|
||||||
|
@ -611,6 +612,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
set { }
|
set { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string Born
|
||||||
|
{
|
||||||
|
get { return m_born; }
|
||||||
|
set { m_born = value; }
|
||||||
|
}
|
||||||
|
|
||||||
public bool IsGroupMember(UUID groupID)
|
public bool IsGroupMember(UUID groupID)
|
||||||
{
|
{
|
||||||
return (m_hostGroupID == groupID);
|
return (m_hostGroupID == groupID);
|
||||||
|
|
|
@ -168,6 +168,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
AvatarAppearance appearance)
|
AvatarAppearance appearance)
|
||||||
{
|
{
|
||||||
NPCAvatar npcAvatar = null;
|
NPCAvatar npcAvatar = null;
|
||||||
|
string born = DateTime.UtcNow.ToString();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
@ -222,6 +223,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
ScenePresence sp;
|
ScenePresence sp;
|
||||||
if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp))
|
if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp))
|
||||||
{
|
{
|
||||||
|
npcAvatar.Born = born;
|
||||||
npcAvatar.ActiveGroupId = groupID;
|
npcAvatar.ActiveGroupId = groupID;
|
||||||
sp.CompleteMovement(npcAvatar, false);
|
sp.CompleteMovement(npcAvatar, false);
|
||||||
sp.Grouptitle = groupTitle;
|
sp.Grouptitle = groupTitle;
|
||||||
|
|
Loading…
Reference in New Issue