Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- list of functions
- -- resolverthings l8ter
- -- connect id (unofficial)
- -- connect (official)
- x=rednet.isOpen()
- if x==false then
- write("whers ur modem: ")
- mode=read()
- rednet.open(mode)
- else
- end
- panic=0
- shell.run("clear")
- print("SKIPP3Rs BR0WS3R")
- print("Help for List of Commands")
- repeat
- write("> ")
- com=read()
- if com=="connect id" then
- repeat
- shell.run("clear")
- id=0
- kkey=0
- term.setCursorPos(1,18)
- write("ID: ")
- ixd=read()
- if ixd=="back" then
- kkey=2
- else
- ixd=tonumber(ixd)
- rednet.send(ixd,"index")
- while id~=ixd do
- id,msg=rednet.receive()
- end
- id=0
- term.setCursorPos(1,1)
- print(msg)
- term.setCursorPos(1,18)
- print(" ")
- repeat
- id=0
- term.setCursorPos(1,18)
- write(ixd..": ")
- eing=read()
- if eing=="back" then
- kkey=1
- else
- rednet.send(ixd,eing)
- while id~=ixd do
- id,msg=rednet.receive()
- end
- shell.run("clear")
- term.setCursorPos(1,1)
- print(msg)
- end
- until kkey>=1
- end
- until kkey==2
- shell.run("clear")
- print("SKIPP3Rs BR0WS3R")
- else if com=="connect" then
- xxx=rednet.lookup("Resolver","Resolver")
- xxx=tonumber(xxx)
- repeat
- shell.run("clear")
- id=0
- kkey=0
- term.setCursorPos(1,18)
- write("Domain: ")
- ide=read()
- if ide=="back" then
- kkey=2
- else
- rednet.send(xxx,ide)
- while id~=xxx do
- id,msg=rednet.receive()
- end
- ixd=msg
- ixd=tonumber(ixd)
- id=0
- rednet.send(ixd,"index")
- while ixd~=id do
- id,msg=rednet.receive()
- end
- term.setCursorPos(1,1)
- print(msg)
- term.setCursorPos(1,18)
- print(" ")
- repeat
- id=0
- term.setCursorPos(1,18)
- write(ide..": ")
- eing=read()
- if eing=="back" then
- kkey=1
- else
- rednet.send(ixd,eing)
- while id~=ixd do
- id,msg=rednet.receive()
- end
- shell.run("clear")
- term.setCursorPos(1,1)
- print(msg)
- end
- until kkey>=1
- end
- until kkey==2
- shell.run("clear")
- print("SKIPP3Rs BR0WS3R")
- else if com=="help" then
- print("connect (connects to an official side (w/ url))")
- print("connect id (connects to an unofficial side by id)")
- else
- print("Help for List of Commands")
- end
- end
- end
- until panic == 1
Advertisement
Add Comment
Please, Sign In to add comment