Guest User

redrec3

a guest
Aug 27th, 2013
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.26 KB | None | 0 0
  1. variable = 0
  2. a = 1
  3. b = 2
  4. c = 3
  5. d = 4
  6. e = 5
  7. f = 6
  8. g = 7
  9. h = 8
  10. i = 9
  11. j = 10
  12. k = 11
  13. l = 12
  14. m = 13
  15. n = 14
  16. o = 15
  17. p = 16
  18. q = 17
  19. r = 18
  20. s = 19
  21. t = 20
  22. u = 21
  23. v = 22
  24. w = 23
  25. x = 24
  26. y = 25
  27. z = 26
  28. space = 27
  29. period = 28
  30. exclamationpoint = 29
  31. questionmark = 30
  32. bb = true
  33. count = 1
  34. function recieve()
  35.   while bb == true do
  36.     sleep(0)
  37.     if redstone.getInput("top") == true then
  38.       count = count + 1
  39.       end
  40.     if not count == 1 then
  41.       if redstone.getInput("top") == false then
  42.         bb = false
  43.         print("chains")
  44.         end  
  45.     sleep(0.3)
  46.     print(count)
  47.     end
  48.   aa = count
  49.   aa = aa - 1
  50.   count = 1
  51.   bb = true
  52.   end
  53. function show()
  54.   print("show")
  55.   if aa == 1 then
  56.     io.write("a")
  57.     end
  58.   if aa == 2 then
  59.     io.write("b")
  60.     end
  61.   if aa == 3 then
  62.     io.write("c")
  63.     end
  64.   if aa == 4 then
  65.     io.write("d")
  66.     end
  67.   if aa == 5 then
  68.     io.write("e")
  69.     end
  70.   if aa == 6 then
  71.     io.write("f")
  72.     end
  73.   if aa == 7 then
  74.     io.write("g")
  75.     end
  76.   if aa == 8 then
  77.     io.write("h")
  78.     end
  79.   if aa == 9 then
  80.     io.write("i")
  81.     end
  82.   if aa == 10 then
  83.     io.write("j")
  84.     end
  85.   if aa == 11 then
  86.     io.write("k")
  87.     end
  88.   if aa == 12 then
  89.     io.write("l")
  90.     end
  91.   if aa == 13 then
  92.     io.write("m")
  93.     end
  94.   if aa == 14 then
  95.     io.write("n")
  96.     end
  97.   if aa == 15 then
  98.     io.write("o")
  99.     end
  100.   if aa == 16 then
  101.     io.write("p")
  102.     end
  103.   if aa == 17 then
  104.     io.write("q")
  105.     end
  106.   if aa == 18 then
  107.     io.write("r")
  108.     end
  109.   if aa == 19 then
  110.     io.write("s")
  111.     end
  112.   if aa == 20 then
  113.     io.write("t")
  114.     end
  115.   if aa == 21 then
  116.     io.write("u")
  117.     end
  118.   if aa == 22 then
  119.     io.write("v")
  120.     end
  121.   if aa == 23 then
  122.     io.write("w")
  123.     end
  124.   if aa == 24 then
  125.     io.write("x")
  126.     end
  127.   if aa == 25 then
  128.     io.write("y")
  129.     end
  130.   if aa == 26 then
  131.     io.write("z")
  132.     end
  133.   if aa == 27 then
  134.     io.write(" ")
  135.     end
  136.   if aa == 28 then
  137.     io.write(".")
  138.     end
  139.   if aa == 29 then
  140.     io.write("!")
  141.     end
  142.   if aa == 30 then
  143.     io.write("?")
  144.     end
  145.   if aa == 31 then
  146.     print(" ")
  147.     end
  148.   bb = 999
  149.   variable = 0
  150.   aa = 0  
  151.   end
  152. end  
  153. looper = 100
  154. recieve()
  155. print("done")
Advertisement
Add Comment
Please, Sign In to add comment