Sanguin

CC CH4T

Dec 7th, 2014
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.91 KB | None | 0 0
  1. --nother *swearword* chatprogram this 1 is called ch4t(mucho creativissimo)
  2. --I AM FIXING THIS SHIT NOW ^^"
  3. shell.run("clear")
  4. print("SKIPP3Rs CH4T v1.2")
  5. -- establishing rednet
  6. print()
  7. print("Establishing Rednetconnection...")
  8. a=1
  9. redkey=0
  10. repeat
  11. print("try ",a," ...")
  12. redn=rednet.isOpen()
  13. if redn==true then
  14.  redkey=1
  15.  print("Sucess")
  16.  print("connection established!")
  17. else
  18.  a=a+1
  19.  print("Failed")
  20.  write("whers ur modem?: ")
  21.  moden=read()
  22.  rednet.open(moden)
  23. end
  24. until redkey==1
  25.  
  26. -- Should be here established
  27. -- now som rdm question should follow
  28.  
  29. sleep(3)
  30. shell.run("clear")
  31. print("SKIPP3Rs CH3T v1.2")
  32. print()
  33. write("username: ")
  34. usern=read()
  35. print()
  36. repeat
  37. print("First Send (1)")
  38. print("Or Receive (2)")
  39. write("1 or 2: ")
  40. aa=read()
  41. if aa=="1" then
  42.   ab=1
  43. else
  44.   if aa=="2" then
  45.     ab=1
  46.   else
  47. ab=0
  48. end
  49. end
  50. until ab==1
  51. rednet.broadcast("rly secrat messagghe")
  52. -- i hav put this broadcast here coz if som dumbass just broadcast shit ur program would respond to it
  53. repeat
  54.  id,secu=rednet.receive()
  55.  if secu=="rly secrat messagghe" then --BEST SECURITI EUW
  56.   rednet.send(id,"rly secrat messagghe")
  57.   IxD=id
  58.   redkey=2
  59.  else
  60.  end
  61. until redkey==2
  62. print("probably got u a partner")
  63. print("if this page dont update after at least 12 sec. abort and try again")
  64. print("(if this keeps happening get this *swearword* programer back 2 work)")
  65. sleep(1)
  66. bb=math.random(10)
  67. sleep(bb)
  68. rednet.send(IxD,usern)
  69. repeat
  70. id,usernam=rednet.receive()
  71. if id==IxD then
  72. redkey=3
  73. username=usernam
  74. else
  75. end
  76. until redkey==3
  77. sleep(0.5)
  78. rednet.send(IxD,usern)
  79. print("got u probably a partner: ",username)
  80. sleep(3)
  81. shell.run("clear")
  82. print("SKIPP3Rs CH4T v1.2")
  83. if aa=="1" then
  84. write("You: ")
  85. msg=read()
  86. rednet.send(IxD,msg)
  87. else
  88. end
  89. repeat
  90. id,mesg=rednet.receive()
  91. if id==IxD then
  92. print(username,": ",mesg)
  93. write("You: ")
  94. msg=read()
  95. rednet.send(IxD,msg)
  96. else
  97. end
  98. until redkey==1337
Advertisement
Add Comment
Please, Sign In to add comment