edoreld

Untitled

Jun 9th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. while true do
  2. for i=1,10,1 do
  3. lamp = lamps[i]
  4. if (percentage > ((i - 1) * 10)) then
  5. lamp.setColor(0xFF0000)
  6. else
  7. lamp.setColor(0x000000)
  8. end
  9. end
  10. print(percentage)
  11. os.sleep(1)
  12.  
  13. tankinfo = tank.getTanks("unknown")
  14. percentage = tankinfo[1].amount / tankinfo[1].capacity * 100
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment