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/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | |
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/CoreModules/Avatar/UserProfiles/UserProfileModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs index 47914cc..94dc5f5 100644 --- a/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs | |||
@@ -863,7 +863,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
863 | if (p != null && p.isNPC) | 863 | if (p != null && p.isNPC) |
864 | { | 864 | { |
865 | remoteClient.SendAgentAlertMessage( | 865 | remoteClient.SendAgentAlertMessage( |
866 | "Notes for NPCs not avaiable", false); | 866 | "Notes for NPCs not available", false); |
867 | return; | 867 | return; |
868 | } | 868 | } |
869 | 869 | ||
@@ -1009,7 +1009,7 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles | |||
1009 | 1009 | ||
1010 | if (p != null && p.isNPC) | 1010 | if (p != null && p.isNPC) |
1011 | { | 1011 | { |
1012 | remoteClient.SendAvatarProperties(avatarID, "im a happy NPC", "5/25/1977" , | 1012 | remoteClient.SendAvatarProperties(avatarID, ((INPC)(p.ControllingClient)).profileAbout, "5/25/1977", |
1013 | Utils.StringToBytes("NPC"), "NPCs have no life", 0, | 1013 | Utils.StringToBytes("NPC"), "NPCs have no life", 0, |
1014 | UUID.Zero, UUID.Zero, "", UUID.Zero); | 1014 | UUID.Zero, UUID.Zero, "", UUID.Zero); |
1015 | remoteClient.SendAvatarInterestsReply(avatarID, 0, "", | 1015 | remoteClient.SendAvatarInterestsReply(avatarID, 0, "", |