Cavious

spawn_board

Jun 3rd, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.96 KB | None | 0 0
  1. --File: spawn_board.lua
  2. --Created By: Cavious
  3. --For the purpose of the GotBawlz FTB Monster Server
  4. --+==================================+
  5. --Legal:
  6. --Content is available for open use.
  7. --+==================================+
  8. --Setup is for a Golden Monitor with three(3) in width, and four(4) in height
  9.  
  10. mon = peripheral.wrap("top")
  11. net = peripheral.wrap("bottom")
  12.  
  13. --Initial Clearing
  14. mon.clear()
  15. mon.setTextScale(1)
  16.  
  17. --Draw Frames
  18. term.redirect(mon)
  19.  
  20. --Title Frame
  21. local img = paintutils.loadImage(".img_topframe")
  22. paintutils.drawImage(img, 1, 1)
  23.  
  24. --Admin Frame
  25. local img = paintutils.loadImage(".img_leftFrame")
  26. paintutils.drawImage(img, 1, 9)
  27.  
  28. --Meta Frame
  29. local img = paintutils.loadImage(".img_rightFrame")
  30. paintutils.drawImage(img, 18, 9)
  31.  
  32. --Rules Frame
  33. local img = paintutils.loadImage(".img_bottomFrame")
  34. paintutils.drawImage(img, 1, 14)
  35.  
  36. --
  37.  
  38. term.native()
  39.  
  40. --Get the size of the monitor
  41. width, height = mon.getSize()
  42.  
  43. --Server Header
  44. headerTop = "Got Bawlz Server"
  45. headerBottom = "A FTB Monster Host"
  46.  
  47.  
  48. --Server Rules
  49. ruleOne = "(1)No Hacks"
  50. ruleTwo = "(2)No Cheating"
  51. ruleThree = "(3)No Begging"
  52. ruleFour = "(4)No Asking For Free Items"
  53. ruleFive = "(5)No Asking For Teleports"
  54.  
  55. --Server Meta Tags
  56. metaOne = "PvP"
  57. metaTwo = "Griefing"
  58. metaThree = "" --Add another meta tag if needed
  59.  
  60. --Admin Listing
  61. adminNameOne = "[OWN]Iggyiguana"
  62. adminNameTwo = "[ADMIN]Cavious"
  63. adminNameThree = "" --Add another admin if needed
  64.  
  65.  
  66. --HEADER SECTION
  67. -----------------------------------------------
  68. --Header Section Formatting
  69. mon.setTextColor(colors.yellow)
  70. mon.setBackgroundColor(colors.lightGray)
  71.  
  72. --Line 4[headerTop](7,4)
  73. mon.setCursorPos(7,4)
  74. mon.write(headerTop)
  75.  
  76. --Line 5[headerBottom](5,5)
  77. mon.setCursorPos(6,5)
  78. mon.write(headerBottom)
  79. ----------------------------------------------
  80.  
  81.  
  82. --RULES SECTION
  83. ----------------------------------------------
  84. --Rule Section Formatting
  85. mon.setTextColor(colors.yellow)
  86. mon.setBackgroundColor(colors.lightGray)
  87.  
  88. --Line 14(15,14)
  89. mon.setCursorPos(15,14)
  90. mon.write("RULES")
  91.  
  92. --Rule Mid-Section Formatting
  93. mon.setTextColor(colors.black)
  94. mon.setBackgroundColor(colors.green)
  95.  
  96.  
  97. --Line 15(1,15)
  98. mon.setCursorPos(1,15)
  99. mon.write(ruleOne)
  100.  
  101. --Rule Line-Section Formatting
  102. mon.setTextColor(colors.black)
  103. mon.setBackgroundColor(colors.lime)
  104.  
  105. --Line 16(1,16)
  106. mon.setCursorPos(1,16)
  107. mon.write(ruleTwo)
  108.  
  109. --Rule Line-Section Formatting
  110. mon.setBackgroundColor(colors.green)
  111.  
  112. --Line 17(1,17)
  113. mon.setCursorPos(1,17)
  114. mon.write(ruleThree)
  115.  
  116. --Rule Line-Section Formatting
  117. mon.setBackgroundColor(colors.lime)
  118.  
  119. --Line 18(1,18)
  120. mon.setCursorPos(1,18)
  121. mon.write(ruleFour)
  122.  
  123. --Rule Line-Section Formatting
  124. mon.setBackgroundColor(colors.green)
  125.  
  126. --Line 19(1,19)
  127. mon.setCursorPos(1,19)
  128. mon.write(ruleFive)
  129.  
  130. ----------------------------------------------
  131.  
  132.  
  133. --META SECTION
  134. ----------------------------------------------
  135. --META Section Formatting
  136. mon.setTextColor(colors.yellow)
  137. mon.setBackgroundColor(colors.lightGray)
  138.  
  139. --Line 10(21,10)
  140. mon.setCursorPos(21,10)
  141. mon.write("Allowed")
  142.  
  143. --META Mid-Section Formatting
  144. mon.setBackgroundColor(colors.lightBlue)
  145.  
  146. --Line 11(23,11)
  147. mon.setCursorPos(23,11)
  148. mon.write(metaOne)
  149.  
  150. --META Line-Section Formatting
  151. mon.setBackgroundColor(colors.blue)
  152.  
  153. --Line 12(20,12)
  154. mon.setCursorPos(20,12)
  155. mon.write(metaTwo)
  156. ---------------------------------------------
  157.  
  158. --ADMIN SECTION
  159. ----------------------------------------------
  160. --Admin Section Formatting
  161. mon.setTextColor(colors.yellow)
  162. mon.setBackgroundColor(colors.lightGray)
  163.  
  164. --Line 10(3,10)
  165. mon.setCursorPos(3,10)
  166. mon.write("Administration")
  167.  
  168. --Admin Mid-Section Formatting
  169. mon.setBackgroundColor(colors.yellow)
  170. mon.setTextColor(colors.black)
  171.  
  172. --Line 11(2,11)
  173. mon.setCursorPos(2,11)
  174. mon.write(adminNameOne)
  175.  
  176. --Admin Line-Section Formatting
  177. mon.setBackgroundColor(colors.orange)
  178.  
  179. --Line 12(2,12)
  180. mon.setCursorPos(2,12)
  181. mon.write(adminNameTwo)
  182. ----------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment