Advertisement
Wassaa

glasses

Jan 14th, 2014
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.15 KB | None | 0 0
  1. glass = peripheral.wrap("right")
  2. glass.clear()
  3. function welcome()
  4.     whitebox = glass.addBox(20, 20, 200, 60, 0xFFFFFF, 0.7)
  5.     header = glass.addText(45, 23, "Welcome to Inkubu's extractor!", 0x8A1220)
  6.     line1 = glass.addText(22, 33, "Drop your ore into the Hungry Chest", 0x0B3D07)
  7.     line2 = glass.addText(22, 43, "and type $$start in chat", 0x0B3D07)
  8.     line3 = glass.addText(22, 53, "to start the process", 0x0B3D07)
  9.     line4 = glass.addText(22, 63, "", 0x0B3D07)
  10.  
  11.  
  12. while true do
  13.     local e, msg = os.pullEvent("chat_command")
  14.     if msg == "start" then
  15.         print("starting extraction")
  16.         --text = glass.addText(45, 23, "Welcome to Inkubu's extractor!", 0x8A1220)
  17.         --whitebox = glass.addBox(20, 20, 200, 60, 0xFFFFFF, 0.7)
  18.         header.setText("Extracting ore...")
  19.         line1.setText("")
  20.         line2.setTExt("")      
  21.         line3.setText("")
  22.         line4.setTExt("")
  23.         os.sleep(5)
  24.         header.setText("Extracting Complete")
  25.         line1.setText("your flakes will be dropped")
  26.         line2.setText("in front of the computer")
  27.         line3.setText("")
  28.         line4.setTExt("")
  29.        
  30.     elseif msg == "no" then
  31.         print("no")
  32.         glass.clear()
  33.     else
  34.         print("not a correct command")
  35.     end
  36. end
  37. end
  38.  
  39. welcome()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement