Shop list item object class - Hotride/OrionUO GitHub Wiki

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.


String shopItem.Graphic();

Result: Image ID.


String shopItem.Color();

Result: Color.


String shopItem.Name();

Result: The name to search.


int shopItem.Count();

Result: The number of items to buy/sell.


int shopItem.Price();

Result: The maximum cost of one item for purchase/sale.


String shopItem.Comment();

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.


void shopItem.SetName('value');

Change the name to value.

If an empty field is specified, this field is ignored.


void shopItem.SetCount(value);

Change the number of items to buy/sell to value.

If 0 is specified, this field is ignored.


void shopItem.SetPrice(value);

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.


void shopItem.SetComment('value');

Change item comment to value.