diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 8 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 0052dd3..a21f701 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -4036,6 +4036,14 @@ namespace OpenSim.Region.Environment.Scenes | |||
4036 | remoteClient.SendInventoryItemCreateUpdate(item); | 4036 | remoteClient.SendInventoryItemCreateUpdate(item); |
4037 | } | 4037 | } |
4038 | break; | 4038 | break; |
4039 | |||
4040 | case 3: // Sell contents | ||
4041 | List<LLUUID> invList = part.GetInventoryList(); | ||
4042 | |||
4043 | if (invList.Count > 0) | ||
4044 | MoveTaskInventoryItems(remoteClient.AgentId, part.Name, | ||
4045 | part, invList); | ||
4046 | break; | ||
4039 | } | 4047 | } |
4040 | } | 4048 | } |
4041 | } | 4049 | } |
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs index 0ac20e2..eb6b9cc 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs | |||
@@ -743,5 +743,15 @@ namespace OpenSim.Region.Environment.Scenes | |||
743 | } | 743 | } |
744 | return false; | 744 | return false; |
745 | } | 745 | } |
746 | |||
747 | public List<LLUUID> GetInventoryList() | ||
748 | { | ||
749 | List<LLUUID> ret = new List<LLUUID>(); | ||
750 | |||
751 | foreach (TaskInventoryItem item in m_taskInventory.Values) | ||
752 | ret.Add(item.ItemID); | ||
753 | |||
754 | return ret; | ||
755 | } | ||
746 | } | 756 | } |
747 | } | 757 | } |