Advertisement
se7enek

EventScreen - Kolorki

Jul 24th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Logo = {
  2. [['||''|.                                     ||   ||                    ]],
  3. [[ ||   ||    ...   .. ...   ......   ....   ...  ...      ....  ... ... ]],
  4. [[ ||'''|.  .|  '|.  ||  ||  '  .|'  '' .||   ||   ||    .|...||  ||  || ]],
  5. [[ ||    || ||   ||  ||  ||   .|'    .|' ||   ||   ||    ||       ||  || ]],
  6. [[.||...|'   '|..|' .||. ||. ||....| '|..'|' .||. .||. || '|...'  '|..'|.]],
  7. }
  8.  
  9. m = peripheral.wrap("top")
  10. m.clear()
  11. term.redirect(m)
  12. m.setTextScale(1)
  13. m.setCursorPos(1,1)
  14. m.setTextColour(512)
  15. for i = 1, #Logo do
  16.  print(Logo[i])
  17. end
  18.  
  19. --m.setTextColor(colors.red)
  20. --m.setCursorPos(54,5)
  21. --m.write("||")
  22.  
  23. m.setTextColour(colors.orange)
  24. m.setCursorPos(8,7)
  25. m.write("Witaj w strefie Eventowej na Serwerze Skyblock z Modami!")
  26. m.setTextColour(1)
  27. m.setCursorPos(18,10)
  28. m.write("EVENT: Zabawa w Kolorki! Juz jutro o 16:00")
  29. m.setTextColour(2)
  30. m.setCursorPos(3,12)
  31. m.write("Zabawa polega na powtarzaniu 'pokazanych' kolorow, tak by osiagnac")
  32. m.setCursorPos(3,14)
  33. m.write("jak najwyzszy wynik! Wszelkie NOWE proby, zastepuja poprzednie!")
  34. m.setCursorPos(3,16)
  35. m.write("Jesli chcesz zapisac swoj wynik, napisz do Admina po przegranej,")
  36. m.setCursorPos(3,18)
  37. m.write("a twoj wynik zostanie zapisany, ale nie podany innym!")
  38.  
  39.  
  40.  while true do
  41.    local event, side, x, y = os.pullEvent("monitor_touch")
  42.  
  43.    if x >= 54 and x <= 56 and y == 5 then
  44.      m.setBackgroundColor(colors.black)
  45.      m.clear()
  46.      m.setCursorPos(8,3)
  47.      m.setTextScale(3)
  48.      m.setTextColor(colors.red)
  49.      m.write("Restart...")
  50.      os.reboot()
  51.    end
  52.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement