Guest User

redcomtest

a guest
Aug 27th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.42 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. newline = 31
  33. aa = 0
  34. function send()
  35.   redstone.setOutput("top",true)
  36.   sleep(0.3*aa)
  37.   redstone.setOutput("top",false)
  38.   sleep(0.3)
  39.   end
  40. function decifer()
  41.   if bb == "a" then
  42.     aa = a
  43.     end
  44.   if bb == "b" then
  45.     aa = b
  46.     end
  47.   if bb == "c" then
  48.     aa = c
  49.     end
  50.   if bb == "d" then
  51.     aa = d
  52.     end
  53.   if bb == "e" then
  54.     aa = e
  55.     end
  56.   if bb == "f" then
  57.     aa = f
  58.     end
  59.   if bb == "g" then
  60.     aa = g
  61.     end
  62.   if bb == "h" then
  63.     aa = h
  64.     end
  65.   if bb == "i" then
  66.     aa = I
  67.     end
  68.   if bb == "j" then
  69.     aa = j
  70.     end
  71.   if bb == "k" then
  72.     aa = k
  73.     end
  74.   if bb == "l" then
  75.     aa = l
  76.     end
  77.   if bb == "m" then
  78.     aa = m
  79.     end
  80.   if bb == "n" then
  81.     aa = n
  82.     end
  83.   if bb == "o" then
  84.     aa = o
  85.     end
  86.   if bb == "p" then
  87.     aa = p
  88.     end
  89.   if bb == "q" then
  90.     aa = q
  91.     end
  92.   if bb == "r" then
  93.     aa = r
  94.     end
  95.   if bb == "s" then
  96.     aa = s
  97.     end
  98.   if bb == "t" then
  99.     aa = t
  100.     end
  101.   if bb == "u" then
  102.     aa = u
  103.     end
  104.   if bb == "v" then
  105.     aa = v
  106.     end
  107.   if bb == "x" then
  108.     aa = x
  109.     end
  110.   if bb == "y" then
  111.     aa = y
  112.     end
  113.   if bb == "z" then
  114.     aa = z
  115.     end
  116.   if bb == "space" then
  117.     aa = space
  118.     end
  119.   if bb == " " then
  120.     aa = space  
  121.   if bb == "period" then
  122.     aa = period
  123.     end
  124.   if bb == "." then
  125.     aa = period
  126.     end
  127.   if bb == "!" then
  128.     aa = exclamationpoint
  129.     end
  130.   if bb == "?" then
  131.     aa = questionmark
  132.     end
  133.   if bb == "$" then
  134.     aa = newline
  135.     end
  136.   end
  137. end  
  138. function messenger()
  139.   message = io.read()
  140.   bb = nil
  141.   ddd = nil
  142.   end
  143. function kurvielpc()
  144.   pattern = "(.)"
  145.   bbb = pattern
  146.   bb = string.match(message, bbb)
  147.   ddd = bb
  148.   end  
  149. function kurviel()
  150.   pattern = "(.)"
  151.   bbb = ddd
  152.   bbb = bbb .. pattern
  153.   bb = string.match(message, bbb)
  154.   ddd = ddd .. bb
  155.   end
  156. function test()
  157.   pattern = "(.)"
  158.   bbb = ddd
  159.   bbb = bbb .. pattern
  160.   bb = string.match(message, bbb)
  161.   end
  162. messenger()
  163. kurvielpc()
  164. decifer()
  165. send()
  166. print(ddd)
  167. for i = 1, 5 do
  168.   aa = 0
  169.   kurviel()
  170.   decifer()
  171.   send()
  172.   print(ddd)
  173.   end
Advertisement
Add Comment
Please, Sign In to add comment