Advertisement
2nuc4u

Nuc Online

Oct 8th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.50 KB | None | 0 0
  1. @echo off
  2. if not exist log.txt copy nul log.txt
  3. set name=guestnuc
  4. if exist config.bat call config.bat
  5. echo %date% %time% Login from %name%>> "log.txt"
  6.  
  7. :home
  8. title Nuc Online
  9. mode 75,20
  10. @echo off
  11. color a
  12. cls
  13. echo Current path: home           %date% %time%
  14. echo.
  15. echo        Welcome, %name%
  16. echo.
  17. echo          /   / /   / /////       ///// /   / /     ///// /   / /////
  18. echo         //  / /   / /           /   / //  / /       /   //  / /
  19. echo        / / / /   / /           /   / / / / /       /   / / / /////
  20. echo       /  // /   / /           /   / /  // /       /   /  // /
  21. echo      /   / ///// /////       ///// /   / ///// ///// /   / /////    
  22. echo.
  23. echo  Wowie 5thousie! This message has been downloaded off the INTERNET!
  24. echo.
  25.  
  26. :command
  27. set /p web=Command:
  28. if /i "%web%"=="art 1" goto 1
  29. if /i "%web%"=="art 2" goto 2
  30. if /i "%web%"=="art 3" goto 3
  31. if /i "%web%"=="re" goto getnews
  32. if /i "%web%"=="list" goto list
  33. if /i "%web%"=="list art" goto art
  34. if /i "%web%"=="exit" exit
  35. if /i "%web%"=="about" goto about
  36. if /i "%web%"=="nucname" goto NucName
  37. if /i "%web%"=="del config" del config.bat
  38. if /i "%web%"=="del config" echo  Configure deleted
  39. if /i "%web%"=="del config" pause
  40. if /i "%web%"=="del config" goto home
  41. if /i "%web%"=="del log" del log.txt
  42. if /i "%web%"=="del log" echo  Log deleted
  43. if /i "%web%"=="del log" pause
  44. if /i "%web%"=="del log" goto home
  45. if /i "%web%"=="del config" del config.bat
  46. echo  Enter command! (sans case-sensitive)
  47. echo  Type "list" to show all commands
  48. pause
  49. goto home
  50.  
  51. :art
  52. color
  53. cls
  54. echo Current path: home / articles
  55. echo.
  56. echo  Articles: (from here, you can only type the number of the article,
  57. echo  or anything else to go back)
  58. echo.
  59. echo   1: Article 1
  60. echo   2: article 2 name
  61. echo   etc.
  62. set /p web=Command:
  63. if /i "%web%"=="1" goto 1
  64. if /i "%web%"=="2" goto 2
  65. goto home
  66.  
  67. :1
  68. cls
  69. echo ___________________________________________________________________________
  70. echo.
  71. echo      Article 1.     Page 1/1
  72. echo ___________________________________________________________________________
  73. echo.
  74. echo  This article has not been written yet.
  75. pause
  76. goto home
  77.  
  78. :2
  79. cls
  80. echo  article 2 placeholder
  81. pause
  82. goto home
  83.  
  84. :getnews
  85. getnews.bat
  86.  
  87.  
  88. :about
  89. cls
  90. echo about stuff
  91. pause
  92. goto home
  93.  
  94.  
  95. :NucName
  96. cls
  97. echo  Create your name that you will be refered to as.
  98. echo  Try to keep it less than 20 characters, as more can make stuff look bad.
  99. if /i "%name%"=="guestnuc" goto nucname2
  100. if exist config.bat set /p web=Do you want to clear your NucName (y/n)?:
  101. if /i "%web%"=="y" echo set name=guestnuc>> config.bat
  102. if /i "%web%"=="y" set name=guestnuc
  103.  
  104. :nucname2
  105. set /p logyn=Make a NucName (y/n)?:
  106. if /i "%logyn%"=="y" goto nucname3
  107. goto home
  108.  
  109. :nucname3
  110. set /p name=Enter a NucName:
  111. echo set name=%name%>> config.bat
  112. echo %date% %time% NucName changed>> log.txt
  113. echo Now: %name%>> log.txt
  114. set name=%name%
  115. echo  Name set!
  116. pause
  117. goto home
  118.  
  119. :game
  120. echo ___________________________________________________________________________
  121. echo.
  122. echo  
  123.  
  124.  
  125. :list
  126. cls
  127. echo Current path: home / list
  128. echo.
  129. echo  List of all commands: (some commands will not work outside home)
  130. echo   NucName - opens NucName menu
  131. echo   about - displays the about page
  132. echo   art # - load article
  133. echo   del log - deletes the entire log
  134. echo   del config - deletes config info
  135. echo   list - displays this list
  136. echo   list art - shows a list of the current article titles
  137. echo   re - reloads
  138. echo   exit - exits the program entirely
  139. echo.
  140. goto command
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement