Difference between revisions of "API UnloadCargo"

From Vendetta Lua
Jump to: navigation, search
(split)
 
(No difference)

Latest revision as of 22:04, 25 January 2009

UnloadCargo

Definition: UnloadCargo({{int itemid, int quantity} ..}, function cb) -> nil
Description:
Unload cargo items and quantities according to the provided table
Arguments:
itemid itemid of cargo item
quantity amount of this cargo to unload
cb optional function to call on success
Example:

UnloadCargo{{itemid=1234, quantity=2}, {itemid=1235, quantity=3}}

unload 2 units of the cargo with the itemid 1234 and 3 with the id 1235