Advertisement
meuced

accueil_ftb

Feb 24th, 2013
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. local mondes = { 121, 126, 127, 128, 129, 130, 131, 132 }
  2.  
  3.  
  4. function ecran()
  5.     term.clear()
  6.     term.setCursorPos(1,3)
  7.     print("       1 - Turtle Ced              5 - vide")
  8.     print()
  9.     print("       2 - SeigneurBelial          6 - vide")
  10.     print()
  11.     print("       3 - Yogogo                  7 - vide")
  12.     print()
  13.     print("       4 - Jango49                 8 - vide")
  14.     term.setCursorPos(15,15)
  15. end
  16.  
  17. rednet.open("back")
  18.  
  19. for k,v in pairs(mondes) do
  20.     rednet.send(v,"false")
  21. end
  22.  
  23.  
  24.  
  25. while true do
  26.     ecran()
  27.     print("Votre choix : ")
  28.     term.setCursorPos(29,15)
  29.     local t = tonumber(read())
  30.     for k,v in pairs(mondes) do
  31.         rednet.send(v,"false")
  32.     end
  33.     rednet.send(mondes[t],"true")
  34.     --sleep(20)
  35.    
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement