diff options
author | Charles Krinke | 2008-07-09 18:03:22 +0000 |
---|---|---|
committer | Charles Krinke | 2008-07-09 18:03:22 +0000 |
commit | 130cbd43761ce50d9e52af3bc8318d361acecb0f (patch) | |
tree | d17355b83da6ec819425820643c72a0129ff1c01 /OpenSim/Region/ScriptEngine | |
parent | Mantis#1700. Thank you, Melanie for a patch that: (diff) | |
download | opensim-SC_OLD-130cbd43761ce50d9e52af3bc8318d361acecb0f.zip opensim-SC_OLD-130cbd43761ce50d9e52af3bc8318d361acecb0f.tar.gz opensim-SC_OLD-130cbd43761ce50d9e52af3bc8318d361acecb0f.tar.bz2 opensim-SC_OLD-130cbd43761ce50d9e52af3bc8318d361acecb0f.tar.xz |
Mantis#1704. Thank you kindly, Mjm for a patch that:
The attached patch implements llRemoveInventory().
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index e0b6e5d..2b986be 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -2759,10 +2759,17 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2759 | llSay(0, "Could not find object " + inventory); | 2759 | llSay(0, "Could not find object " + inventory); |
2760 | } | 2760 | } |
2761 | 2761 | ||
2762 | public void llRemoveInventory(string item) | 2762 | public void llRemoveInventory(string name) |
2763 | { | 2763 | { |
2764 | m_host.AddScriptLPS(1); | 2764 | m_host.AddScriptLPS(1); |
2765 | NotImplemented("llRemoveInventory"); | 2765 | foreach (TaskInventoryItem item in m_host.TaskInventory.Values) |
2766 | { | ||
2767 | if (item.Name == name) | ||
2768 | { | ||
2769 | m_host.RemoveInventoryItem(item.ItemID); | ||
2770 | return; | ||
2771 | } | ||
2772 | } | ||
2766 | } | 2773 | } |
2767 | 2774 | ||
2768 | public void llSetText(string text, LSL_Types.Vector3 color, double alpha) | 2775 | public void llSetText(string text, LSL_Types.Vector3 color, double alpha) |