aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorUbitUmarov2016-06-28 18:14:30 +0100
committerUbitUmarov2016-06-28 18:14:30 +0100
commita08c354a0737aa1c39e8abd1bc77446c5ace2997 (patch)
tree5d26160d350397acc53da256d426548d2825f169 /OpenSim/Region/ScriptEngine
parent mantis: 7936 replace httpServer_OpenSim.dll with a new one restoring some ch... (diff)
downloadopensim-SC_OLD-a08c354a0737aa1c39e8abd1bc77446c5ace2997.zip
opensim-SC_OLD-a08c354a0737aa1c39e8abd1bc77446c5ace2997.tar.gz
opensim-SC_OLD-a08c354a0737aa1c39e8abd1bc77446c5ace2997.tar.bz2
opensim-SC_OLD-a08c354a0737aa1c39e8abd1bc77446c5ace2997.tar.xz
fix NPCs OS_NPC_OBJECT_GROUP option. group ID needs to be set during creation, before scenepresence.CompleteMovement, set tittle just after it.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 5b5c257..90b7494 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2748,7 +2748,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2748 UUID x = module.CreateNPC(firstname, 2748 UUID x = module.CreateNPC(firstname,
2749 lastname, 2749 lastname,
2750 position, 2750 position,
2751 UUID.Random(),
2751 ownerID, 2752 ownerID,
2753 groupTitle,
2754 groupID,
2752 senseAsAgent, 2755 senseAsAgent,
2753 World, 2756 World,
2754 appearance); 2757 appearance);
@@ -2756,9 +2759,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2756 ScenePresence sp; 2759 ScenePresence sp;
2757 if (World.TryGetScenePresence(x, out sp)) 2760 if (World.TryGetScenePresence(x, out sp))
2758 { 2761 {
2759 sp.Grouptitle = groupTitle;
2760 ((INPC)(sp.ControllingClient)).ActiveGroupId = groupID;
2761
2762 sp.SendAvatarDataToAllAgents(); 2762 sp.SendAvatarDataToAllAgents();
2763 } 2763 }
2764 return new LSL_Key(x.ToString()); 2764 return new LSL_Key(x.ToString());