aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
authoralondria2008-03-24 19:11:56 +0000
committeralondria2008-03-24 19:11:56 +0000
commit8a39d04f6d09c0b1f7ebbbb724c708343a24c115 (patch)
treec8333eb8b65a5b52d776bd952d59b7211db688cf /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
parentImplements llGetInventoryCreator() (diff)
downloadopensim-SC-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.zip
opensim-SC-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.tar.gz
opensim-SC-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.tar.bz2
opensim-SC-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.tar.xz
Implements llGetInventoryType()
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 83f87d3..75c1475 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -4190,8 +4190,14 @@ namespace OpenSim.Region.ScriptEngine.Common
4190 public int llGetInventoryType(string name) 4190 public int llGetInventoryType(string name)
4191 { 4191 {
4192 m_host.AddScriptLPS(1); 4192 m_host.AddScriptLPS(1);
4193 NotImplemented("llGetInventoryType"); 4193 foreach (KeyValuePair<LLUUID, TaskInventoryItem> inv in m_host.TaskInventory)
4194 return 0; 4194 {
4195 if (inv.Value.Name == name)
4196 {
4197 return inv.Value.InvType;
4198 }
4199 }
4200 return -1;
4195 } 4201 }
4196 4202
4197 public void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons) 4203 public void llSetPayPrice(int price, LSL_Types.list quick_pay_buttons)