aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared
diff options
context:
space:
mode:
authorMelanie2011-10-25 02:26:56 +0100
committerMelanie2011-10-25 02:26:56 +0100
commite2de57ca29116fd1dae77065104d7f431da711fc (patch)
treead5ed1720690812044cbfc7fb6072283b4e144c7 /OpenSim/Region/ScriptEngine/Shared
parentMerge commit '730460169f2a45e934b42b2464f7c7472f7fac48' into bigmerge (diff)
parentImplement osNpcSit(). This is still in development so don't trust it (diff)
downloadopensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.zip
opensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.tar.gz
opensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.tar.bz2
opensim-SC-e2de57ca29116fd1dae77065104d7f431da711fc.tar.xz
Merge commit '0c041ce12f393367e2754e88d9b8dad5e45f88c4' into bigmerge
Conflicts: OpenSim/Region/Framework/Scenes/ScenePresence.cs
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs11
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs1
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs5
4 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index b19f8cf..bfe62c7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -2359,6 +2359,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2359 } 2359 }
2360 } 2360 }
2361 2361
2362 public void osNpcSit(LSL_Key npc, LSL_Key target, int options)
2363 {
2364 CheckThreatLevel(ThreatLevel.High, "osNpcSit");
2365
2366 INPCModule module = World.RequestModuleInterface<INPCModule>();
2367 if (module != null)
2368 {
2369 module.Sit(new UUID(npc.m_string), new UUID(target.m_string), World);
2370 }
2371 }
2372
2362 public void osNpcRemove(LSL_Key npc) 2373 public void osNpcRemove(LSL_Key npc)
2363 { 2374 {
2364 CheckThreatLevel(ThreatLevel.High, "osNpcRemove"); 2375 CheckThreatLevel(ThreatLevel.High, "osNpcRemove");
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index 5ddba60..8fe43dd 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -178,6 +178,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
178 void osNpcSetRot(LSL_Key npc, rotation rot); 178 void osNpcSetRot(LSL_Key npc, rotation rot);
179 void osNpcStopMoveToTarget(LSL_Key npc); 179 void osNpcStopMoveToTarget(LSL_Key npc);
180 void osNpcSay(key npc, string message); 180 void osNpcSay(key npc, string message);
181 void osNpcSit(key npc, key target, int options);
181 void osNpcRemove(key npc); 182 void osNpcRemove(key npc);
182 183
183 LSL_Key osOwnerSaveAppearance(string notecard); 184 LSL_Key osOwnerSaveAppearance(string notecard);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index 864d59c..be51650 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -603,6 +603,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
603 public const int OS_NPC_NO_FLY = 1; 603 public const int OS_NPC_NO_FLY = 1;
604 public const int OS_NPC_LAND_AT_TARGET = 2; 604 public const int OS_NPC_LAND_AT_TARGET = 2;
605 605
606 public const int OS_NPC_SIT_IMMEDIATE = 0;
607
606 public const string URL_REQUEST_GRANTED = "URL_REQUEST_GRANTED"; 608 public const string URL_REQUEST_GRANTED = "URL_REQUEST_GRANTED";
607 public const string URL_REQUEST_DENIED = "URL_REQUEST_DENIED"; 609 public const string URL_REQUEST_DENIED = "URL_REQUEST_DENIED";
608 610
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
index bbc8cc6..38391df 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/OSSL_Stub.cs
@@ -528,6 +528,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
528 m_OSSL_Functions.osNpcSay(npc, message); 528 m_OSSL_Functions.osNpcSay(npc, message);
529 } 529 }
530 530
531 public void osNpcSit(LSL_Key npc, LSL_Key target, int options)
532 {
533 m_OSSL_Functions.osNpcSit(npc, target, options);
534 }
535
531 public void osNpcRemove(key npc) 536 public void osNpcRemove(key npc)
532 { 537 {
533 m_OSSL_Functions.osNpcRemove(npc); 538 m_OSSL_Functions.osNpcRemove(npc);