ITEM CONTAINER: Difference between revisions

From AddictHelp
Jump to navigation Jump to search
Kahlan (talk | contribs)
No edit summary
Kahlan (talk | contribs)
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
1 CLOSABLE    Container is closable
 
 

Revision as of 13:13, 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