ITEM CONTAINER: Difference between revisions
Jump to navigation
Jump to search
New page: Containers are used to carry things around. v0 = weight capacity v1 = container flag: (bitvectors) 1 CLOSABLE Container is closable 2 PICKPROOF If locked, the containe... |
No edit summary |
||
| 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 | ||
Revision as of 13:11, 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