Advertisement
fantadada

ecran 54

Aug 2nd, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.62 KB | None | 0 0
  1. rednet.open("top")
  2. while true do
  3.     sleep(0.1)
  4.     local senderId, message, protocol = rednet.receive()
  5.    
  6.                 if senderId == "20" then
  7.                     print("verification de L'id :"..id)
  8.             if msg == ("1") then
  9.         rednet.broadcast("op1")
  10.        
  11.         rednet.broadcast("e1")
  12.         print("Preparation a la mise a feu")
  13. sleep(3)
  14.            
  15.    
  16.     print("5")
  17.             sleep(1)
  18.     print("4")
  19.             sleep(1)
  20.     print("3")
  21.             sleep(1)
  22.     print("2")
  23.             sleep(1)
  24.     print("1")
  25.             sleep(1)
  26.     print("0")
  27.             sleep(1)
  28.     print("allumage")
  29.                             rs.setOutput("back", true)
  30.             sleep(3)
  31.                             rs.setOutput("back", false)
  32.    
  33.             sleep(3)
  34.        
  35.     os.reboot()
  36.         end    
  37.     end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement