Advertisement
furest

valve

Jan 19th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. start = disk.hasAudio("back")
  2. if start == true then
  3.  local disque = disk.getAudioTitle("back")
  4.  term.clear()
  5.  term.setCursorPos(1,1)
  6.  write("Voulez vous vraiment jouer ")
  7.  write( disque )
  8.  write("?")
  9.  term.setCursorPos(1,2)
  10.  input = read()
  11.  if input == "oui" then
  12.   textutils.slowPrint("Vous l'aurez voulu")
  13.   disk.playAudio("back")
  14.   sleep(1)
  15.   os.reboot()
  16.  end
  17.  if input == "je ne sais pas" then
  18.   term.setCursorPos(1,3)
  19.   write("nous attendrons, maitre")
  20.   term.setCursorPos(1,4)
  21.  end
  22.  if input == "non" then  
  23.   disk.eject("back")
  24.   term.setCursorPos(1,3)
  25.   write("Detruisez")
  26.   sleep(0.5)
  27.   write(" ce")
  28.   sleep(0.5)
  29.   write(" disque!")
  30.   sleep(1)
  31.   term.clear()
  32.   term.setCursorPos (1,1)
  33.  end
  34.  else
  35.  term.clear()
  36.  term.setCursorPos(1,1)
  37.  textutils.slowWrite("pas de disque detecte")
  38.  term.setCursorPos(1,2)
  39.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement