OpenMetaverse Protocol Library Developers API Documentation
BuyObject Method (simulator, localID, saleType, price, groupID, categoryID)
NamespacesOpenMetaverseObjectManagerBuyObject(Simulator, UInt32, SaleType, Int32, UUID, UUID)
Attempt to purchase an original object, a copy, or the contents of an object
Declaration Syntax
C#
public 
void 
BuyObject(
        
Simulator 
simulator,
        
uint 
localID,
        
SaleType 
saleType,
        
int 
price,
        
UUID 
groupID,
        
UUID 
categoryID
)
Parameters
simulator ( Simulator)
The Simulatorthe object is located
localID ( UInt32)
The Local ID of the object
saleType ( SaleType)
Whether the original, a copy, or the object contents are on sale. This is used for verification, if the this sale type is not valid for the object the purchase will fail
price ( Int32)
Price of the object. This is used for verification, if it does not match the actual price the purchase will fail
groupID ( UUID)
Group ID that will be associated with the new purchase
categoryID ( UUID)
Inventory folder UUID where the object or objects purchased should be placed
Examples
  Copy imageCopy
BuyObject(Client.Network.CurrentSim, 
500, SaleType.Copy, 
    
100, UUID.Zero,
Client.Self.InventoryRootFolderUUID);

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)