Difference between revisions of "ITEMDEF"
From SphereWiki
MrSugarCube (talk | contribs) (Created page with ''''''(WIP)''''' ==ITEMDEFs== An ITEMDEF block defines the basic properties of an item. ===Properties=== Here is a list of all item definition properties. {| border="1" cellsp...') |
(No difference)
|
Revision as of 14:03, 6 June 2009
(WIP)
ITEMDEFs
An ITEMDEF block defines the basic properties of an item.
Properties
Here is a list of all item definition properties.
| Name | Read/Write | Description |
| DEFNAME | RW | Gets or sets defname of the item |
| DISPID | RW | Gets or sets the ID to display as to clients. |
| DUPELIST item_defname, item_defname, ... | RW | Gets or sets a comma-separated list of items that this item will cycle through when rotated. |
| DYE | RW | Gets or sets whether or not the item can be dyed using dye tubs (1 or 0). |
| FLIP | RW | Gets or sets whether or not the item automatically rotates when dropped. |
| ID | RW | Gets or sets the ID of the item to inherit property values from. |
| ISARMOR | R | Gets whether or not the item is considered to be armour. |
| ISWEAPON | R | Gets whether or not the item is considered to be a weapon. |
| SKILL | RW | Gets or sets the skill that is used with the weapon. |
| LAYER | RW | Gets or sets the layer that the item will occupy when equipped (1 or 0). |
| REPAIR | RW | Gets or sets whether or not the item can be repaired (1 or 0). |
| REPLICATE | RW | Gets or sets whether or not multiple instances of the item can be crafted at once. |
| RESDISPNID | RW | Gets or sets the item ID to display as to clients who don't have a high enough RESDISP to see the item. |
| RESMAKE | R | Returns the names of the resources needed to craft the item. |
| REQSTR | RW | Gets or sets the amount of strength needed to equip the item. |
| SKILLMAKE | RW | Gets or sets the list of skills needed to craft the item. |
| SKILLMAKE.n.KEY | R | Gets the name of the nth skill needed to craft the item. |
| SKILLMAKE.n.VAL | R | Gets the amount of the nth skill needed to craft the item. |
| SPEED | RW | Gets or sets the speed of the weapon. |
| TDATA1 | RW | Gets or sets the TDATA1 value of the item. |
| TDATA2 | RW | Gets or sets the TDATA2 value of the item. |
| TDATA3 | RW | Gets or sets the TDATA3 value of the item. |
| TDATA4 | RW | Gets or sets the TDATA4 value of the item. |
| TFLAGS | RW | Gets or sets the flags of the item from tiledata.mul. |
| TWOHANDS | RW | Gets or sets whether or not the item occupies both hands when equipped (layer_hand2) |
| TYPE | RW | Gets or sets the item's type. |
| VALUE | RW | Gets or sets the base value of the item. |
| WEIGHT | RW | Gets or sets the weight of the item. |