Invdata

Help Invdata

 
Syntax: invdata (<container id>)
        eqdata
        invdata / eqdata ansi

The 'invdata' and 'eqdata' commands are designed for use with client-side
scripts and plugins.  They provide a standardized display of information
about your own worn equipment (with 'eqdata') or carried inventory
('invdata').  You may also use a container's objectid as an argument for
invdata.  Doing so will list the output for the given container instead of
carried inventory.

The 'ansi' option causes the output to include regular ANSI color rather 
than the Aardwolf color codes.

See 'help objectid' for a description of what object ID numbers mean and
their intended use.

The output for these commands is as follows:

{tag}
objectid,flags,itemname,level,type,unique,wear-loc,timer
...
{endtag}

Tag: Displays eqdata, invdata, or invdata container-objectid, based on
which argument was used.

Flags: Lists any of the following flags as a string of letters (eg
KIG); if none, field is blank.

      K : Kept        I : Invis
      M : Magical    G : Glowing
      H : Humming    T : Temporary affect on item

Itemname: Gives the item name, with MUD color codes.

Level: Item's level.

Type: Item type, from the following list.

      1 : Light              15 : Boat
      2 : Scroll            16 : Mob Corpse
      3 : Wand              17 : Player Corpse
      4 : Stave              18 : Fountain
      5 : Weapon            19 : Pill
      6 : Treasure          20 : Portal
      7 : Armor              21 : Beacon
      8 : Potion            22 : Gift Card
      9 : Furniture          23 : Unused
    10 : Trash              24 : Raw Material
    11 : Container          25 : Campfire
    12 : Drink Container    26 : Forge
    13 : Key                27 : Runestone
    14 : Food

Unique: Returns 1 if unique (see 'help object flags'), 0 if not.

Wear-loc: Number of current wear-location.  This has the potential to 
vary from race to race; type 'wearable' for a list of location numbers. 
Returns -1 if the item is not worn.

Timer: Number of seconds until item disintegrates, or -1 if item has no
timer.

Endtag: After all items have been listed, displays either /eqdata or
/invdata, depending on the command used.  Container ID is not displayed.