More msg improvements

master
Wuzzy 2018-05-14 00:35:09 +02:00
parent 2f3966be6a
commit f2f6a0b2e4
2 changed files with 9 additions and 8 deletions

View File

@ -896,7 +896,7 @@ easyvend.after_place_node = function(pos, placer)
end
meta:set_string("infotext", d)
meta:set_string("status", "Awaiting configuration by owner.")
meta:set_string("message", "Welcome! Please prepare the machine.")
meta:set_string("message", "Please select an item and amount, then confirm.")
meta:set_int("number", 1)
meta:set_int("cost", 1)
meta:set_int("stock", -1)

View File

@ -89,12 +89,13 @@ local vendor_off = table.copy(machine_template)
vendor_off.description = vendor_on.description
vendor_off._doc_items_longdesc = string.format("A vending machine allows its owner to offer a certain item in exchange for money (%s). The users can pay with money and will some items in return.", easyvend.currency_desc)
vendor_off._doc_items_usagehelp = [[For customers:
First check if the vending machine is ready (upper green LED lights up), otherwise it is of no use. Point it to see its owner and offer. Rightclick to open the buying menu. You can pay with the number of items shown at Price and you will get the item at Offered item in return. Click on Buy to buy this offer once.
Only if the upper green status LED lights up, the machine is ready for use. Point to see its owner and offer. Rightclick to open the buying menu. You can pay with the number of items shown at Price and you will get the item at Offered item in return. Click on Buy to buy this offer once.
For owners:
First, place a locked chest and fill it with the item you want to sell, make sure you leave some inventory slots empty for the price. Place the vending machine above or below the locked chest. Any locked chest connected in a unbroken vertical line of locked chests, vending/depositing machines will be accessed as storage. Rightclick the machine. Set the offered item by moving an item from your invenory into the slot. The price item can not be changed. Now set the number of items per sale and their price and click on Confirm to confirm. If the upper green status LED lights up, you're done, if not, check the message.
First, place a locked chest and fill it with the item you want to sell, make sure you leave some inventory slots empty for the price. Place the vending machine above or below the locked chest. Any locked chest connected in a unbroken vertical line of locked chests and vending/depositing machines will be accessed as storage.
Rightclick the machine. Set the offered item by moving an item from your invenory into the slot. The price item can not be changed. Now set the number of items per sale and their price and click on Confirm to confirm. If the upper green status LED lights up, you're done, if not, check the message.
The earnings will go into the locked chest.
Hint: If you enter an s after the item number to multiply it with the maximum stack size.]]
Hint: If you enter an s after the item number, it will be multiplied with the maximum stack size.]]
vendor_off.tiles = table.copy(vendor_on.tiles)
vendor_off.tiles[6] = "easyvend_vendor_front_off.png"
@ -111,12 +112,12 @@ local depositor_off = table.copy(machine_template)
depositor_off.description = depositor_on.description
depositor_off._doc_items_longdesc = string.format("A depositing machine allows its owner to offer money (%s) in exchange for a certain item. The users can supply the depositing machine with the requested item and will get money in return.", easyvend.currency_desc)
depositor_off._doc_items_usagehelp = [[For users:
To use a machine, check if its ready (the upper green LED lights up), otherwise, it cannot be used. Point the depositing machine to see its owner and the offer. Rightclick for the selling menu. You can give the number of items shown at Requested item and you will get the items at Payment in return. Click on Sell to exchange items, repeat this as often as you like.
To use a machine, check if its ready (the upper green LED lights up). Point the depositing machine to see its owner and the offer. Rightclick for the selling menu. You can give the number of items shown at Requested item and you will get the items at Payment in return. Click on Sell to exchange items, repeat this as often as you like.
For owners:
First, place a locked chest and supply it with the payment item, make sure you leave some inventory slots empty for the items you want to retrieve. Place the machine above or below the chest. Any chest connected in a unbroken vertical stack of locked chests, vending/depositing machines machines will be accessed.
Rightclick the machine. Set the requested item by moving an item from your invenory into the slot. The payment item can not be changed. Now set the number of requested items and your payment and click on Confirm to confirm. (Hint: Append the letter s to the number to multiply by the stack size). If the upper green LED lights up, everything works fine, otherwise, check the message. The deposited items will end up in the chest.
Hint: If you enter an s after the item number to multiply it with the maximum stack size.]]
First, place a locked chest and supply it with the payment item, make sure you leave some inventory slots empty for the items you want to retrieve. Place the machine above or below the chest. Any chest connected in a unbroken vertical stack of locked chests and vending/depositing machines will be accessed.
Rightclick the machine. Set the requested item by moving an item from your inventory into the slot. The payment item can not be changed. Now set the number of requested items and your payment and click on Confirm to confirm. If the upper green LED lights up, everything works fine, otherwise, check the message. The deposited items will end up in the chest.
Hint: If you enter an s after the item number, it will be multiplied with the maximum stack size.]]
depositor_off.tiles = table.copy(depositor_on.tiles)
depositor_off.tiles[6] = "easyvend_depositor_front_off.png"