Advertisement
sgamer_sebastien

LUALOL

Jul 24th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. screen = peripheral.wrap("right")
  2. screen.setTextScale(4)
  3.  
  4. function printCar(xV, yV, lettre)
  5. x1, x2 = screen.getSize()
  6. if x1 < xV then
  7. return
  8. else
  9. write(lettre)
  10. return
  11. end
  12. end
  13.  
  14. function printString(stringV)
  15. stringV = tostring(stringV)
  16. lenght = string.len(stringV)
  17. for i = 20,-lenght,-1 do
  18. screen.setCursorPos(i, 1)
  19. for j = 0,lenght do
  20. printCar(i + j, 1, string.sub(stringV, j + 1, j + 1))
  21. end
  22. sleep(0.4)
  23. shell.run("clear")
  24. end
  25. end
  26.  
  27. while true do
  28. shell.run("clear")
  29. messageAffi = http.get("https://www.dropbox.com/s/shh0ezzm64zf031/msg.txt")
  30. printString(messageAffi.readAll())
  31. end
  32. messageAffi.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement