-
Notifications
You must be signed in to change notification settings - Fork 113
Shop list item object class
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
- Create new shop item - new ShopListItem('graphic', [color='0xFFFF'], [name=''], [count=0], [price=0], [comment=''])
Create a new shop item object with the specified parameters
Result: A new object of type ShopListItemObject.
Result: Image ID.
Result: Color.
Result: The name to search.
Result: The number of items to buy/sell.
Result: The maximum cost of one item for purchase/sale.
Result: Comment on the object.
- void shopItem.SetGraphic('value');
Change image id to value.
If '0xFFFF' or 'any' is specified, this field is ignored.
- void shopItem.SetColor('value');
Change color to value.
If '0xFFFF' or 'any' is specified, this field is ignored.
Change the name to value.
If an empty field is specified, this field is ignored.
Change the number of items to buy/sell to value.
If 0 is specified, this field is ignored.
Change the maximum cost of one item for buy/sale to value (only for the organizer in restock mode).
If 0 is specified, this field is ignored.
Change item comment to value.