Advertisement
An93l0fD3ath

tablet

Jul 19th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. --Tablet
  2. local GERTi = require("GERTiClient")
  3. local socket = GERTi.openSocket(0.4, true, 1)
  4. local serialize = require("serialization")
  5.  
  6. print("Input Fluid Type: milk,sewage")
  7. local fluid = io.read()
  8. print("Input Amount To Order Max=256000")
  9. local order = io.read("n")
  10.  
  11. if fluid=="milk" or fluid=="sewage" then
  12.     print("Fluid Type", fluid)
  13.    
  14. else
  15.     print("Incorrect Input")
  16. end
  17.  
  18. print("Order Amount", order)
  19.  
  20. table = {["amount"] = order, ["type"] = fluid}
  21. serTable = serialize.serialize(table)
  22. socket:write(serTable)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement