mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
Completing the item sale series, this one implements sell contents.
All item sale modes are now complete.
This commit is contained in:
@@ -4036,6 +4036,14 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
remoteClient.SendInventoryItemCreateUpdate(item);
|
||||
}
|
||||
break;
|
||||
|
||||
case 3: // Sell contents
|
||||
List<LLUUID> invList = part.GetInventoryList();
|
||||
|
||||
if (invList.Count > 0)
|
||||
MoveTaskInventoryItems(remoteClient.AgentId, part.Name,
|
||||
part, invList);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -743,5 +743,15 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public List<LLUUID> GetInventoryList()
|
||||
{
|
||||
List<LLUUID> ret = new List<LLUUID>();
|
||||
|
||||
foreach (TaskInventoryItem item in m_taskInventory.Values)
|
||||
ret.Add(item.ItemID);
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user