User Tools

Site Tools


lgscript:containsrv

ContainSrv

Add

Put an object in a container.

Returns boolean success
Parameter integer item
Parameter integer container
Parameter integer contains type (optional)
Parameter boolean combine (optional)

Remove

Remove an object from a container.

Parameter integer item
Parameter integer container

MoveAllContents

Move all objects from one container into another.

Parameter integer source
Parameter integer destination
Parameter boolean combine (optional)

StackAdd

Add to (or subtract from) the stack count of an object.

Returns integer actual amount
Parameter integer object
Parameter integer amount

IsHeld

Get the contains type of an item if it is in a container.

Returns integer or nil contains type
Parameter integer container
Parameter integer item
lgscript/containsrv.txt · Last modified: 2009/08/25 22:05 (external edit)