Advertisement
Xyzzy

MultiFloorLift - call-floor3

Jan 19th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. counterFile = fs.open("counter", "r")
  2. fileContent = counterFile.readAll()
  3.  
  4.  
  5.  if fileContent == "1" then
  6.   print("F1-F3")
  7.   sleep(0.3)
  8.   shell.run("F1-F3")
  9.  elseif fileContent == "2" then
  10.   print("F2-F3")
  11.   sleep(0.3)
  12.   shell.run("F2-F3")
  13.  elseif fileContent == "4" then
  14.   print("F4-F3")
  15.   sleep(0.3)
  16.   shell.run("F4-F3")
  17.  else
  18.   print("run startup")
  19.   sleep(0.2)
  20.   shell.run("startup")
  21.  end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement