diff options
author | alondria | 2008-03-24 19:11:56 +0000 |
---|---|---|
committer | alondria | 2008-03-24 19:11:56 +0000 |
commit | 8a39d04f6d09c0b1f7ebbbb724c708343a24c115 (patch) | |
tree | c8333eb8b65a5b52d776bd952d59b7211db688cf | |
parent | Implements llGetInventoryCreator() (diff) | |
download | opensim-SC_OLD-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.zip opensim-SC_OLD-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.tar.gz opensim-SC_OLD-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.tar.bz2 opensim-SC_OLD-8a39d04f6d09c0b1f7ebbbb724c708343a24c115.tar.xz |
Implements llGetInventoryType()
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 10 |
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) |