FutureProg functions
takecommodity
Overload 1
takecommodity overload 1
Boolean takecommodity(Item item, Number weight)
Available in
- computer function
- computer program
- standard futureprog
This function takes a certain weight off of a commodity pile. If the weight is equal to or higher than the weight of the commodity pile, it deletes the pile. Returns true if it succeeded at taking the weight.
| Parameter | Type | Description |
|---|---|---|
item |
Item |
The item to take the weight from |
weight |
Number |
The weight of the material to take in base units for this MUD. See MUD owner for configuration info |
Overload 2
takecommodity overload 2
Boolean takecommodity(Item item, Text weight)
Available in
- computer function
- computer program
- standard futureprog
This function takes a certain weight off of a commodity pile. If the weight is equal to or higher than the weight of the commodity pile, it deletes the pile. Returns true if it succeeded at taking the weight.
| Parameter | Type | Description |
|---|---|---|
item |
Item |
The item to take the weight from |
weight |
Text |
The weight of the material to take, e.g. 120kg, 15lb 3oz, etc |