Advertisement
Guest User

startup

a guest
Jul 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 15.46 KB | None | 0 0
  1. -- Anfang der Config --
  2.  
  3. screen = peripheral.wrap("monitor_0")
  4. cell1 = peripheral.wrap("tile_thermalexpansion_cell_basic_name_0")
  5. cell2 = peripheral.wrap("tile_thermalexpansion_cell_basic_name_1")
  6. cell3 = peripheral.wrap("tile_thermalexpansion_cell_basic_name_2")
  7. cell4 = peripheral.wrap("tile_thermalexpansion_cell_basic_name_3")
  8. cell5 = peripheral.wrap("tile_thermalexpansion_cell_basic_name_4")
  9. cell6 = peripheral.wrap("tile_thermalexpansion_cell_basic_name_5")
  10.  
  11. -- Ende der Config --
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. screen.setBackgroundColor(8)
  19. screen.clear()
  20. screen.setTextColor(2)
  21. screen.setTextScale(2)
  22. screen.setCursorPos(8,4)
  23. screen.write("Zonga")
  24. screen.setTextColor(1)
  25. screen.write("LP")
  26. screen.setCursorPos(14,8)
  27. screen.write("Loading")
  28.  
  29.  
  30. while true do
  31.  
  32. max1 = cell1.getMaxEnergyStored()
  33. max2 = cell2.getMaxEnergyStored()
  34. max3 = cell3.getMaxEnergyStored()
  35. max4 = cell4.getMaxEnergyStored()
  36. max5 = cell5.getMaxEnergyStored()
  37. max6 = cell6.getMaxEnergyStored()
  38.  
  39. energy1 = cell1.getEnergyStored()
  40. energy2 = cell2.getEnergyStored()
  41. energy3 = cell3.getEnergyStored()
  42. energy4 = cell4.getEnergyStored()
  43. energy5 = cell5.getEnergyStored()
  44. energy6 = cell6.getEnergyStored()
  45.  
  46. fill1 = energy1 / max1 * 100
  47. fill2 = energy2 / max2 * 100
  48. fill3 = energy3 / max3 * 100
  49. fill4 = energy4 / max4 * 100
  50. fill5 = energy5 / max5 * 100
  51. fill6 = energy6 / max6 * 100
  52.  
  53. fill1 = math.floor(fill1)
  54. fill2 = math.floor(fill2)
  55. fill3 = math.floor(fill3)
  56. fill4 = math.floor(fill4)
  57. fill5 = math.floor(fill5)
  58. fill6 = math.floor(fill6)
  59.  
  60.  
  61.  
  62. local oldetc1 = cell1.getEnergyStored()
  63. local oldetc2 = cell2.getEnergyStored()
  64. local oldetc3 = cell3.getEnergyStored()
  65. local oldetc4 = cell4.getEnergyStored()
  66. local oldetc5 = cell5.getEnergyStored()
  67. local oldetc6 = cell6.getEnergyStored()
  68.  
  69. sleep(1)
  70.  
  71. local etc1 = cell1.getEnergyStored()
  72. local etc2 = cell2.getEnergyStored()
  73. local etc3 = cell3.getEnergyStored()
  74. local etc4 = cell4.getEnergyStored()
  75. local etc5 = cell5.getEnergyStored()
  76. local etc6 = cell6.getEnergyStored()
  77.  
  78. local max1etc = cell1.getMaxEnergyStored()
  79. local max2etc = cell2.getMaxEnergyStored()
  80. local max3etc = cell3.getMaxEnergyStored()
  81. local max4etc = cell4.getMaxEnergyStored()
  82. local max5etc = cell5.getMaxEnergyStored()
  83. local max6etc = cell6.getMaxEnergyStored()
  84.  
  85. local energyinsec1 = etc1 - oldetc1
  86. local energyinsec2 = etc2 - oldetc2
  87. local energyinsec3 = etc3 - oldetc3
  88. local energyinsec4 = etc4 - oldetc4
  89. local energyinsec5 = etc5 - oldetc5
  90. local energyinsec6 = etc6 - oldetc6
  91.  
  92. time1 = 0
  93. time2 = 0
  94. time3 = 0
  95. time4 = 0
  96. time5 = 0
  97. time6 = 0
  98.  
  99.  
  100. if energyinsec1 == 0 then
  101. until1 = 2
  102. end
  103. if energyinsec1 > 0 then
  104. until1 = 3
  105. end
  106. if energyinsec1 < 0 then
  107. energyinsec1 = energyinsec1 - energyinsec1 - energyinsec1
  108. until1 = 1
  109. end
  110.  
  111.  
  112. if energyinsec2 == 0 then
  113. until2 = 2
  114. end
  115. if energyinsec2 > 0 then
  116. until2 = 3
  117. end
  118. if energyinsec2 < 0 then
  119. energyinsec2 = energyinsec2 - energyinsec2 - energyinsec2
  120. until2 = 1
  121. end
  122.  
  123.  
  124. if energyinsec3 == 0 then
  125. until3 = 2
  126. end
  127. if energyinsec3 > 0 then
  128. until3 = 3
  129. end
  130. if energyinsec3 < 0 then
  131. energyinsec3 = energyinsec3 - energyinsec3 - energyinsec3
  132. until3 = 1
  133. end
  134.  
  135.  
  136. if energyinsec4 == 0 then
  137. until4 = 2
  138. end
  139. if energyinsec4 > 0 then
  140. until4 = 3
  141. end
  142. if energyinsec4 < 0 then
  143. energyinsec4 = energyinsec4 - energyinsec4 - energyinsec4
  144. until4 = 1
  145. end
  146.  
  147. if energyinsec5 == 0 then
  148. until5 = 2
  149. end
  150. if energyinsec5 > 0 then
  151. until5 = 3
  152. end
  153. if energyinsec5 < 0 then
  154. energyinsec5 = energyinsec5 - energyinsec5 - energyinsec5
  155. until5 = 1
  156. end
  157.  
  158.  
  159.  
  160. if energyinsec6 == 0 then
  161. until6 = 2
  162. end
  163. if energyinsec6 > 0 then
  164. until6 = 3
  165. end
  166. if energyinsec6 < 0 then
  167. energyinsec6 = energyinsec6 - energyinsec6 - energyinsec6
  168. until6 = 1
  169. end
  170.  
  171. if until1 == 3 then
  172.     difference1 = max1etc
  173.     difference1 = difference1 - etc1
  174.     time1 = difference1 / energyinsec1
  175. end
  176.  
  177. if until1 == 1 then
  178.     time1 = etc1 / energyinsec1
  179. end
  180.  
  181. hour1 = 0
  182. minute1 = 0
  183. second1 = time1
  184.  
  185. if  until1 == 2 then
  186. else
  187. while second1 > 59 do
  188.     second1 = second1 - 60
  189.     minute1 = minute1 + 1
  190. end
  191.  
  192. while minute1 > 59 do
  193.     minute1 = minute1 - 60
  194.     hour1 = hour1 + 1
  195. end
  196. end
  197. second1 = math.floor(second1)
  198.  
  199.  
  200.  
  201.  
  202. if until2 == 3 then
  203.     difference2 = max2etc
  204.     difference2 = difference2 - etc2
  205.     time2 = difference2 / energyinsec2
  206. end
  207.  
  208.  
  209.  
  210. if until2 == 1 then
  211.     time2 = etc2 / energyinsec2
  212. end
  213.  
  214. hour2 = 0
  215. minute2 = 0
  216. second2 = time2
  217.  
  218. if  until2 == 2 then
  219. else
  220. while second2 > 59 do
  221.     second2 = second2 - 60
  222.     minute2 = minute2 + 1
  223. end
  224.  
  225. while minute2 > 59 do
  226.     minute2 = minute2 - 60
  227.     hour2 = hour2 + 1
  228. end
  229. end
  230. second2 = math.floor(second2)
  231.  
  232.  
  233.  
  234.  
  235. if until3 == 3 then
  236.     difference3 = max3etc
  237.     difference3 = difference3 - etc3
  238.     time3 = difference3 / energyinsec3
  239. end
  240.  
  241.  
  242. if until3 == 1 then
  243.     time3 = etc3 / energyinsec3
  244. end
  245.  
  246. hour3 = 0
  247. minute3 = 0
  248. second3 = time3
  249.  
  250. if  until3 == 2 then
  251. else
  252. while second3 > 59 do
  253.     second3 = second3 - 60
  254.     minute3 = minute3 + 1
  255. end
  256.  
  257. while minute3 > 59 do
  258.     minute3 = minute3 - 60
  259.     hour3 = hour3 + 1
  260. end
  261. end
  262. second3 = math.floor(second3)
  263.  
  264.  
  265.  
  266.  
  267. if until4 == 3 then
  268.     difference4 = max4etc
  269.     difference4 = difference4 - etc4
  270.     time4 = difference4 / energyinsec4
  271. end
  272.  
  273.  
  274. if until4 == 1 then
  275.     time4 = etc4 / energyinsec4
  276. end
  277.  
  278. hour4 = 0
  279. minute4 = 0
  280. second4 = time4
  281.  
  282. if  until4 == 2 then
  283. else
  284. while second4 > 59 do
  285.     second4 = second4 - 60
  286.     minute4 = minute4 + 1
  287. end
  288.  
  289. while minute4 > 59 do
  290.     minute4 = minute4 - 60
  291.     hour4 = hour4 + 1
  292. end
  293. end
  294. second4 = math.floor(second4)
  295.  
  296.  
  297.  
  298.  
  299. if until5 == 3 then
  300.     difference5 = max5etc
  301.     difference5 = difference5 - etc5
  302.     time5 = difference5 / energyinsec5
  303. end
  304.  
  305.  
  306. if until5 == 1 then
  307.     time5 = etc5 / energyinsec5
  308. end
  309.  
  310. hour5 = 0
  311. minute5 = 0
  312. second5 = time5
  313.  
  314. if  until5 == 2 then
  315. else
  316. while second5 > 59 do
  317.     second5 = second5 - 60
  318.     minute5 = minute5 + 1
  319. end
  320.  
  321. while minute5 > 59 do
  322.     minute5 = minute5 - 60
  323.     hour5 = hour5 + 1
  324. end
  325. end
  326. second5 = math.floor(second5)
  327.  
  328.  
  329.  
  330.  
  331. if until6 == 3 then
  332.     difference6 = max6etc
  333.     difference6 = difference6 - etc6
  334.     time6 = difference6 / energyinsec6
  335. end
  336.  
  337.  
  338. if until6 == 1 then
  339.     time6 = etc6 / energyinsec6
  340. end
  341.  
  342. hour6 = 0
  343. minute6 = 0
  344. second6 = time6
  345.  
  346. if  until6 == 2 then
  347. else
  348. while second6 > 59 do
  349.     second6 = second6 - 60
  350.     minute6 = minute6 + 1
  351. end
  352.  
  353. while minute6 > 59 do
  354.     minute6 = minute6 - 60
  355.     hour6 = hour6 + 1
  356. end
  357. end
  358. second6 = math.floor(second6)
  359.  
  360.  
  361.  
  362. screen.setTextScale(1)
  363. screen.setBackgroundColor(32768)
  364. screen.clear()
  365. screen.setBackgroundColor(1)
  366. screen.setTextColor(1)
  367.  
  368. screen.setCursorPos(1,6)
  369. screen.clearLine()
  370. screen.setCursorPos(1,12)
  371. screen.clearLine()
  372. screen.setCursorPos(1,18)
  373. screen.clearLine()
  374.  
  375. screen.setCursorPos(20,1)
  376. screen.write(" ")
  377. screen.setCursorPos(20,2)
  378. screen.write(" ")
  379. screen.setCursorPos(20,3)
  380. screen.write(" ")
  381. screen.setCursorPos(20,4)
  382. screen.write(" ")
  383. screen.setCursorPos(20,5)
  384. screen.write(" ")
  385. screen.setCursorPos(20,6)
  386. screen.write(" ")
  387. screen.setCursorPos(20,7)
  388. screen.write(" ")
  389. screen.setCursorPos(20,8)
  390. screen.write(" ")
  391. screen.setCursorPos(20,9)
  392. screen.write(" ")
  393. screen.setCursorPos(20,10)
  394. screen.write(" ")
  395. screen.setCursorPos(20,11)
  396. screen.write(" ")
  397. screen.setCursorPos(20,12)
  398. screen.write(" ")
  399. screen.setCursorPos(20,13)
  400. screen.write(" ")
  401. screen.setCursorPos(20,14)
  402. screen.write(" ")
  403. screen.setCursorPos(20,15)
  404. screen.write(" ")
  405. screen.setCursorPos(20,16)
  406. screen.write(" ")
  407. screen.setCursorPos(20,17)
  408. screen.write(" ")
  409. screen.setCursorPos(20,18)
  410. screen.write(" ")
  411.  
  412.  
  413.  
  414. if until5 == 1 then
  415.     screen.setBackgroundColor(16)
  416. end
  417. if until5 == 2 then
  418.     screen.setBackgroundColor(8)
  419. end
  420. if until5 == 3 then
  421.     screen.setBackgroundColor(32)
  422. end
  423. if energy5 == 0 then
  424.     screen.setBackgroundColor(16384)
  425. end
  426. screen.setCursorPos(1,13)
  427. screen.write("                   ")
  428. screen.setCursorPos(1,14)
  429. screen.write("                   ")
  430. screen.setCursorPos(1,15)
  431. screen.write("                   ")
  432. screen.setCursorPos(1,16)
  433. screen.write("                   ")
  434. screen.setCursorPos(1,17)
  435. screen.write("                   ")
  436.  
  437. screen.setCursorPos(1,13)
  438. screen.write("Energy Cell 5")
  439. screen.setCursorPos(1,15)
  440. if max5 > 999999 then
  441.     local max5m = max5 / 1000000
  442.     screen.write("Capacity:"..max5m.."M RF")
  443. else
  444.     screen.write("Capacity:"..max5.." RF")
  445. end
  446.  
  447. screen.setCursorPos(1,16)
  448.  
  449. if energy5 > 999999 then
  450.     local energy5m = energy5 / 1000000
  451.     local energy5m = math.floor(energy5m)
  452.     screen.write("Fill:    "..energy5m.."M RF")
  453. else
  454.     screen.write("Fill:    "..energy5.." RF")
  455. end
  456.  
  457. screen.setCursorPos(1,17)
  458.  
  459. if until5 == 2 then
  460.     screen.write("ETC:     --:--:--")
  461. else
  462.     screen.write("ETC:     "..hour5..":"..minute5..":"..second5)
  463. end
  464.  
  465. screen.setCursorPos(16,13)
  466.  
  467. if fill5 < 10 then
  468.     screen.write("  "..fill5.."%")
  469. else
  470. if fill5 < 100 then
  471.     screen.write(" "..fill5.."%")
  472. else
  473.     screen.write(fill5.."%")
  474. end
  475. end
  476.  
  477. if until3 == 1 then
  478.     screen.setBackgroundColor(16)
  479. end
  480. if until3 == 2 then
  481.     screen.setBackgroundColor(8)
  482. end
  483. if until3 == 3 then
  484.     screen.setBackgroundColor(32)
  485. end
  486. if energy3 == 0 then
  487.     screen.setBackgroundColor(16384)
  488. end
  489. screen.setCursorPos(1,7)
  490. screen.write("                   ")
  491. screen.setCursorPos(1,8)
  492. screen.write("                   ")
  493. screen.setCursorPos(1,9)
  494. screen.write("                   ")
  495. screen.setCursorPos(1,10)
  496. screen.write("                   ")
  497. screen.setCursorPos(1,11)
  498. screen.write("                   ")
  499.  
  500. screen.setCursorPos(1,7)
  501. screen.write("Energy Cell 3")
  502. screen.setCursorPos(1,9)
  503. if max3 > 999999 then
  504.     local max3m = max3 / 1000000
  505.     screen.write("Capacity:"..max3m.."M RF")
  506. else
  507.     screen.write("Capacity:"..max3.." RF")
  508. end
  509.  
  510. screen.setCursorPos(1,10)
  511.  
  512. if energy3 > 999999 then
  513.     local energy3m = energy3 / 1000000
  514.     local energy3m = math.floor(energy3m)
  515.     screen.write("Fill:    "..energy3m.."M RF")
  516. else
  517.     screen.write("Fill:    "..energy3.." RF")
  518. end
  519.  
  520. screen.setCursorPos(1,11)
  521.  
  522. if until3 == 2 then
  523.     screen.write("ETC:     --:--:--")
  524. else
  525.     screen.write("ETC:     "..hour3..":"..minute3..":"..second3)
  526. end
  527.  
  528. screen.setCursorPos(16,7)
  529.  
  530. if fill3 < 10 then
  531.     screen.write("  "..fill3.."%")
  532. else
  533. if fill3 < 100 then
  534.     screen.write(" "..fill3.."%")
  535. else
  536.     screen.write(fill3.."%")
  537. end
  538. end
  539.  
  540. if until1 == 1 then
  541.     screen.setBackgroundColor(16)
  542. end
  543. if until1 == 2 then
  544.     screen.setBackgroundColor(8)
  545. end
  546. if until1 == 3 then
  547.     screen.setBackgroundColor(32)
  548. end
  549. if energy1 == 0 then
  550.     screen.setBackgroundColor(16384)
  551. end
  552. screen.setCursorPos(1,1)
  553. screen.write("                   ")
  554. screen.setCursorPos(1,2)
  555. screen.write("                   ")
  556. screen.setCursorPos(1,3)
  557. screen.write("                   ")
  558. screen.setCursorPos(1,4)
  559. screen.write("                   ")
  560. screen.setCursorPos(1,5)
  561. screen.write("                   ")
  562.  
  563. screen.setCursorPos(1,1)
  564. screen.write("Energy Cell 1")
  565. screen.setCursorPos(1,3)
  566. if max1 > 999999 then
  567.     local max1m = max1 / 1000000
  568.     screen.write("Capacity:"..max1m.."M RF")
  569. else
  570.     screen.write("Capacity:"..max1.." RF")
  571. end
  572.  
  573. screen.setCursorPos(1,4)
  574.  
  575. if energy1 > 999999 then
  576.     local energy1m = energy1 / 1000000
  577.     local energy1m = math.floor(energy1m)
  578.     screen.write("Fill:    "..energy1m.."M RF")
  579. else
  580.     screen.write("Fill:    "..energy1.." RF")
  581. end
  582.  
  583. screen.setCursorPos(1,5)
  584.  
  585. if until1 == 2 then
  586.     screen.write("ETC:     --:--:--")
  587. else
  588.     screen.write("ETC:     "..hour1..":"..minute1..":"..second1)
  589. end
  590.  
  591. screen.setCursorPos(16,1)
  592.  
  593. if fill1 < 10 then
  594.     screen.write("  "..fill1.."%")
  595. else
  596. if fill1 < 100 then
  597.     screen.write(" "..fill1.."%")
  598. else
  599.     screen.write(fill1.."%")
  600. end
  601. end
  602.  
  603.  
  604. if until6 == 1 then
  605.     screen.setBackgroundColor(16)
  606. end
  607. if until6 == 2 then
  608.     screen.setBackgroundColor(8)
  609. end
  610. if until6 == 3 then
  611.     screen.setBackgroundColor(32)
  612. end
  613. if energy6 == 0 then
  614.     screen.setBackgroundColor(16384)
  615. end
  616. screen.setCursorPos(21,13)
  617. screen.write("                   ")
  618. screen.setCursorPos(21,14)
  619. screen.write("                   ")
  620. screen.setCursorPos(21,15)
  621. screen.write("                   ")
  622. screen.setCursorPos(21,16)
  623. screen.write("                   ")
  624. screen.setCursorPos(21,17)
  625. screen.write("                   ")
  626.  
  627. screen.setCursorPos(21,13)
  628. screen.write("Energy Cell 6")
  629. screen.setCursorPos(21,15)
  630. if max6 > 999999 then
  631.     local max6m = max6 / 1000000
  632.     screen.write("Capacity:"..max6m.."M RF")
  633. else
  634.     screen.write("Capacity:"..max6.." RF")
  635. end
  636.  
  637. screen.setCursorPos(21,16)
  638.  
  639. if energy6 > 999999 then
  640.     local energy6m = energy6 / 1000000
  641.     local energy6m = math.floor(energy6m)
  642.     screen.write("Fill:    "..energy6m.."M RF")
  643. else
  644.     screen.write("Fill:    "..energy6.." RF")
  645. end
  646.  
  647. screen.setCursorPos(21,17)
  648.  
  649. if until6 == 2 then
  650.     screen.write("ETC:     --:--:--")
  651. else
  652.     screen.write("ETC:     "..hour6..":"..minute6..":"..second6)
  653. end
  654.  
  655. screen.setCursorPos(36,13)
  656.  
  657. if fill6 < 10 then
  658.     screen.write("  "..fill6.."%")
  659. else
  660. if fill6 < 100 then
  661.     screen.write(" "..fill6.."%")
  662. else
  663.     screen.write(fill6.."%")
  664. end
  665. end
  666.  
  667. if until4 == 1 then
  668.     screen.setBackgroundColor(16)
  669. end
  670. if until4 == 2 then
  671.     screen.setBackgroundColor(8)
  672. end
  673. if until4 == 3 then
  674.     screen.setBackgroundColor(32)
  675. end
  676. if energy4 == 0 then
  677.     screen.setBackgroundColor(16384)
  678. end
  679. screen.setCursorPos(21,7)
  680. screen.write("                   ")
  681. screen.setCursorPos(21,8)
  682. screen.write("                   ")
  683. screen.setCursorPos(21,9)
  684. screen.write("                   ")
  685. screen.setCursorPos(21,10)
  686. screen.write("                   ")
  687. screen.setCursorPos(21,11)
  688. screen.write("                   ")
  689.  
  690. screen.setCursorPos(21,7)
  691. screen.write("Energy Cell 4")
  692. screen.setCursorPos(21,9)
  693. if max4 > 999999 then
  694.     local max4m = max4 / 1000000
  695.     screen.write("Capacity:"..max4m.."M RF")
  696. else
  697.     screen.write("Capacity:"..max4.." RF")
  698. end
  699.  
  700. screen.setCursorPos(21,10)
  701.  
  702. if energy4 > 999999 then
  703.     local energy4m = energy4 / 1000000
  704.     local energy4m = math.floor(energy4m)
  705.     screen.write("Fill:    "..energy4m.."M RF")
  706. else
  707.     screen.write("Fill:    "..energy4.." RF")
  708. end
  709.  
  710. screen.setCursorPos(21,11)
  711.  
  712. if until4 == 2 then
  713.     screen.write("ETC:     --:--:--")
  714. else
  715.     screen.write("ETC:     "..hour4..":"..minute4..":"..second4)
  716. end
  717.  
  718. screen.setCursorPos(36,7)
  719.  
  720. if fill4 < 10 then
  721.     screen.write("  "..fill4.."%")
  722. else
  723. if fill4 < 100 then
  724.     screen.write(" "..fill4.."%")
  725. else
  726.     screen.write(fill4.."%")
  727. end
  728. end
  729.  
  730. if until2 == 1 then
  731.     screen.setBackgroundColor(16)
  732. end
  733. if until2 == 2 then
  734.     screen.setBackgroundColor(8)
  735. end
  736. if until2 == 3 then
  737.     screen.setBackgroundColor(32)
  738. end
  739. if energy2 == 0 then
  740.     screen.setBackgroundColor(16384)
  741. end
  742. screen.setCursorPos(21,1)
  743. screen.write("                   ")
  744. screen.setCursorPos(21,2)
  745. screen.write("                   ")
  746. screen.setCursorPos(21,3)
  747. screen.write("                   ")
  748. screen.setCursorPos(21,4)
  749. screen.write("                   ")
  750. screen.setCursorPos(21,5)
  751. screen.write("                   ")
  752.  
  753. screen.setCursorPos(21,1)
  754. screen.write("Energy Cell 2")
  755. screen.setCursorPos(21,3)
  756. if max2 > 999999 then
  757.     local max2m = max2 / 1000000
  758.     screen.write("Capacity:"..max2m.."M RF")
  759. else
  760.     screen.write("Capacity:"..max2.." RF")
  761. end
  762.  
  763. screen.setCursorPos(21,4)
  764.  
  765. if energy2 > 999999 then
  766.     local energy2m = energy2 / 1000000
  767.     local energy2m = math.floor(energy2m)
  768.     screen.write("Fill:    "..energy2m.."M RF")
  769. else
  770.     screen.write("Fill:    "..energy2.." RF")
  771. end
  772.  
  773. screen.setCursorPos(21,5)
  774.  
  775. if until2 == 2 then
  776.     screen.write("ETC:     --:--:--")
  777. else
  778.     screen.write("ETC:     "..hour2..":"..minute2..":"..second2)
  779. end
  780.  
  781. screen.setCursorPos(36,1)
  782.  
  783. if fill2 < 10 then
  784.     screen.write("  "..fill2.."%")
  785. else
  786. if fill2 < 100 then
  787.     screen.write(" "..fill2.."%")
  788. else
  789.     screen.write(fill2.."%")
  790. end
  791. end
  792. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement