ITEM CONTAINER: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (11 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
v0 = weight capacity | v0 = weight capacity | ||
v1 = container flag: (bitvectors) | v1 = container flag: (bitvectors) | ||
1 CLOSABLE Container is closable | |||
2 PICKPROOF If locked, the container cannot be picked | |||
4 CLOSED Container is closed when loaded | |||
8 LOCKED Container is locked when loaded | |||
v2 = Vnum of key to unlock or -1 if not closable | v2 = Vnum of key to unlock or -1 if not closable | ||
v3 = reserved for internal use DO NOT SET TO OTHER THEN 0 | v3 = reserved for internal use '''DO NOT SET TO OTHER THEN 0''' | ||
Bitvectors are added like so: | Bitvectors are added like so: | ||
| Line 17: | Line 14: | ||
loaded closed and locked. (1 + 2 + 4 = 7) | loaded closed and locked. (1 + 2 + 4 = 7) | ||
See also: OEDIT, OSET, ITEM_TYPES | See also: [[OEDIT]], [[OSET]], [[ITEM_TYPES]] | ||
[[CATEGORY:OLC]] | |||
Latest revision as of 13:27, 19 November 2008
Containers are used to carry things around.
v0 = weight capacity v1 = container flag: (bitvectors) 1 CLOSABLE Container is closable 2 PICKPROOF If locked, the container cannot be picked 4 CLOSED Container is closed when loaded 8 LOCKED Container is locked when loaded v2 = Vnum of key to unlock or -1 if not closable v3 = reserved for internal use DO NOT SET TO OTHER THEN 0
Bitvectors are added like so: a value of 7 means that the container is closeable, and is loaded closed and locked. (1 + 2 + 4 = 7)
See also: OEDIT, OSET, ITEM_TYPES