Advertisement
william200027

Pocket porte

Jan 29th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. rednet.open("back")
  2.  
  3. IdSend1 = 25
  4. IdSend2 = 26
  5. IdSend3 = 27
  6. IdSend4 = 28
  7. IdSend5 = 29
  8.  
  9. Sale1 = "Mekanisme"
  10. Sale2 = "Me"
  11. Sale3 = "StorageEnergy"
  12. Sale4 = "MobSpawner"
  13. Sale5 = "MachineProcesses"
  14.  
  15. function Start()
  16.  term.setTextColor(colors.green)
  17.  print("Veilleur maitre le mon de la porte que vous voulez ouvrire")
  18.  term.setTextColor(colors.blue)
  19.  print(Sale1)
  20.  print(Sale2)
  21.  print(Sale3)
  22.  print(Sale4)
  23.  print(Sale5)
  24.  term.setTextColor(colors.red)
  25. end
  26. Start()
  27.  
  28. time = read()
  29.  
  30.  if time == Sale1 then
  31.   rednet.send(IdSend1,"On")
  32.   os.reboot()
  33.  end
  34.  
  35.  if time == Sale2 then
  36.   rednet.send(IdSend2,"On")
  37.   os.reboot()
  38.  end
  39.  
  40.  if time == Sale3 then
  41.   rednet.send(IdSend3,"On")
  42.   os.reboot()
  43.  end
  44.  
  45.  if time == Sale4 then
  46.   rednet.send(IdSend4,"On")
  47.   os.reboot()
  48.  end
  49.  
  50.   if time == Sale5 then
  51.   rednet.send(IdSend5,"On")
  52.   os.reboot()
  53.  end
  54.  
  55. ----=Autor=----
  56. --By Zaidal86
  57. ----=-----=----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement