Advertisement
Xyzzy

MultiFloorLift - call-floor2

Jan 19th, 2013
190
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-F2")
  7.   sleep(0.3)
  8.   shell.run("F1-F2")
  9.  elseif fileContent == "3" then
  10.   print("F3-F2")
  11.   sleep(0.3)
  12.   shell.run("F3-F2")
  13.  elseif fileContent == "4" then
  14.   print("F4-F2")
  15.   sleep(0.3)
  16.   shell.run("F4-F2")
  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