Lua API
On this page

ItemProfile

Inherits from

Data related to an item, namely the amount and description

Fields:

Amount number

read only

Derived from packedAmount. the number of items for sale (-1 for an unlimited supply)

ObjectID number

the object ID of the item

OldWeenieDesc OldPublicWeenieDesc

details about the item

PackedAmount number

Packed data of Amount and PWDType

PWDType number

read only

Derived from packedAmount. flag indicating whether the new or old PublicWeenieDesc is used

WeenieDesc PublicWeenieDesc

details about the item

Methods:

GetPropertyKeys() : string[]

Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts

Returns:string[]

ToString() : string

Returns a string that represents the current object.

Returns:string