Table Cloth

This device allows the computer to manipulate the Table Cloth in Shop Mode! Note: Table Cloth has to be a Shop in order for this device to exist!!!!

This is an example of how to access the device.

local d = require("devices")
local cloth = d:find("table_cloth")
print(cloth:getAddress())

API

Device name: table_cloth

Methods

getAddress():string
This method gets the target address for purchased items.

setAddress(address:string)
This method sets the target address for purchased items.

setPriceTagCount([count:number])
This method sets the price tag amount to the given count or 1 if none is provided.

getWares():table
This method gets all listed wares on the cloth.

setWares(wares:table)
This method parses the given table and sets the new wares from it.