Xyzzy

MultiFloorLift - call-floor2

Jan 19th, 2013
74
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 == "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
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×