Advertisement
systox

Update

Feb 26th, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. local int User1 = "1"
  4. local id , message = rednet.receive()
  5.  
  6. if id == User1 then
  7.   if message == ".Red" then
  8.   print("Bestellung: Red Alloy Wire")
  9.   rs.setBundledOutput("back",colors.orange)
  10.   if rs.getBundledInput("back",colors.white) then
  11.   print("Bestellung abgeschickt")
  12.   rs.setBundledOutput("back",colors.black)
  13.   print("Resetet")
  14.   else
  15.   print("Error(No Item incoming)")
  16.   end
  17.   else
  18.   print("Error(Kein bekanntes Produkt)")
  19.   end
  20. else
  21. print("Kein Bekannter User: ",id)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement