Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if warpdriveCommons then os.unloadAPI("warpdriveCommons") end
- if not os.loadAPI("warpdrive/warpdriveCommons") then error("missing warpdriveCommons") end
- local w = warpdriveCommons.w
- local data
- ----------- Ship support
- local monitor_textScale = 0.5
- local ship
- local ship_front = 0
- local ship_right = 0
- local ship_up = 0
- local ship_back = 0
- local ship_left = 0
- local ship_down = 0
- local ship_isInHyper = false
- local ship_x, ship_y, ship_z = 0, 0, 0
- local ship_xTarget, ship_yTarget, ship_zTarget = 0, 0, 0
- local ship_actualDistance = 0
- local ship_energyRequired = 0
- local ship_movement = { 0, 0, 0 }
- local ship_rotationSteps = 0
- local ship_indexPlayer = 0
- local ship_arrayPlayers = { }
- local ship_indexTarget = 0
- w.clear()
- local lmonitor = w.device_get("top")
- lmonitor.setTextScale(monitor_textScale)
- w.page_begin("Zephyr3 - Connections")
- w.writeLn("")
- w.setColorSuccess()
- w.writeLn("1 monitor detected")
- w.writeLn("Ship controller detected")
- w.writeLn("")
- w.setColorNormal()
- w.writeLn("Booting Ship")
- w.write("- acquiring parameters: ")
- w.setColorSuccess()
- w.writeLn("ok")
- w.setColorNormal()
- w.write("- checking assembly : ")
- local timeout = 10
- local isValid, message
- repeat
- w.sleep(0.05)
- timeout = timeout - 1
- until isValid == true or timeout < 0
- if timeout < 0 then
- w.setColorWarning()
- w.writeLn("failed")
- w.writeLn(message)
- w.setColorNormal()
- w.sleep(6)
- else
- w.setColorSuccess()
- w.writeLn("passed")
- end
- w.sleep(0.2)
- w.setColorNormal()
- w.write("- celestial position : ")
- timeout = 10
- local pos
- repeat
- w.sleep(0.05)
- timeout = timeout - 1
- until pos ~= nil or timeout < 0
- if timeout < 0 then
- w.setColorWarning()
- w.writeLn("failed")
- w.writeLn("")
- w.writeLn("Something is wrong here, rebooting...")
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(.3)
- w.writeLn("SYSTEM FAILURE.")
- w.sleep(4)
- w.clear()
- local lmonitor = w.device_get("top")
- lmonitor.setTextScale(monitor_textScale)
- w.page_begin("Zephyr3 - Connections")
- w.writeLn("")
- w.setColorBad()
- w.writeLn("In WWM10")
- w.sleep(2)
- w.writeLn("War was beginning.")
- w.sleep(2)
- w.writeLn("Captain: What happen ?")
- w.sleep(2)
- w.writeLn("Mechanic: Somebody set up us the bomb.")
- w.sleep(2)
- w.writeLn("Operator: We get signal.")
- w.sleep(2)
- w.writeLn("Captain: What !")
- w.sleep(2)
- w.writeLn("Operator: Main screen turn on.")
- w.sleep(2)
- w.writeLn("Captain: It's you !!")
- w.sleep(2)
- w.setColorNormal()
- w.writeLn("[THC]: How are you gentlemen !!")
- w.sleep(2)
- w.writeLn("[THC]: All your base are belong to us.")
- w.sleep(2)
- w.writeLn("[THC]: You are on the way to destruction.")
- w.sleep(2)
- w.setColorBad()
- w.writeLn("Captain: What you say !!")
- w.sleep(2)
- w.setColorNormal()
- w.writeLn("[THC]: You have no chance to survive make your time.")
- w.sleep(2)
- w.writeLn("[THC]: Ha ha ha ha...")
- w.sleep(2)
- w.setColorBad()
- w.writeLn("Operator: Captain !!")
- w.sleep(2)
- w.writeLn("Captain: Take off every 'ZIG'!!")
- w.sleep(2)
- w.writeLn("Captain: You know what you doing.")
- w.sleep(2)
- w.writeLn("Captain: Move 'ZIG'.")
- w.sleep(2)
- w.writeLn("Captain: For great justice.")
- w.sleep(7)
- w.reboot()
- else
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement