Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. for add, proxy in pairs(reactors) do
  2. if proxy.getActive() then
  3. if steamchange == 1 then
  4. proxy.setAllControlRodLevels(100 - (steamreq / proxy.getHotFluidAmountMax()) * 100)
  5. os.sleep(5)
  6. if proxy.getHotFluidProducedLastTick() < steamreq then
  7. for i = 0, (proxy.getNumberOfControlRods() - 1) do
  8. if proxy.getControlRodLevel(i) > 0 then
  9. proxy.setControlRodLevel(i, proxy.getControlRodLevel(i) - 1)
  10. os.sleep(1.5)
  11. if proxy.getHotFluidProducedLastTick() > steamreq then
  12. <<<<at this point i want to exit all the way back to where the if statement checks to see if steamchange is 1>>>>
  13. end
  14. end
  15. end
  16. elseif proxy.getHotFluidProducedLastTick() > steamreq then
  17. for i = 0, (proxy.getNumberOfControlRods() - 1) do
  18. if proxy.getControlRodLevel(i) < 100 then
  19. proxy.setControlRodLevel(i, proxy.getControlRodLevel(i) + 1)
  20. os.sleep(1.5)
  21. if proxy.getHotFluidProducedLastTick() < steamreq then
  22. <<<<at this point i want to exit all the way back to where the if statement checks to see if steamchange is 1>>>>
  23. end
  24. end
  25. end
  26. end
  27. end
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement