Advertisement
TheGameBoy_95

Untitled

May 15th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.01 KB | None | 0 0
  1. local x, y, xsize, ysize
  2. mon = peripheral.wrap("front")
  3. mon.setTextScale(1.4)
  4. modem = peripheral.wrap("bottom")
  5.  
  6. while true do
  7.  
  8. event, side, xpos, ypos = os.pullEvent("monitor_touch")
  9. mon.setCursorPos(6,2)
  10. mon.setTextColor(colors.lime)
  11. mon.write("O")
  12. sleep(0.1)
  13. mon.write("u")
  14. sleep(0.1)
  15. mon.write("v")
  16. sleep(0.1)
  17. mon.write("e")
  18. sleep(0.1)
  19. mon.write("r")
  20. sleep(0.1)
  21. mon.write("t")
  22. sleep(0.1)
  23. mon.write("u")
  24. sleep(0.1)
  25. mon.write("r")
  26. sleep(0.1)
  27. mon.write("e")
  28. sleep(0.1)
  29. mon.write(" ")
  30. sleep(0.1)
  31.  
  32. mon.setCursorPos(5,3)
  33. mon.write("d")
  34. sleep(0.1)
  35. mon.write("e")
  36. sleep(0.1)
  37. mon.write(" ")
  38. sleep(0.1)
  39. mon.write("l")
  40. sleep(0.1)
  41. mon.write("a")
  42. sleep(0.1)
  43. mon.write(" ")
  44. sleep(0.1)
  45. mon.write("p")
  46. sleep(0.1)
  47. mon.write("o")
  48. sleep(0.1)
  49. mon.write("r")
  50. sleep(0.1)
  51. mon.write("t")
  52. sleep(0.2)
  53. mon.write("e")
  54. sleep(0.4)
  55. mon.clear()
  56.  
  57. mon.setCursorPos(6,2)
  58. mon.setTextColor(colors.yellow)
  59. mon.write("VEUILLEZ")
  60. mon.setCursorPos(6.8,3)
  61. mon.write("RECULER")
  62. sleep(0.5)
  63. mon.clear()
  64. sleep(0.3)
  65. mon.setCursorPos(6,2)
  66. mon.setTextColor(colors.yellow)
  67. mon.write("VEUILLEZ")
  68. mon.setCursorPos(6.8,3)
  69. mon.write("RECULER")
  70. sleep(0.5)
  71. mon.clear()
  72. sleep(0.3)
  73. mon.setCursorPos(6,2)
  74. mon.setTextColor(colors.yellow)
  75. mon.write("VEUILLEZ")
  76. mon.setCursorPos(6.8,3)
  77. mon.write("RECULER")
  78. sleep(0.5)
  79. mon.clear()
  80. sleep(0.3)
  81. mon.setCursorPos(6,2)
  82. mon.setTextColor(colors.yellow)
  83. mon.write("VEUILLEZ")
  84. mon.setCursorPos(6.8,3)
  85. mon.write("RECULER")
  86. sleep(0.5)
  87. mon.clear()
  88. sleep(2)
  89. mon.clear()
  90. mon.setCursorPos(1.5,1)
  91. mon.setTextScale(3)
  92. mon.setTextColor(colors.green)
  93. mon.write("65%")
  94. mon.setCursorPos(1,5)
  95. mon.setTextScale(0.8)
  96. mon.write("QUANTITE LIMITE DE")
  97. mon.setCursorPos(1,6)
  98. mon.write("MAGIE SOMBRE NORMALE!")
  99.  
  100. sleep(2)
  101. mon.clear()
  102. mon.setCursorPos(1.5,1)
  103. mon.setTextScale(3)
  104. mon.setTextColor(colors.orange)
  105. mon.write("79%")
  106. mon.setCursorPos(1,5)
  107. mon.setTextScale(0.8)
  108. mon.write("QUANTITE LIMITE DE")
  109. mon.setCursorPos(1,6)
  110. mon.write("MAGIE SOMBRE ATTEINTE!")
  111. sleep(2)
  112. mon.clear()
  113. mon.setCursorPos(1.5,1)
  114. mon.setTextScale(3)
  115. mon.setTextColor(colors.red)
  116. mon.write("92%")
  117. mon.setCursorPos(1,5)
  118. mon.setTextScale(0.8)
  119. mon.write("QUANTITE LIMITE DE")
  120. mon.setCursorPos(1,6)
  121. mon.write("MAGIE SOMBRE ATTEINTE!")
  122. sleep(1)
  123. mon.clear()
  124. mon.setTextScale(1.4)
  125. mon.setCursorPos(6,2)
  126. mon.write("FERMETURE")
  127. mon.setCursorPos(5.5,3)
  128. mon.setTextScale(1.4)
  129. mon.write("DE LA PORTE")
  130. sleep(3)
  131. mon.clear()
  132.  
  133. mon.setTextScale(1)
  134. mon.setCursorPos(1,1)
  135. mon.setTextColor(colors.white)
  136. mon.write("S")
  137. sleep(0.1)
  138. mon.write("h")
  139. sleep(0.1)
  140. mon.write("u")
  141. sleep(0.1)
  142. mon.write("t")
  143. sleep(0.1)
  144. mon.write("d")
  145. sleep(0.1)
  146. mon.write("o")
  147. sleep(0.1)
  148. mon.write("w")
  149. sleep(0.1)
  150. mon.write("n")
  151. sleep(0.1)
  152. mon.write(".")
  153. sleep(0.3)
  154. mon.write(".")
  155. sleep(0.3)
  156. mon.write(".")
  157. sleep(1)
  158. mon.clear()
  159.  
  160. end
  161.  
  162. modem.transmit(idChannel,idChannel,msg)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement