Advertisement
Guest User

error

a guest
Mar 20th, 2013
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.56 KB | None | 0 0
  1. @echo off
  2. goto home
  3. :AdminChat
  4. cls
  5. color 3
  6. echo =====================================================
  7. echo [] 0000 0 0 00000 00000 0000 00000 []
  8. echo [] 0 0 0 0 0 0 0 0 0 0 []
  9. echo [] 0 0000 00000 0 0 0 0 []
  10. echo [] 0 0 0 0 0 0 0 0 0 []
  11. echo [] 0000 0 0 0 0 0 00000 0 00000 []
  12. echo =============================================================
  13. echo [] {1}: Join Admin private chat [Password needed] []
  14. echo [] 2: Join public chat room [Open chat-No password needed] []
  15. echo [] 3: Credits []
  16. echo [] 4: Chat Admin application []
  17. echo =============================================================
  18. echo [] *!Admins!* Password is reset every Monday, Email []
  19. echo [] [email protected] for the new password. []
  20. echo =======================================================
  21. echo [] Admins: []
  22. echo [] Neil Acevedo []
  23. echo [] {Un-Hired} []
  24. echo [] {Un-Hired} []
  25. echo [] {Un-Hired} []
  26. echo [] {Un-Hired} []
  27. echo [] {Un-Hired} []
  28. echo ==================
  29. echo [] Enter Pass []
  30. echo [] below []
  31. echo ==================
  32. set /p adminpassword=Password:
  33. if errorlevel equ thebulldogtheo goto AdminChatRoom
  34. cls
  35. :PublicChat
  36. cls
  37. color 1
  38. rem ###### TITLE SCREEN ############
  39. echo.
  40. echo Welcome to the chatroom!
  41. echo.
  42. echo Commands:
  43. echo type CLS to clear the chat log.
  44. echo type EXIT to quit the chat room.
  45. echo just hit enter to update screen.
  46. echo.
  47. set /p username=Display name:
  48. echo %username% has joined. >> log.dat
  49. cls
  50. goto CHATLOOP
  51. REM ############################
  52.  
  53.  
  54.  
  55.  
  56. REM ########## CHAT LOOP ##########
  57. set lastmessage=""
  58.  
  59. :CHATLOOP
  60. cls
  61. type log.dat
  62. echo.
  63. echo.
  64. set /p message=Say:
  65.  
  66. rem set message checker value
  67. set thismessage="%message%"
  68.  
  69. rem check for exit
  70. if %thismessage% == "EXIT" echo %username% has left the chat room. >> log.dat
  71. if %thismessage% == "EXIT" exit
  72. rem -----------------
  73.  
  74. rem check for clear
  75. if %thismessage% == "CLS" echo %username% has cleared the chat log. > log.dat
  76. if %thismessage% == "CLS" set message=Empty
  77. if %thismessage% == "CLS" set lastmessage="Empty"
  78. if %thismessage% == "CLS" goto CHATLOOP
  79. rem ------------------
  80.  
  81. rem check for same message as last time
  82. if %thismessage% == %lastmessage% goto CHATLOOP
  83.  
  84. rem if all checks out, go ahead and post this message
  85. echo %username%: %message% >> log.dat
  86.  
  87. rem save value for next test
  88. set lastmessage="%message%"
  89.  
  90. goto CHATLOOP
  91. REM ################################
  92. :Credits
  93. color 0e
  94. echo ==================
  95. echo [] Admins: []
  96. echo [] Neil Acevedo []
  97. echo [] {Un-Hired} []
  98. echo [] {Un-Hired} []
  99. echo [] {Un-Hired} []
  100. echo [] {Un-Hired} []
  101. echo [] {Un-Hired} []
  102. echo ===================================
  103. echo [] Made by RavagingOS 1 man team []
  104. echo [] Thewindghost []
  105. echo [] []
  106. echo [] []
  107. echo [] []
  108. echo [] []
  109. echo [] []
  110. echo [] []
  111. echo ===================================
  112. echo [] Tap any key to leave to menu. []
  113. echo ===================================
  114. pause < nul
  115. cls
  116. goto home
  117. :AdminChatRoom
  118. :home
  119. color 0e
  120. echo =====================================================
  121. echo [] 0000 0 0 00000 00000 0000 00000 []
  122. echo [] 0 0 0 0 0 0 0 0 0 0 []
  123. echo [] 0 0000 00000 0 0 0 0 []
  124. echo [] 0 0 0 0 0 0 0 0 0 []
  125. echo [] 0000 0 0 0 0 0 00000 0 00000 []
  126. echo =============================================================
  127. echo [] 1: Join Admin private chat [Password needed] []
  128. echo [] 2: Join public chat room [Open chat-No password needed] []
  129. echo [] 3: Credits []
  130. echo [] 4: Chat Admin application []
  131. echo =============================================================
  132. echo [] Admins: []
  133. echo [] Neil Acevedo []
  134. echo [] {Un-Hired} []
  135. echo [] {Un-Hired} []
  136. echo [] {Un-Hired} []
  137. echo [] {Un-Hired} []
  138. echo [] {Un-Hired} []
  139. echo ==================
  140. echo [] Enter Input []
  141. echo [] below []
  142. echo ==================
  143. set /p optionmenu=Choice:
  144. if ERRORLEVEL == 1 goto AdminChat
  145. if ERRORLEVEL == 2 goto PublicChat
  146. if ERRORLEVEL == 3 goto Credits
  147. if ERRORLEVEL == 4 goto four
  148. cls
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement