Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local news
- local news_handle = http.get("http://37.59.67.50/xxx.txt")
- if not news_handle then
- news = "Nie mozna wczytac News'ow z serwera"
- else
- news = news_handle.readAll()
- news_handle.close()
- end
- sleep(3)
- local Logo = {
- [['||''|. || || ]],
- [[ || || ... .. ... ...... .... ... ... .... ... ... ]],
- [[ ||'''|. .| '|. || || ' .|' '' .|| || || .|...|| || || ]],
- [[ || || || || || || .|' .|' || || || || || || ]],
- [[.||...|' '|..|' .||. ||. ||....| '|..'|' .||. .||. || '|...' '|..'|.]],
- }
- m = peripheral.wrap("back")
- m.clear()
- term.redirect(m)
- m.setTextScale(1)
- m.setCursorPos(1,1)
- m.setTextColour(512)
- for i = 1, #Logo do
- print(Logo[i])
- end
- --m.setTextColor(colors.red)
- --m.setCursorPos(54,5)
- --m.write("||")
- m.setTextColour(colors.orange)
- m.setCursorPos(16,7)
- m.write("Witaj na Serwerze Skyblock z Modami!")
- m.setTextColour(1)
- m.setCursorPos(10,10)
- m.write("NEWS: ")
- m.setTextColour(32)
- m.write(tostring(news))
- m.setTextColour(2)
- m.setCursorPos(18,12)
- m.write("Po twojej lewej i prawej stronie")
- m.setCursorPos(19,14)
- m.write("znajdziesz wszystkie informacje")
- m.setCursorPos(25,16)
- m.write("na temat serwera!")
- m.setCursorPos(20,19)
- m.write("P.S. Klikaj PPM na przyciski")
- while true do
- local event, side, x, y = os.pullEvent("monitor_touch")
- if x >= 54 and x <= 56 and y == 5 then
- m.setBackgroundColor(colors.black)
- m.clear()
- m.setCursorPos(8,3)
- m.setTextScale(3)
- m.setTextColor(colors.red)
- m.write("Restart...")
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment