aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-24 16:41:23 +0000
committerMelanie Thielker2008-08-24 16:41:23 +0000
commita7a385937ea0ba105b5547702639c373121e491e (patch)
treefa959998cf59984b794f25ac4329de7db012cba8 /OpenSim
parentMantis#2041. Thank you kindly, HomerHorwitz for a patch that: (diff)
downloadopensim-SC_OLD-a7a385937ea0ba105b5547702639c373121e491e.zip
opensim-SC_OLD-a7a385937ea0ba105b5547702639c373121e491e.tar.gz
opensim-SC_OLD-a7a385937ea0ba105b5547702639c373121e491e.tar.bz2
opensim-SC_OLD-a7a385937ea0ba105b5547702639c373121e491e.tar.xz
Completing the item sale series, this one implements sell contents.
All item sale modes are now complete.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs8
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.Inventory.cs10
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}