Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 4th, 2013  |  syntax: None  |  size: 4.13 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --Written by Ackly14 -version 0.1a
  2. term.clear()
  3. term.setCursorPos(1,1)
  4.  
  5. print("====================")
  6. print("| Eu Converter Pro |")
  7. print("====================")
  8.  
  9. print("Please enter in your current eu/t")
  10. print("(please note: not max eu/t but total eu/t)")
  11. x = tonumber(read())
  12. print("")
  13. print("Please pick one of the listed options to convert")
  14. print("CASE SENSITAVE")
  15. print("====================")
  16. print("   Power  Storage   ")
  17. print("====================")
  18. os.sleep(2)
  19. print("BatBox")
  20. os.sleep(1)
  21. print("Re-Battery")
  22. os.sleep(1)
  23. print("BatPack")
  24. os.sleep(1)
  25. print("Energy Crystal")--this all just lists the options
  26. os.sleep(1)
  27. print("Lappack")
  28. os.sleep(1)
  29. print("MFE")
  30. os.sleep(1)
  31. print("Lithium Batpack")
  32. os.sleep(1)
  33. print("Laptoron Crystal")
  34. os.sleep(1)
  35. print("Advanced Lappack")
  36. os.sleep(1)
  37. print("MFSU")
  38. os.sleep(1)
  39. print("Ultimate Lappack")
  40. os.sleep(1)
  41. print("====================")
  42. print(" Matter Fabrication ")
  43. print("====================")
  44. print("UU")
  45. print("Scrap")
  46. item = read()
  47. term.clear()
  48. term.setCursorPos(1,1)
  49.  
  50. --Formulas
  51.  
  52. if item == "BatBox" then
  53.  resultm = (4000/(20*x))/60
  54.  print("Minutes to Fill:")
  55.  print(resultm)
  56.  results = (4000/(20*x))
  57.  print("Total Secconds to Fill:")
  58.  print(results)
  59. elseif item == "Re-Battery" then
  60.  resultm = (10000/(20*x))/60
  61.  print("Minutes to Fill:")
  62.  print(resultm)
  63.  results = (10000/(20*x))
  64.  print("Total Secconds to Fill:")
  65.  print(results)
  66. elseif item == "BatPack" then
  67.  resultm = (60000/(20*x))/60
  68.  print("Minutes to Fill:")
  69.  print(resultm)
  70.  results = (60000/(20*x))
  71.  print("Total Secconds to Fill:")
  72.  print(results)
  73. elseif item == "Energy Crystal" then
  74.  resultm = (100000/(20*x))/60
  75.  print("Minutes to Fill:")
  76.  print(resultm)
  77.  results = (100000/(20*x))
  78.  print("Total Secconds To Fill:")
  79.  print(results)
  80. elseif item == "Lappack" then
  81.  resultm = (300000/(20*x))/60
  82.  print("Minuets to Fill:")
  83.  print(resultm)
  84.  results = (300000/(20*x))
  85.  print("Total Secconds to Fill:")
  86.  print(results)
  87. elseif item == "MFE" then
  88.  resultm = (600000/(20*x))/60
  89.  print("Minutes to Fill:")
  90.  print(resultm)
  91.  results = (600000/(20*x))
  92.  print("Total Secconds to Fill:")
  93.  print(results)
  94. elseif item == "Lithium Batpack" then
  95.  resultm = (600000/(20*x))/60
  96.  print("Minutes to Fill:")
  97.  print(resultm)
  98.  results = (600000/(20*x))
  99.  print("Total Secconds to Fill:")
  100.  print(results)
  101. elseif item == "Lapotron Crystal" then
  102.  resultm = (1000000/(20*x))/60
  103.  print("Minutes to Fill:")
  104.  print(resultm)
  105.  results = (1000000/(20*x))
  106.  print("Total Secconds to Fill:")
  107.  print(results)
  108. elseif itme == "Advanced Lappack" then
  109.  resultm = (1000000/(20*x))/60
  110.  print("Minutes to Fill:")
  111.  print(resultm)
  112.  results = (1000000/(20*x))
  113.  print("Total Secconds to Fill:")
  114.  print(results)
  115. elseif item == "MFSU" then
  116.  resultm = (10000000/(20*x))/60
  117.  print("Minutes to Fill:")
  118.  print(resultm)
  119.  results = (10000000/(20*x))
  120.  print("Total Secconds to Fill:")
  121.  print(results)
  122. elseif item == "Ultimate Lappack" then
  123.  resultm = (10000000/(20*x))/60
  124.  print("Minutes to Fill:")
  125.  print(resultm)
  126.  results = (10000000/(20*x))
  127.  print("Total Secconds to Fill:")
  128.  print(results)
  129. end
  130. if item == "UU" then
  131.  print("are you using solars?")
  132.  print("yes or no")
  133.  ans = read()
  134.   if ans == "yes" then
  135.    result = (16666667/((12*x)+(8*(x/8))))/60
  136.    write("It will Take: ")
  137.    write(result)
  138.    write(" Minutes to Make 1 UU\n")
  139.   end
  140.   if ans == "no" then
  141.    result = (16666667/(20*x))/60
  142.    write("It will Take: ")
  143.    write(result)
  144.    write(" Minutes to Make 1 UU\n")
  145.   end
  146.  end
  147. if item == "Scrap" then
  148.  print("are you using solars?"
  149.  print("yes or no")
  150.  ans = read()
  151.   if ans == "yes" then
  152.    result = (16666667((12*x)+(8*(x/8))))/34
  153.    write("You will use scrap every: ")
  154.    write(result)
  155.    write(" Secconds")
  156.   if ans == "no" then
  157.    result = (16666667/(20*x))/34
  158.    write("You will use scrap every: ")
  159.    write(result)
  160.    write(" secconds")
  161.   else
  162.    print("Unacceptable answer")
  163.    print("please try again")
  164.   end
  165. else
  166.    print("Unacceptable answer")
  167.    print("please try again")
  168.  end
  169.  
  170.  
  171. print("Press any key to continue")
  172. os.pullEvent("key")
  173. term.clear()
  174. term.setCursorPos(1,1)
clone this paste RAW Paste Data