Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function calc_color(color)
- return math.pow(2, color - 1)
- end
- function msg(gap, line, color, groundb, text)
- term.setBackgroundColor(calc_color(groundb))
- term.setCursorPos(gap,line)
- term.setTextColor(calc_color(color))
- text = term.write(text)
- end
- function start()
- term.setBackgroundColor(512)
- term.clear()
- msg(01,01,05,10,"Mit diesem Computer könnt ihr Wertvolle Items")
- msg(01,02,05,10,"(aktuell nur HVs und Aes) sicher verwaren.")
- msg(01,03,05,10,"Falls ihr zu lange inaktiv bleibt und eure")
- msg(01,04,05,10,"Grundstücke im Freebuild gelöscht werden sollten,")
- msg(01,05,05,10,"könnt ihr euch dann eure verwarten Items")
- msg(01,06,05,10,"zurückholen.")
- msg(01,07,05,10,"Dass soll einen Neustart erleichtern.")
- msg(01,09,05,10,"Um später auf deine Items zugreifen zu können,")
- msg(01,10,05,10,"musst du erstmal einen Localen-Account erstellen,")
- msg(01,11,05,10,"auf dem deine Items gespeichert werden.")
- msg(01,13,15,10,"Hast du schon einen Account?")
- msg(01,14,15,10,"Schreib jetzt __ oder ____")
- msg(15,14,02,10,"JA")
- msg(23,14,02,10,"Nein")
- term.setTextColor(colors.red)
- term.setCursorPos(01,16)
- local a = read()
- if a == "ja" or a == "Ja" or a == "jA" or a == "JA" then
- sleep(1)
- login()
- elseif a == "nein" or a == "Nein" or a == "NEIN" then
- sleep(1)
- register()
- else
- sleep(0.5)
- msg(01,16,02,10,"Eingabe nicht erkannt, bitte nochmal versuchen.")
- sleep(2)
- start()
- end
- end
- function login()
- term.setBackgroundColor(32768)
- term.clear()
- msg(01,01,05,10,"login")
- end
- function register()
- term.setBackgroundColor(32768)
- term.clear()
- msg(01,01,05,10,"register")
- end
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement