facelessj
started a topic on Fri, 10 October 2014 at 1:35 AM
I've got a set of items that when purchased, give out virtual currencies. We'll call the items curr1, curr2, and curr3. They reward virtual currencies C1, C2 and C3 respectively.
I've got each of these set up using (With the currency changed for each item):
"Bundle": {
"BundledVirtualCurrencies": {
"C1": 1
}
}
Then, I have another called randomCurr, which contains:
"Bundle": {
"BundledResultsTables": [
"RandomCurrencyTable"
]
}
RandomCurrencyTable is defined as:
{
"Tables": [
{
"TableId": "RandomCurrencyTable",
"Nodes": [
{
"ResultItemType": "ItemId",
"ResultItem": "curr1",
"Weight" : 1
},
{
"ResultItemType": "ItemId",
"ResultItem": "curr2",
"Weight" : 1
},
{
"ResultItemType": "ItemId",
"ResultItem": "curr3",
"Weight" : 1
}
]
}
}
So essentially what should happen is the user buys a randomCurr. This then uses the RandomCurrencyTable to give the player one of curr1, curr2 or curr3, which should then give the player one virtual currency (C1, C2 or C3).
However, this is not happening. The user's VC counts don't change. When I look at their purchase history and inventory, it only has randomCurr, no curr1/2/3.
Additionally, the return value for the PurchaseItem request does not list any BundleContents as the help files say (But buying curr1 directly does not return this either, and yet correctly gives 1 C1).
Any help fixing this would be appreciated.