Item¶
Properties¶
Item.Amount
Int32Read amount from item type object.Item.Container
Int32Serial of the container which contains the object.Item.Contains
List[Item]Contains the list of Item inside a container.Item.Deleted
BooleanItem.Direction
StringItem direction.Item.Durability
Int32Get the current durability of an Item. (0: no durability)Item.GridNum
ByteReturns the GridNum of the item. (need better documentation)Item.Hue
Int32Item.Image
BitmapGet the in-game image on an Item as Bitmap object.
See MSDN: https://docs.microsoft.com/dotnet/api/system.drawing.bitmap
Item.IsBagOfSending
BooleanTrue: if the item is a bag of sending - False: otherwise.Item.IsContainer
BooleanTrue: if the item is a container - False: otherwise.Item.IsCorpse
BooleanTrue: if the item is a corpse - False: otherwise.Item.IsDoor
BooleanTrue: if the item is a door - False: otherwise.Item.IsInBank
BooleanTrue: if the item is in the Player’s bank - False: otherwise.Item.IsLootable
BooleanTrue: For regualar items - False: for hair, beards, etc.Item.IsPotion
BooleanTrue: if the item is a potion - False: otherwise.Item.IsPouch
BooleanTrue: if the item is a pouch - False: otherwise.Item.IsResource
BooleanTrue: if the item is a resource (ore, sand, wood, stone, fish) - False: otherwiseItem.IsTwoHanded
BooleanTrue: if the item is a 2-handed weapon - False: otherwise.Item.IsVirtueShield
BooleanTrue: if the item is a virtue shield - False: otherwise.Item.ItemID
Int32Represents the type of Item, usually unique for the Item image. Sometime called ID or Graphics ID.Item.Layer
StringGets the Layer, for werable items only. (need better documentation)Item.MaxDurability
Int32Get the maximum durability of an Item. (0: no durability)Item.Movable
BooleanItem is movableItem.Name
StringItem nameItem.OnGround
BooleanTrue: if the item is on the ground - False: otherwise.Item.Position
Point3DItem.Properties
List[Property]Get the list of Properties of an Item.Item.PropsUpdated
BooleanTrue: if Properties are updated - False: otherwise.Item.RootContainer
Int32Get serial of root container of item.Item.Serial
Int32Item.Updated
BooleanCheck if the Item already have been updated with all the properties. (need better documentation)Item.Visible
BooleanItem is VisibleItem.Weight
Int32Get the weight of a item. (0: no weight)
Methods¶
- Item.DistanceTo(itm) → Int32¶
itm:
ItemTarget as Item
- Item.DistanceTo(mob) → Int32¶
mob:
MobileTarget as Mobile
Return the distance in number of tiles, from Item to Mobile.
- Item.IsChildOf(container) → Boolean¶
container:
ItemItem as container.
Check if an Item is contained in a container. Can be a Item or a Mobile (wear by).
- Item.IsChildOf(container) → Boolean¶
container:
MobileMobile as container.
- Item.ToString() → String¶