Skip to main content
Version: 5.7.0

DropUserItem

Allows a quantity of a specified user item to be dropped, without any recovery of the money paid for the item. If any quantity of the user item remains, it will be returned, potentially with the associated itemDef (with language fields limited to the current or default language).

ServiceOperation
userItemsDROP_USER_ITEM

Method Parameters

ParameterDescription
itemIdThe unique id of the user item.
quantityThe quantity of the user item to drop.
includeDefIf true and any quantity of the user item remains, the associated item definition will be included in the response.

Usage

http://localhost:3000
string itemId = "aaa-bbb-ccc-ddd";
int quantity = 1;
bool includeDef = true;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.UserItemsService.DropUserItem(itemId, quantity, includeDef, successCallback, failureCallback);
JSON Response
{
"data": {
"item": {}
},
"status": 200
}