RemoveAllItems
Revision as of 03:45, 15 September 2006 by imported>Dejunai (Clarification Regarding Quest Items)
Syntax:
RemoveAllItems TargetContainerID (optional), RetainOwnershipFlag (optional)
Example:
RemoveAllItems RemoveAllItems TreasureChest RemoveAllItems FriendlyJailer, 1
Removes all items from the caller's inventory. If TargetContainerID is specified, the objects are moved to the target container, otherwise they are destroyed. If RetainOwnershipFlag = 1, the items' original ownership is retained; otherwise, the ownership is cleared. Note that quest items are not removed when this function is called on the player, however container-to-container quest items will move as expected.