se7enek

[Skyblock] WelcomeScreen

Jul 4th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local news
  2. local news_handle = http.get("http://37.59.67.50/xxx.txt")
  3. if not news_handle then
  4.   news = "Nie mozna wczytac News'ow z serwera"
  5. else
  6.   news = news_handle.readAll()
  7.   news_handle.close()
  8. end
  9.  
  10. sleep(3)
  11.  
  12. local Logo = {
  13. [['||''|.                                     ||   ||                    ]],
  14. [[ ||   ||    ...   .. ...   ......   ....   ...  ...      ....  ... ... ]],
  15. [[ ||'''|.  .|  '|.  ||  ||  '  .|'  '' .||   ||   ||    .|...||  ||  || ]],
  16. [[ ||    || ||   ||  ||  ||   .|'    .|' ||   ||   ||    ||       ||  || ]],
  17. [[.||...|'   '|..|' .||. ||. ||....| '|..'|' .||. .||. || '|...'  '|..'|.]],
  18. }
  19.  
  20. m = peripheral.wrap("back")
  21. m.clear()
  22. term.redirect(m)
  23. m.setTextScale(1)
  24. m.setCursorPos(1,1)
  25. m.setTextColour(512)
  26. for i = 1, #Logo do
  27.  print(Logo[i])
  28. end
  29.  
  30. --m.setTextColor(colors.red)
  31. --m.setCursorPos(54,5)
  32. --m.write("||")
  33.  
  34. m.setTextColour(colors.orange)
  35. m.setCursorPos(16,7)
  36. m.write("Witaj na Serwerze Skyblock z Modami!")
  37. m.setTextColour(1)
  38. m.setCursorPos(10,10)
  39. m.write("NEWS: ")
  40. m.setTextColour(32)
  41. m.write(tostring(news))
  42. m.setTextColour(2)
  43. m.setCursorPos(18,12)
  44. m.write("Po twojej lewej i prawej stronie")
  45. m.setCursorPos(19,14)
  46. m.write("znajdziesz wszystkie informacje")
  47. m.setCursorPos(25,16)
  48. m.write("na temat serwera!")
  49. m.setCursorPos(20,19)
  50. m.write("P.S. Klikaj PPM na przyciski")
  51.  
  52.  
  53.  while true do
  54.    local event, side, x, y = os.pullEvent("monitor_touch")
  55.  
  56.    if x >= 54 and x <= 56 and y == 5 then
  57.      m.setBackgroundColor(colors.black)
  58.      m.clear()
  59.      m.setCursorPos(8,3)
  60.      m.setTextScale(3)
  61.      m.setTextColor(colors.red)
  62.      m.write("Restart...")
  63.      os.reboot()
  64.    end
  65.  end
Advertisement
Add Comment
Please, Sign In to add comment