Welcome to PenUltima Online. Click to login or register.

Functions:

ConsumeSubstance( container, objtype, amount )
Parameters:
Name Type
container Container reference
objtype Integer objtype to find and consume
amount An integer
Explanation
Subtracts "amount" from the first stack of type "objtype" found, starting in container "container"
Return values
1 or Error
Errors
"That is not a container" if container.isa(POLCLASS_CONTAINER) == false
"Amount cannot be negative" if amount < 0
"Not enough of that substance in container"
"Invalid parameter type"
Related
Container