diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 48b356a..8e56440 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -225,7 +225,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
225 | return (double)Math.Pow(fbase, fexponent); | 225 | return (double)Math.Pow(fbase, fexponent); |
226 | } | 226 | } |
227 | 227 | ||
228 | public int llAbs(int i) | 228 | public LSL_Types.LSLInteger llAbs(int i) |
229 | { | 229 | { |
230 | m_host.AddScriptLPS(1); | 230 | m_host.AddScriptLPS(1); |
231 | return (int)Math.Abs(i); | 231 | return (int)Math.Abs(i); |
@@ -246,20 +246,20 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
246 | } | 246 | } |
247 | } | 247 | } |
248 | 248 | ||
249 | public int llFloor(double f) | 249 | public LSL_Types.LSLInteger llFloor(double f) |
250 | { | 250 | { |
251 | m_host.AddScriptLPS(1); | 251 | m_host.AddScriptLPS(1); |
252 | return (int)Math.Floor(f); | 252 | return (int)Math.Floor(f); |
253 | } | 253 | } |
254 | 254 | ||
255 | public int llCeil(double f) | 255 | public LSL_Types.LSLInteger llCeil(double f) |
256 | { | 256 | { |
257 | m_host.AddScriptLPS(1); | 257 | m_host.AddScriptLPS(1); |
258 | return (int)Math.Ceiling(f); | 258 | return (int)Math.Ceiling(f); |
259 | } | 259 | } |
260 | 260 | ||
261 | // Xantor 01/May/2008 fixed midpointrounding (2.5 becomes 3.0 instead of 2.0, default = ToEven) | 261 | // Xantor 01/May/2008 fixed midpointrounding (2.5 becomes 3.0 instead of 2.0, default = ToEven) |
262 | public int llRound(double f) | 262 | public LSL_Types.LSLInteger llRound(double f) |
263 | { | 263 | { |
264 | m_host.AddScriptLPS(1); | 264 | m_host.AddScriptLPS(1); |
265 | return (int)Math.Round(f, MidpointRounding.AwayFromZero); | 265 | return (int)Math.Round(f, MidpointRounding.AwayFromZero); |
@@ -502,7 +502,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
502 | wComm.DeliverMessage(ChatTypeEnum.Region, channelID, m_host.Name, m_host.UUID, text); | 502 | wComm.DeliverMessage(ChatTypeEnum.Region, channelID, m_host.Name, m_host.UUID, text); |
503 | } | 503 | } |
504 | 504 | ||
505 | public int llListen(int channelID, string name, string ID, string msg) | 505 | public LSL_Types.LSLInteger llListen(int channelID, string name, string ID, string msg) |
506 | { | 506 | { |
507 | m_host.AddScriptLPS(1); | 507 | m_host.AddScriptLPS(1); |
508 | LLUUID keyID; | 508 | LLUUID keyID; |
@@ -685,7 +685,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
685 | 685 | ||
686 | } | 686 | } |
687 | 687 | ||
688 | public int llDetectedType(int number) | 688 | public LSL_Types.LSLInteger llDetectedType(int number) |
689 | { | 689 | { |
690 | m_host.AddScriptLPS(1); | 690 | m_host.AddScriptLPS(1); |
691 | EntityBase SensedObject = entityDetectedKey(number); | 691 | EntityBase SensedObject = entityDetectedKey(number); |
@@ -744,14 +744,14 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
744 | return new LSL_Types.Quaternion(SensedObject.Rotation.x, SensedObject.Rotation.y, SensedObject.Rotation.z, SensedObject.Rotation.w); | 744 | return new LSL_Types.Quaternion(SensedObject.Rotation.x, SensedObject.Rotation.y, SensedObject.Rotation.z, SensedObject.Rotation.w); |
745 | } | 745 | } |
746 | 746 | ||
747 | public int llDetectedGroup(int number) | 747 | public LSL_Types.LSLInteger llDetectedGroup(int number) |
748 | { | 748 | { |
749 | m_host.AddScriptLPS(1); | 749 | m_host.AddScriptLPS(1); |
750 | NotImplemented("llDetectedGroup"); | 750 | NotImplemented("llDetectedGroup"); |
751 | return 0; | 751 | return 0; |
752 | } | 752 | } |
753 | 753 | ||
754 | public int llDetectedLinkNumber(int number) | 754 | public LSL_Types.LSLInteger llDetectedLinkNumber(int number) |
755 | { | 755 | { |
756 | m_host.AddScriptLPS(1); | 756 | m_host.AddScriptLPS(1); |
757 | NotImplemented("llDetectedLinkNumber"); | 757 | NotImplemented("llDetectedLinkNumber"); |
@@ -852,7 +852,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
852 | return; | 852 | return; |
853 | } | 853 | } |
854 | 854 | ||
855 | public int llGetStatus(int status) | 855 | public LSL_Types.LSLInteger llGetStatus(int status) |
856 | { | 856 | { |
857 | m_host.AddScriptLPS(1); | 857 | m_host.AddScriptLPS(1); |
858 | Console.WriteLine(m_host.UUID.ToString() + " status is " + m_host.GetEffectiveObjectFlags().ToString()); | 858 | Console.WriteLine(m_host.UUID.ToString() + " status is " + m_host.GetEffectiveObjectFlags().ToString()); |
@@ -1331,7 +1331,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1331 | return new LSL_Types.Vector3(); | 1331 | return new LSL_Types.Vector3(); |
1332 | } | 1332 | } |
1333 | 1333 | ||
1334 | public int llTarget(LSL_Types.Vector3 position, double range) | 1334 | public LSL_Types.LSLInteger llTarget(LSL_Types.Vector3 position, double range) |
1335 | { | 1335 | { |
1336 | m_host.AddScriptLPS(1); | 1336 | m_host.AddScriptLPS(1); |
1337 | return m_host.registerTargetWaypoint(new LLVector3((float)position.x, (float)position.y, (float)position.z), (float)range); | 1337 | return m_host.registerTargetWaypoint(new LLVector3((float)position.x, (float)position.y, (float)position.z), (float)range); |
@@ -1344,7 +1344,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1344 | m_host.unregisterTargetWaypoint(number); | 1344 | m_host.unregisterTargetWaypoint(number); |
1345 | } | 1345 | } |
1346 | 1346 | ||
1347 | public int llRotTarget(LSL_Types.Quaternion rot, double error) | 1347 | public LSL_Types.LSLInteger llRotTarget(LSL_Types.Quaternion rot, double error) |
1348 | { | 1348 | { |
1349 | m_host.AddScriptLPS(1); | 1349 | m_host.AddScriptLPS(1); |
1350 | NotImplemented("llRotTarget"); | 1350 | NotImplemented("llRotTarget"); |
@@ -1761,7 +1761,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
1761 | return src.ToLower(); | 1761 | return src.ToLower(); |
1762 | } | 1762 | } |
1763 | 1763 | ||
1764 | public int llGiveMoney(string destination, int amount) | 1764 | public LSL_Types.LSLInteger llGiveMoney(string destination, int amount) |
1765 | { | 1765 | { |
1766 | LLUUID invItemID=InventorySelf(); | 1766 | LLUUID invItemID=InventorySelf(); |
1767 | if (invItemID == LLUUID.Zero) | 1767 | if (invItemID == LLUUID.Zero) |
@@ -2110,7 +2110,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2110 | NotImplemented("llRotLookAt"); | 2110 | NotImplemented("llRotLookAt"); |
2111 | } | 2111 | } |
2112 | 2112 | ||
2113 | public int llStringLength(string str) | 2113 | public LSL_Types.LSLInteger llStringLength(string str) |
2114 | { | 2114 | { |
2115 | m_host.AddScriptLPS(1); | 2115 | m_host.AddScriptLPS(1); |
2116 | if (str.Length > 0) | 2116 | if (str.Length > 0) |
@@ -2201,7 +2201,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2201 | m_host.SendTerseUpdateToAllClients(); | 2201 | m_host.SendTerseUpdateToAllClients(); |
2202 | } | 2202 | } |
2203 | 2203 | ||
2204 | public int llGetStartParameter() | 2204 | public LSL_Types.LSLInteger llGetStartParameter() |
2205 | { | 2205 | { |
2206 | m_host.AddScriptLPS(1); | 2206 | m_host.AddScriptLPS(1); |
2207 | NotImplemented("llGetStartParameter"); | 2207 | NotImplemented("llGetStartParameter"); |
@@ -2332,7 +2332,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2332 | return LLUUID.Zero.ToString(); | 2332 | return LLUUID.Zero.ToString(); |
2333 | } | 2333 | } |
2334 | 2334 | ||
2335 | public int llGetPermissions() | 2335 | public LSL_Types.LSLInteger llGetPermissions() |
2336 | { | 2336 | { |
2337 | m_host.AddScriptLPS(1); | 2337 | m_host.AddScriptLPS(1); |
2338 | 2338 | ||
@@ -2347,7 +2347,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2347 | return 0; | 2347 | return 0; |
2348 | } | 2348 | } |
2349 | 2349 | ||
2350 | public int llGetLinkNumber() | 2350 | public LSL_Types.LSLInteger llGetLinkNumber() |
2351 | { | 2351 | { |
2352 | m_host.AddScriptLPS(1); | 2352 | m_host.AddScriptLPS(1); |
2353 | 2353 | ||
@@ -2505,7 +2505,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2505 | } | 2505 | } |
2506 | } | 2506 | } |
2507 | 2507 | ||
2508 | public int llGetInventoryNumber(int type) | 2508 | public LSL_Types.LSLInteger llGetInventoryNumber(int type) |
2509 | { | 2509 | { |
2510 | m_host.AddScriptLPS(1); | 2510 | m_host.AddScriptLPS(1); |
2511 | int count = 0; | 2511 | int count = 0; |
@@ -2889,7 +2889,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2889 | 2889 | ||
2890 | } | 2890 | } |
2891 | 2891 | ||
2892 | public int llGetNumberOfSides() | 2892 | public LSL_Types.LSLInteger llGetNumberOfSides() |
2893 | { | 2893 | { |
2894 | m_host.AddScriptLPS(1); | 2894 | m_host.AddScriptLPS(1); |
2895 | NotImplemented("llGetNumberOfSides"); | 2895 | NotImplemented("llGetNumberOfSides"); |
@@ -3112,7 +3112,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3112 | return tex.GetFace((uint)face).Rotation; | 3112 | return tex.GetFace((uint)face).Rotation; |
3113 | } | 3113 | } |
3114 | 3114 | ||
3115 | public int llSubStringIndex(string source, string pattern) | 3115 | public LSL_Types.LSLInteger llSubStringIndex(string source, string pattern) |
3116 | { | 3116 | { |
3117 | m_host.AddScriptLPS(1); | 3117 | m_host.AddScriptLPS(1); |
3118 | return source.IndexOf(pattern); | 3118 | return source.IndexOf(pattern); |
@@ -3145,13 +3145,13 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3145 | return src.Sort(stride, ascending); | 3145 | return src.Sort(stride, ascending); |
3146 | } | 3146 | } |
3147 | 3147 | ||
3148 | public int llGetListLength(LSL_Types.list src) | 3148 | public LSL_Types.LSLInteger llGetListLength(LSL_Types.list src) |
3149 | { | 3149 | { |
3150 | m_host.AddScriptLPS(1); | 3150 | m_host.AddScriptLPS(1); |
3151 | return src.Length; | 3151 | return src.Length; |
3152 | } | 3152 | } |
3153 | 3153 | ||
3154 | public int llList2Integer(LSL_Types.list src, int index) | 3154 | public LSL_Types.LSLInteger llList2Integer(LSL_Types.list src, int index) |
3155 | { | 3155 | { |
3156 | m_host.AddScriptLPS(1); | 3156 | m_host.AddScriptLPS(1); |
3157 | if (index < 0) | 3157 | if (index < 0) |
@@ -3288,7 +3288,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3288 | return src.DeleteSublist(end, start); | 3288 | return src.DeleteSublist(end, start); |
3289 | } | 3289 | } |
3290 | 3290 | ||
3291 | public int llGetListEntryType(LSL_Types.list src, int index) | 3291 | public LSL_Types.LSLInteger llGetListEntryType(LSL_Types.list src, int index) |
3292 | { | 3292 | { |
3293 | m_host.AddScriptLPS(1); | 3293 | m_host.AddScriptLPS(1); |
3294 | if (index < 0) | 3294 | if (index < 0) |
@@ -3628,7 +3628,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3628 | /// in src. | 3628 | /// in src. |
3629 | /// </summary> | 3629 | /// </summary> |
3630 | 3630 | ||
3631 | public int llListFindList(LSL_Types.list src, LSL_Types.list test) | 3631 | public LSL_Types.LSLInteger llListFindList(LSL_Types.list src, LSL_Types.list test) |
3632 | { | 3632 | { |
3633 | 3633 | ||
3634 | int index = -1; | 3634 | int index = -1; |
@@ -3681,14 +3681,14 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3681 | return result; | 3681 | return result; |
3682 | } | 3682 | } |
3683 | 3683 | ||
3684 | public int llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) | 3684 | public LSL_Types.LSLInteger llEdgeOfWorld(LSL_Types.Vector3 pos, LSL_Types.Vector3 dir) |
3685 | { | 3685 | { |
3686 | m_host.AddScriptLPS(1); | 3686 | m_host.AddScriptLPS(1); |
3687 | NotImplemented("llEdgeOfWorld"); | 3687 | NotImplemented("llEdgeOfWorld"); |
3688 | return 0; | 3688 | return 0; |
3689 | } | 3689 | } |
3690 | 3690 | ||
3691 | public int llGetAgentInfo(string id) | 3691 | public LSL_Types.LSLInteger llGetAgentInfo(string id) |
3692 | { | 3692 | { |
3693 | m_host.AddScriptLPS(1); | 3693 | m_host.AddScriptLPS(1); |
3694 | NotImplemented("llGetAgentInfo"); | 3694 | NotImplemented("llGetAgentInfo"); |
@@ -3818,7 +3818,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3818 | return ret; | 3818 | return ret; |
3819 | } | 3819 | } |
3820 | 3820 | ||
3821 | public int llOverMyLand(string id) | 3821 | public LSL_Types.LSLInteger llOverMyLand(string id) |
3822 | { | 3822 | { |
3823 | 3823 | ||
3824 | m_host.AddScriptLPS(1); | 3824 | m_host.AddScriptLPS(1); |
@@ -3862,7 +3862,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3862 | return new LSL_Types.Vector3(); | 3862 | return new LSL_Types.Vector3(); |
3863 | } | 3863 | } |
3864 | 3864 | ||
3865 | public int llSameGroup(string agent) | 3865 | public LSL_Types.LSLInteger llSameGroup(string agent) |
3866 | { | 3866 | { |
3867 | m_host.AddScriptLPS(1); | 3867 | m_host.AddScriptLPS(1); |
3868 | NotImplemented("llSameGroup"); | 3868 | NotImplemented("llSameGroup"); |
@@ -3933,14 +3933,14 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
3933 | return new LSL_Types.Vector3(); | 3933 | return new LSL_Types.Vector3(); |
3934 | } | 3934 | } |
3935 | 3935 | ||
3936 | public int llGetAttached() | 3936 | public LSL_Types.LSLInteger llGetAttached() |
3937 | { | 3937 | { |
3938 | m_host.AddScriptLPS(1); | 3938 | m_host.AddScriptLPS(1); |
3939 | NotImplemented("llGetAttached"); | 3939 | NotImplemented("llGetAttached"); |
3940 | return 0; | 3940 | return 0; |
3941 | } | 3941 | } |
3942 | 3942 | ||
3943 | public int llGetFreeMemory() | 3943 | public LSL_Types.LSLInteger llGetFreeMemory() |
3944 | { | 3944 | { |
3945 | m_host.AddScriptLPS(1); | 3945 | m_host.AddScriptLPS(1); |
3946 | NotImplemented("llGetFreeMemory"); | 3946 | NotImplemented("llGetFreeMemory"); |
@@ -4300,7 +4300,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
4300 | return ret; | 4300 | return ret; |
4301 | } | 4301 | } |
4302 | 4302 | ||
4303 | public int llScriptDanger(LSL_Types.Vector3 pos) | 4303 | public LSL_Types.LSLInteger llScriptDanger(LSL_Types.Vector3 pos) |
4304 | { | 4304 | { |
4305 | m_host.AddScriptLPS(1); | 4305 | m_host.AddScriptLPS(1); |
4306 | bool result = World.scriptDanger(m_host.LocalId, new LLVector3((float)pos.x, (float)pos.y, (float)pos.z)); | 4306 | bool result = World.scriptDanger(m_host.LocalId, new LLVector3((float)pos.x, (float)pos.y, (float)pos.z)); |
@@ -4386,7 +4386,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
4386 | 4386 | ||
4387 | } | 4387 | } |
4388 | 4388 | ||
4389 | public int llGetScriptState(string name) | 4389 | public LSL_Types.LSLInteger llGetScriptState(string name) |
4390 | { | 4390 | { |
4391 | 4391 | ||
4392 | LLUUID item; | 4392 | LLUUID item; |
@@ -4805,7 +4805,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
4805 | } | 4805 | } |
4806 | } | 4806 | } |
4807 | 4807 | ||
4808 | public int llGetNumberOfPrims() | 4808 | public LSL_Types.LSLInteger llGetNumberOfPrims() |
4809 | { | 4809 | { |
4810 | m_host.AddScriptLPS(1); | 4810 | m_host.AddScriptLPS(1); |
4811 | return m_host.ParentGroup.PrimCount; | 4811 | return m_host.ParentGroup.PrimCount; |
@@ -5201,7 +5201,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
5201 | // </para> | 5201 | // </para> |
5202 | // </remarks> | 5202 | // </remarks> |
5203 | 5203 | ||
5204 | public int llBase64ToInteger(string str) | 5204 | public LSL_Types.LSLInteger llBase64ToInteger(string str) |
5205 | { | 5205 | { |
5206 | 5206 | ||
5207 | int number = 0; | 5207 | int number = 0; |
@@ -5463,7 +5463,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
5463 | NotImplemented("llRezAtRoot"); | 5463 | NotImplemented("llRezAtRoot"); |
5464 | } | 5464 | } |
5465 | 5465 | ||
5466 | public int llGetObjectPermMask(int mask) | 5466 | public LSL_Types.LSLInteger llGetObjectPermMask(int mask) |
5467 | { | 5467 | { |
5468 | m_host.AddScriptLPS(1); | 5468 | m_host.AddScriptLPS(1); |
5469 | 5469 | ||
@@ -5527,7 +5527,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
5527 | } | 5527 | } |
5528 | } | 5528 | } |
5529 | 5529 | ||
5530 | public int llGetInventoryPermMask(string item, int mask) | 5530 | public LSL_Types.LSLInteger llGetInventoryPermMask(string item, int mask) |
5531 | { | 5531 | { |
5532 | m_host.AddScriptLPS(1); | 5532 | m_host.AddScriptLPS(1); |
5533 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) | 5533 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) |
@@ -5711,7 +5711,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
5711 | NotImplemented("llParcelMediaQuery"); | 5711 | NotImplemented("llParcelMediaQuery"); |
5712 | } | 5712 | } |
5713 | 5713 | ||
5714 | public int llModPow(int a, int b, int c) | 5714 | public LSL_Types.LSLInteger llModPow(int a, int b, int c) |
5715 | { | 5715 | { |
5716 | m_host.AddScriptLPS(1); | 5716 | m_host.AddScriptLPS(1); |
5717 | Int64 tmp = 0; | 5717 | Int64 tmp = 0; |
@@ -5719,7 +5719,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
5719 | return Convert.ToInt32(tmp); | 5719 | return Convert.ToInt32(tmp); |
5720 | } | 5720 | } |
5721 | 5721 | ||
5722 | public int llGetInventoryType(string name) | 5722 | public LSL_Types.LSLInteger llGetInventoryType(string name) |
5723 | { | 5723 | { |
5724 | m_host.AddScriptLPS(1); | 5724 | m_host.AddScriptLPS(1); |
5725 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) | 5725 | foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory) |
@@ -5911,19 +5911,19 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
5911 | } | 5911 | } |
5912 | } | 5912 | } |
5913 | 5913 | ||
5914 | public int llGetUnixTime() | 5914 | public LSL_Types.LSLInteger llGetUnixTime() |
5915 | { | 5915 | { |
5916 | m_host.AddScriptLPS(1); | 5916 | m_host.AddScriptLPS(1); |
5917 | return Util.UnixTimeSinceEpoch(); | 5917 | return Util.UnixTimeSinceEpoch(); |
5918 | } | 5918 | } |
5919 | 5919 | ||
5920 | public int llGetParcelFlags(LSL_Types.Vector3 pos) | 5920 | public LSL_Types.LSLInteger llGetParcelFlags(LSL_Types.Vector3 pos) |
5921 | { | 5921 | { |
5922 | m_host.AddScriptLPS(1); | 5922 | m_host.AddScriptLPS(1); |
5923 | return (int)World.LandChannel.GetLandObject((float)pos.x, (float)pos.y).landData.landFlags; | 5923 | return (int)World.LandChannel.GetLandObject((float)pos.x, (float)pos.y).landData.landFlags; |
5924 | } | 5924 | } |
5925 | 5925 | ||
5926 | public int llGetRegionFlags() | 5926 | public LSL_Types.LSLInteger llGetRegionFlags() |
5927 | { | 5927 | { |
5928 | m_host.AddScriptLPS(1); | 5928 | m_host.AddScriptLPS(1); |
5929 | return (int)World.RegionInfo.EstateSettings.regionFlags; | 5929 | return (int)World.RegionInfo.EstateSettings.regionFlags; |
@@ -6003,7 +6003,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
6003 | } | 6003 | } |
6004 | } | 6004 | } |
6005 | 6005 | ||
6006 | public int llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) | 6006 | public LSL_Types.LSLInteger llGetParcelPrimCount(LSL_Types.Vector3 pos, int category, int sim_wide) |
6007 | { | 6007 | { |
6008 | m_host.AddScriptLPS(1); | 6008 | m_host.AddScriptLPS(1); |
6009 | 6009 | ||
@@ -6082,7 +6082,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
6082 | return ret; | 6082 | return ret; |
6083 | } | 6083 | } |
6084 | 6084 | ||
6085 | public int llGetObjectPrimCount(string object_id) | 6085 | public LSL_Types.LSLInteger llGetObjectPrimCount(string object_id) |
6086 | { | 6086 | { |
6087 | m_host.AddScriptLPS(1); | 6087 | m_host.AddScriptLPS(1); |
6088 | SceneObjectPart part = World.GetSceneObjectPart(new LLUUID(object_id)); | 6088 | SceneObjectPart part = World.GetSceneObjectPart(new LLUUID(object_id)); |
@@ -6096,7 +6096,7 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
6096 | } | 6096 | } |
6097 | } | 6097 | } |
6098 | 6098 | ||
6099 | public int llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) | 6099 | public LSL_Types.LSLInteger llGetParcelMaxPrims(LSL_Types.Vector3 pos, int sim_wide) |
6100 | { | 6100 | { |
6101 | m_host.AddScriptLPS(1); | 6101 | m_host.AddScriptLPS(1); |
6102 | // Alondria: This currently just is utilizing the normal grid's 0.22 prims/m2 calculation | 6102 | // Alondria: This currently just is utilizing the normal grid's 0.22 prims/m2 calculation |