User Tools

Site Tools


scripting-item

Scripting - Item type structure

Here can find some infomation about Enhanced Scripting about Item type structure!

Item Amount
Syntax item.Amount
Description:
Read amount from item type object.
Returns: Int
In Object: Item

Item Color
Syntax item.Hue
Description:
Read color number from item type object.
Returns: Int
In Object: Item

Item Bag of Sending
Syntax item.IsBagOfSending
Description:
Return a bool if item object is a Bag of Sending. True: Is a Bag of Sending, False: Isn't a Bag of Sending
Returns: Bool
In Object: Item

Item Container
Syntax item.IsContainer
Description:
Return a bool if item object is a container. True: Is a container, False: Isn't a container
Returns: Bool
In Object: Item

Item Corpse
Syntax item.IsCorpse
Description:
Return a bool if item object is a corpse. True: Is a corpse, False: Isn't a corpse
Returns: Bool
In Object: Item

Item Door
Syntax item.IsDoor
Description:
Return a bool if item object is a door. True: Is a door, False: Isn't a door
Returns: Bool
In Object: Item

Item is In Bank
Syntax item.IsInBank
Description:
Return a bool if item object is inside a bank. True: Is in bankbox, False: Isn't in bankbox
Returns: Bool
In Object: Item

Item is Movable
Syntax item.Movable
Description:
Return a bool if item object is movable. True: Can move, False: Can't move
Returns: Bool
In Object: Item

Item is o Ground
Syntax item.OnGround
Description:
Return a bool if item object is on ground. True: Item is on ground, False: Item isn't on ground
Returns: Bool
In Object: Item

Item Name
Syntax item.Name
Description:
Get name of item.
Returns: String
In Object: Item

Item Serial
Syntax item.Serial
Description:
Get serial number of item.
Returns: Int
In Object: Item

Item Graphycs
Syntax item.ItemID
Description:
Get graphycs of item.
Returns: Int
In Object: Item

Item Root Container
Syntax item.RootContainer
Description:
Get serial of root container of item.
Returns: int
In Object: Item

Item Container
Syntax item.Container
Description:
Get serial of container of item.
Returns: int
In Object: Item

Item Position
Syntax item.Position
Description:
Get Point3D coords of item.
Returns: Point3D
In Object: Item

Item Position X coord
Syntax item.Position.X
Description:
Get X coord of item.
Returns: Int
In Object: Item

Item Position Y coord
Syntax item.Position.Y
Description:
Get Y coord of item.
Returns: Int
In Object: Item

Item Position Z level
Syntax item.Position.Z
Description:
Get Z level of item.
Returns: Int
In Object: Item

Item Weight
Syntax item.Weight
Description:
Get Weight value.
Returns: Int
In Object: Item

Item Durability
Syntax item.Durability
Description:
Get Durability value.
Returns: Int
In Object: Item

Item Maximum Durability
Syntax item.MaxDurability
Description:
Get maximum durability value.
Returns: Int
In Object: Item

Item In container
Syntax item.Contains
Description:
Return a list of item inside a container.
Returns: list
In Object: Item

Item Distance
Syntax item.DistanceTo(mobile)
Description:
Return a int of tile distance from item to mobile.
Returns: int
In Object: Item

scripting-item.txt · Last modified: 2018/09/25 15:22 by wikiadmin