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