Advertisement
NuAoA

Cow Farm

Mar 5th, 2013
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. --Cow Farm (custom)
  2. -- 0.2
  3. local tick = 0.4
  4. local dis = "left"
  5. local cable = "bottom"
  6. local track = 256
  7. local turret = 1
  8. local keepAlive = 8
  9. local targs = {...}
  10. if targs[1] ~= nil and targs[1] < 10 then
  11.     local keepAlive = targs[1]
  12. end
  13. rs.setBundledOutput(cable,0)
  14. for i=1,keepAlive do
  15.     rs.setOutput(dis,true)
  16.     sleep(tick)
  17.     rs.setOutput(dis,false)
  18.     sleep(tick)
  19. end
  20. sleep(2)
  21. rs.setBundledOutput(cable,track)
  22. sleep(12)
  23. rs.setBundledOutput(cable,turret+track)
  24. sleep(20)
  25. rs.setBundledOutput(cable,track)
  26. for i=1,keepAlive do
  27.     rs.setOutput(dis,true)
  28.     sleep(tick)
  29.     rs.setOutput(dis,false)
  30.     sleep(tick)
  31. end
  32. sleep(1)
  33. rs.setBundledOutput(cable,track)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement