SHARE
TWEET

MultiFloorLift - call-floor1

Xyzzy Jan 19th, 2013 (edited) 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. counterFile = fs.open("counter", "r")
  2. fileContent = counterFile.readAll()
  3.  
  4.  
  5.  if fileContent == "2" then
  6.   print("F2-F1")
  7.   sleep(0.3)
  8.   shell.run("F2-F1")
  9.  elseif fileContent == "3" then
  10.   print("F3-F1")
  11.   sleep(0.3)
  12.   shell.run("F3-F1")
  13.  elseif fileContent == "4" then
  14.   print("F4-F1")
  15.   sleep(0.3)
  16.   shell.run("F4-F1")
  17.  else
  18.   print("run startup")
  19.   sleep(0.2)
  20.   shell.run("startup")
  21.  end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top