Difference between revisions of "API PurchaseMerchandiseItem"

From Vendetta Lua
Jump to: navigation, search
(split)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
=== PurchaseMerchandiseItem ===
 
=== PurchaseMerchandiseItem ===
 
'''Definition:'''
 
'''Definition:'''
PurchaseMerchandiseItem(int itemid, int amount) -> nil
+
PurchaseMerchandiseItem(int itemid, int amount, func callback) -> nil
 
<br>
 
<br>
 
'''Description:'''<br>
 
'''Description:'''<br>
Line 7: Line 7:
 
<br>
 
<br>
 
'''Arguments:'''<br>
 
'''Arguments:'''<br>
''itemid'' itemid of cargo merch item
+
''itemid'' itemid of cargo merch item<br>
 +
''amount'' number of items to purchase<br>
 +
''callback'' function that gets called when transaction is finished, callback is called with no arguments in case of success or with numeric errorcode in case of failure
 
<br>
 
<br>

Latest revision as of 04:52, 17 February 2009

PurchaseMerchandiseItem

Definition: PurchaseMerchandiseItem(int itemid, int amount, func callback) -> nil
Description:
buy the provided item
Arguments:
itemid itemid of cargo merch item
amount number of items to purchase
callback function that gets called when transaction is finished, callback is called with no arguments in case of success or with numeric errorcode in case of failure