Sanguin

CC BR0WS3R

Apr 9th, 2015
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.10 KB | None | 0 0
  1. -- list of functions
  2. -- resolverthings l8ter
  3. -- connect id (unofficial)
  4. -- connect (official)
  5.  
  6. x=rednet.isOpen()
  7. if x==false then
  8. write("whers ur modem: ")
  9. mode=read()
  10. rednet.open(mode)
  11. else
  12. end
  13.  
  14. panic=0
  15.  
  16. shell.run("clear")
  17. print("SKIPP3Rs BR0WS3R")
  18. print("Help for List of Commands")
  19. repeat
  20. write("> ")
  21. com=read()
  22. if com=="connect id" then
  23. repeat
  24. shell.run("clear")
  25. id=0
  26. kkey=0
  27. term.setCursorPos(1,18)
  28. write("ID: ")
  29. ixd=read()
  30. if ixd=="back" then
  31. kkey=2
  32. else
  33. ixd=tonumber(ixd)
  34. rednet.send(ixd,"index")
  35. while id~=ixd do
  36. id,msg=rednet.receive()
  37. end
  38. id=0
  39. term.setCursorPos(1,1)
  40. print(msg)
  41. term.setCursorPos(1,18)
  42. print("                                                                             ")
  43. repeat
  44. id=0
  45. term.setCursorPos(1,18)
  46. write(ixd..": ")
  47. eing=read()
  48. if eing=="back" then
  49. kkey=1
  50. else
  51. rednet.send(ixd,eing)
  52. while id~=ixd do
  53. id,msg=rednet.receive()
  54. end
  55. shell.run("clear")
  56. term.setCursorPos(1,1)
  57. print(msg)
  58. end
  59. until kkey>=1
  60. end
  61. until kkey==2
  62. shell.run("clear")
  63. print("SKIPP3Rs BR0WS3R")
  64. else if com=="connect" then
  65. xxx=rednet.lookup("Resolver","Resolver")
  66. xxx=tonumber(xxx)
  67. repeat
  68. shell.run("clear")
  69. id=0
  70. kkey=0
  71. term.setCursorPos(1,18)
  72. write("Domain: ")
  73. ide=read()
  74. if ide=="back" then
  75. kkey=2
  76. else
  77. rednet.send(xxx,ide)
  78. while id~=xxx do
  79. id,msg=rednet.receive()
  80. end
  81. ixd=msg
  82. ixd=tonumber(ixd)
  83. id=0
  84. rednet.send(ixd,"index")
  85. while ixd~=id do
  86. id,msg=rednet.receive()
  87. end
  88. term.setCursorPos(1,1)
  89. print(msg)
  90. term.setCursorPos(1,18)
  91. print("                                                                             ")
  92. repeat
  93. id=0
  94. term.setCursorPos(1,18)
  95. write(ide..": ")
  96. eing=read()
  97. if eing=="back" then
  98. kkey=1
  99. else
  100. rednet.send(ixd,eing)
  101. while id~=ixd do
  102. id,msg=rednet.receive()
  103. end
  104. shell.run("clear")
  105. term.setCursorPos(1,1)
  106. print(msg)
  107. end
  108. until kkey>=1
  109. end
  110. until kkey==2
  111. shell.run("clear")
  112. print("SKIPP3Rs BR0WS3R")
  113. else if com=="help" then
  114. print("connect (connects to an official side (w/ url))")
  115. print("connect id (connects to an unofficial side by id)")
  116. else
  117. print("Help for List of Commands")
  118. end
  119. end
  120. end
  121. until panic == 1
Advertisement
Add Comment
Please, Sign In to add comment