Completing the item sale series, this one implements sell contents.
All item sale modes are now complete.0.6.0-stable
parent
d190f1d2dc
commit
a7a385937e
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue