Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setcolor = colors.white
- timings = 0
- black = colors.black
- function back()
- term.setBackgroundColor(setcolor)
- end
- back()
- term.clear()
- term.setTextColor(black)
- settings()
- while true do
- local event, button, X, Y = os.pullEventRaw()
- if event == "mouse_click" then
- if X >=1 and X <=29 and button == 1 and Y== 3 then
- makelogin()
- term.setBackgroundColor(222)
- cp(20,7)
- print("Change username")
- term.setBackgroundColor(555)
- cp(20,9)
- print("New username?")
- cp(20,10)
- newu = read()
- makelogin()
- cp(20,7)
- term.setBackgroundColor(222)
- print("Change password")
- term.setBackgroundColor(555)
- cp(20,9)
- print("New password?")
- cp(20,10)
- newp = read()
- settings()
- fs.delete("OS/account1")
- fs.delete("OS/account1ww")
- nu = fs.open("OS/account1", "w")
- nu.write(newu)
- nu.close()
- np = fs.open("OS/account1ww", "w")
- np.write(newp)
- np.close()
- sleep(2)
- settings()
- elseif X >=1 and X <=18 and button == 1 and Y== 9 then
- fs.delete("Paints/.background")
- shell.run("paint", "Paints/.background")
- if not fs.exists("Paints/.background") then
- clear()
- print("You need to save it")
- sleep(2)
- shell.run("pastebin", "get", "uGKhyZTw", "Paints/.background")
- clear()
- end
- if not fs.exists("Paints/.background") then
- clear()
- print("You need to save it.")
- term.setCursorPos(1,2)
- print("Couldnt connect to the internet!")
- sleep(4)
- settings()
- end
- settings()
- elseif X >=1 and X <=18 and button == 1 and Y== 11 then
- shell.run("pastebin", "get", "uGKhyZTw", "internettest")
- settings()
- if not fs.exists("internettest") then
- clear()
- print("Couldn't connect to the internet")
- fs.delete("internettest")
- sleep(3)
- else
- fs.delete("Paints/.background")
- fs.delete("internettest")
- shell.run("pastebin", "get", "uGKhyZTw", "Paints/.background")
- end
- settings()
- elseif X >=1 and X <=29 and button == 1 and Y== 5 then
- change = fs.open("OS/loginonof", "r")
- onf = change.readLine(1)
- change.close()
- if onf == "off" then
- fs.delete("OS/loginonof")
- ch = fs.open("OS/loginonof", "w")
- ch.write("on")
- ch.close()
- elseif onf == "on" then
- fs.delete("OS/loginonof")
- chf = fs.open("OS/loginonof", "w")
- chf.write("off")
- chf.close()
- end
- settings()
- elseif X>=1 and X<=4 and Y== 15 and button ==1 then
- shell.run("System/Desktop")
- elseif X >=1 and X <=17 and button == 1 and Y== 7 then
- shell.run("Programs/remove")
- elseif X >=1 and X <=17 and button == 1 and Y== 13 then
- clear()
- print("Type the number of the background")
- cp(1,3)
- print("[1]Minecraft world")
- cp(1,4)
- print("[2]Default")
- cp(1,2)
- number = read()
- clear()
- if number == "1" then
- fs.delete("Paints/.background")
- shell.run("pastebin","get","LzjCwkXJ","Paints/.background")
- end
- if number == "2" then
- fs.delete("Paints/.background")
- shell.run("pastebin", "get", "uGKhyZTw", "Paints/.background")
- end
- settings()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment