SHOW:
|
|
- or go back to the newest paste.
| 1 | changeDelay = 1 | |
| 2 | text = {
| |
| 3 | {
| |
| 4 | "Get A Cheap", | |
| 5 | "AE System Here!" | |
| 6 | }, | |
| 7 | {
| |
| 8 | "Shop now Open!", | |
| 9 | "Come on in." | |
| 10 | }, | |
| 11 | {
| |
| 12 | "Lots of great", | |
| 13 | "Items For", | |
| 14 | "Sale Cheap!" | |
| 15 | }, | |
| 16 | {
| |
| 17 | "Lots of Items", | |
| 18 | "in Stock" | |
| 19 | }, | |
| 20 | {
| |
| 21 | "Stop in now for", | |
| 22 | "great deals" | |
| 23 | }, | |
| 24 | {
| |
| 25 | "More Items to", | |
| 26 | "be added soon." | |
| 27 | }, | |
| 28 | {
| |
| 29 | "Great Steals", | |
| 30 | "I mean deals", | |
| 31 | "here." | |
| 32 | }, | |
| 33 | {
| |
| 34 | "Inventory", | |
| 35 | "Restocked", | |
| 36 | "Often" | |
| 37 | }, | |
| 38 | {
| |
| 39 | "Obtain some", | |
| 40 | "really cheap", | |
| 41 | "stuff here" | |
| 42 | }, | |
| 43 | {
| |
| 44 | "Supplies", | |
| 45 | "for wings", | |
| 46 | "sold here" | |
| 47 | }, | |
| 48 | {
| |
| 49 | "Nether", | |
| 50 | "Stars", | |
| 51 | "Sold", | |
| 52 | "Here" | |
| 53 | }, | |
| 54 | {
| |
| 55 | "Cursed", | |
| 56 | "Earth In", | |
| 57 | "Stock Now" | |
| 58 | }, | |
| 59 | {
| |
| 60 | "Advanced", | |
| 61 | "Metals", | |
| 62 | "Sold Here" | |
| 63 | }, | |
| 64 | {
| |
| 65 | "Conduits", | |
| 66 | "Now On", | |
| 67 | "Sale" | |
| 68 | }, | |
| 69 | {
| |
| 70 | "Resonant", | |
| 71 | "Ender Tanks", | |
| 72 | "Available", | |
| 73 | "Now" | |
| 74 | }, | |
| 75 | {
| |
| 76 | "A Tech's", | |
| 77 | "One-Stop", | |
| 78 | "Shop" | |
| 79 | }, | |
| 80 | {
| |
| 81 | "Tanks of", | |
| 82 | "Gelid", | |
| 83 | "Cryotheum", | |
| 84 | "Sold Here" | |
| 85 | }, | |
| 86 | {
| |
| 87 | "Private", | |
| 88 | "Tesseracts", | |
| 89 | "In Stock" | |
| 90 | }, | |
| 91 | {
| |
| 92 | "ME Quantum", | |
| 93 | "Bridges and", | |
| 94 | "Singularities", | |
| 95 | "Sold Here" | |
| 96 | }, | |
| 97 | {
| |
| 98 | "Deep Storage", | |
| 99 | "Units Now", | |
| 100 | "Available" | |
| 101 | }, | |
| 102 | {
| |
| 103 | "Get Your", | |
| 104 | "QED And", | |
| 105 | "Ender Flux", | |
| 106 | "Crystals Here" | |
| 107 | }, | |
| 108 | {
| |
| 109 | "Selling", | |
| 110 | "Division", | |
| 111 | "Sigils", | |
| 112 | "At A Low Price" | |
| 113 | }, | |
| 114 | {
| |
| 115 | "Store More", | |
| 116 | "Fluid With A", | |
| 117 | "Bedrockium", | |
| 118 | "Drum" | |
| 119 | }, | |
| 120 | {
| |
| 121 | "New Items Can", | |
| 122 | - | symbols = {"#","~","!","@","$","%","*","-","+","=","X",".","&","o","H","W",":","|"}
|
| 122 | + | "Be Requested", |
| 123 | "To Be Added," | |
| 124 | } | |
| 125 | ||
| 126 | } | |
| 127 | symbols = {"#","~","!","@","$","%","*","-","+","=","X",".","&","o","H","I",":","|"}
| |
| 128 | cS = {}
| |
| 129 | cS[1] = {}
| |
| 130 | cS[1].textC = colors.white | |
| 131 | cS[1].bg = colors.green | |
| 132 | cS[2] = {}
| |
| 133 | cS[2].textC = colors.black | |
| 134 | cS[2].bg = colors.white | |
| 135 | cS[3] = {}
| |
| 136 | cS[3].textC = colors.red | |
| 137 | cS[3].bg = colors.yellow | |
| 138 | cS[4] = {}
| |
| 139 | cS[4].textC = colors.yellow | |
| 140 | cS[4].bg = colors.purple | |
| 141 | cS[5] = {}
| |
| 142 | cS[5].textC = colors.lime | |
| 143 | cS[5].bg = colors.black | |
| 144 | cS[6] = {}
| |
| 145 | cS[6].textC = colors.pink | |
| 146 | cS[6].bg = colors.lime | |
| 147 | cS[7] = {}
| |
| 148 | cS[7].textC = colors.lime | |
| 149 | cS[7].bg = colors.red | |
| 150 | cS[8] = {}
| |
| 151 | cS[8].textC = colors.orange | |
| 152 | cS[8].bg = colors.black | |
| 153 | cS[9] = {}
| |
| 154 | cS[9].textC = colors.cyan | |
| 155 | cS[9].bg = colors.gray | |
| 156 | cS[10] = {}
| |
| 157 | cS[10].textC = colors.black | |
| 158 | - | term.setCursorPos(math.ceil((w/2)-(len/2)),y) |
| 158 | + | |
| 159 | cS[11] = {}
| |
| 160 | cS[11].textC = colors.white | |
| 161 | cS[11].bg = colors.blue | |
| 162 | cS[12] = {}
| |
| 163 | cS[12].textC = colors.blue | |
| 164 | cS[12].bg = colors.white | |
| 165 | cS[13] = {}
| |
| 166 | cS[13].textC = colors.pink | |
| 167 | cS[13].bg = colors.white | |
| 168 | cS[14] = {}
| |
| 169 | cS[14].textC = colors.white | |
| 170 | cS[14].bg = colors.pink | |
| 171 | cS[15] = {}
| |
| 172 | cS[15].textC = colors.white | |
| 173 | cS[15].bg = colors.red | |
| 174 | cS[16] = {}
| |
| 175 | cS[16].textC = colors.black | |
| 176 | cS[16].bg = colors.lime | |
| 177 | function center(text) | |
| 178 | local w,h = term.getSize() | |
| 179 | local x,y = term.getCursorPos() | |
| 180 | local len = string.len(text) | |
| 181 | term.setCursorPos( math.floor((w/2)+.5)- math.floor((len/2)+.5) + 1,y) | |
| 182 | write(text) | |
| 183 | term.setCursorPos(1,y+1) | |
| 184 | end | |
| 185 | mNames = peripheral.getNames() | |
| 186 | m= {}
| |
| 187 | for i=1, #mNames do | |
| 188 | if peripheral.getType(mNames[i]) == "monitor" then | |
| 189 | table.insert(m,peripheral.wrap(mNames[i])) | |
| 190 | end | |
| 191 | end | |
| 192 | for i=1, #m do | |
| 193 | m[i].setTextScale(4) | |
| 194 | end | |
| 195 | colorChange = 0 | |
| 196 | numPossibleCombos = (#cS * #text *#symbols) | |
| 197 | curCS = math.random(#cS) | |
| 198 | while true do | |
| 199 | for i=1,#m do | |
| 200 | curCS = math.random(#cS) | |
| 201 | curAd = math.random(#text) | |
| 202 | curSym = math.random(#symbols) | |
| 203 | term.redirect(term.native()) | |
| 204 | term.clear() | |
| 205 | term.setCursorPos(1,1) | |
| 206 | print("Possible Combinations - " .. numPossibleCombos)
| |
| 207 | print("Color Scheme " .. curCS)
| |
| 208 | print("Ad " .. curAd)
| |
| 209 | print("Symbol " .. curSym)
| |
| 210 | term.redirect(m[i]) | |
| 211 | term.setBackgroundColor(cS[curCS].bg) | |
| 212 | term.setTextColor(cS[curCS].textC) | |
| 213 | -- term.setTextScale(5) | |
| 214 | term.clear() | |
| 215 | term.setCursorPos(1,1) | |
| 216 | w,h= term.getSize() | |
| 217 | for j=1,w do | |
| 218 | term.setCursorPos(j,1) | |
| 219 | write(symbols[curSym]) | |
| 220 | term.setCursorPos(j,h) | |
| 221 | write(symbols[curSym]) | |
| 222 | end | |
| 223 | for j=1,h-1 do | |
| 224 | term.setCursorPos(1,j+1) | |
| 225 | write(symbols[curSym]) | |
| 226 | term.setCursorPos(w,j+1) | |
| 227 | write(symbols[curSym]) | |
| 228 | end | |
| 229 | term.setCursorPos(1,2) | |
| 230 | center("RedStoner's")
| |
| 231 | term.setCursorPos(1,3) | |
| 232 | center("Stash")
| |
| 233 | term.setCursorPos(1,5) | |
| 234 | for j=1, #text[curAd] do | |
| 235 | center(text[curAd][j]) | |
| 236 | end | |
| 237 | colorChange = colorChange + 1 | |
| 238 | if colorChange > 5 then | |
| 239 | colorChange = 0 | |
| 240 | curCS = math.random(3) | |
| 241 | end | |
| 242 | sleep(changeDelay) | |
| 243 | end | |
| 244 | end |