User Tools

Site Tools


item_struct

Scripting - Item type structure

Here can find some information about Enhanced Scripting about Item type structure

Item Amount
Syntax item.Amount
Description:
Read amount from item type object.
Returns Int
In Object: Item
Parameters:
Item Color
Syntax item.Hue
Description:
Read color number from item type object.
Returns Int
In Object: Item
Parameters:
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
Parameters:
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
Parameters:
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
Parameters:
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
Parameters:
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
Parameters:
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
Parameters:
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
Parameters:
Item Name
Syntax item.Name
Description:
Get name of item.
Returns String
In Object: Item
Parameters:
Item Serial
Syntax item.Serial
Description:
Get serial number of item.
Returns Int
In Object: Item
Parameters:
Item Graphycs
Syntax item.ItemID
Description:
Get graphycs of item.
Returns Int
In Object: Item
Parameters:
Item Root Container
Syntax item.RootContainer
Description:
Get serial of root container of item.
Returns int
In Object: Item
Parameters:
Item Container
Syntax item.Container
Description:
Get serial of container of item.
Returns int
In Object: Item
Parameters:
Item Position
Syntax item.Position
Description:
Get Point3D coords of item.
Returns Point3D
In Object: Item
Parameters:
Item Position X coord
Syntax item.Position.X
Description:
Get X coord of item.
Returns Int
In Object: Item
Parameters:
Item Position Y coord
Syntax item.Position.Y
Description:
Get Y coord of item.
Returns Int
In Object: Item
Parameters:
Item Position Z level
Syntax item.Position.Z
Description:
Get Z level of item.
Returns Int
In Object: Item
Parameters:
Item Weight
Syntax item.Weight
Description:
Get Weight value.
Returns Int
In Object: Item
Parameters:
Item Durability
Syntax item.Durability
Description:
Get Durability value.
Returns Int
In Object: Item
Parameters:
Item Maximum Durability
Syntax item.MaxDurability
Description:
Get maximum durability value.
Returns Int
In Object: Item
Parameters:
Item In container
Syntax item.Contains
Description:
Return a list of item inside a container.
Returns list
In Object: Item
Parameters:

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

item_struct.txt · Last modified: 2020/07/06 03:29 (external edit)