changeDelay = 1 text = { { "Get A Cheap", "AE System Here!" }, { "Shop now Open!", "Come on in." }, { "Lots of great", "Items For", "Sale Cheap!" }, { "Lots of Items", "in Stock" }, { "Stop in now for", "great deals" }, { "More Items to", "be added soon." }, { "Great Steals", "I mean deals", "here." }, { "Inventory", "Restocked", "Often" }, { "Obtain some", "really cheap", "stuff here" }, { "Supplies", "for wings", "sold here" }, { "Nether", "Stars", "Sold", "Here" }, { "Cursed", "Earth In", "Stock Now" }, { "Advanced", "Metals", "Sold Here" }, { "Conduits", "Now On", "Sale" }, { "Resonant", "Ender Tanks", "Available", "Now" }, { "A Tech's", "One-Stop", "Shop" }, { "Tanks of", "Gelid", "Cryotheum", "Sold Here" }, { "Private", "Tesseracts", "In Stock" }, { "ME Quantum", "Bridges and", "Singularities", "Sold Here" }, { "Deep Storage", "Units Now", "Available" }, { "Get Your", "QED And", "Ender Flux", "Crystals Here" }, { "Selling", "Division", "Sigils", "At A Low Price" }, { "Store More", "Fluid With A", "Bedrockium", "Drum" } } symbols = {"#","~","!","@","$","%","*","-","+","=","X",".","&","o","H","W",":","|"} cS = {} cS[1] = {} cS[1].textC = colors.white cS[1].bg = colors.green cS[2] = {} cS[2].textC = colors.black cS[2].bg = colors.white cS[3] = {} cS[3].textC = colors.red cS[3].bg = colors.yellow cS[4] = {} cS[4].textC = colors.yellow cS[4].bg = colors.purple cS[5] = {} cS[5].textC = colors.lime cS[5].bg = colors.black cS[6] = {} cS[6].textC = colors.pink cS[6].bg = colors.lime cS[7] = {} cS[7].textC = colors.lime cS[7].bg = colors.red cS[8] = {} cS[8].textC = colors.orange cS[8].bg = colors.black cS[9] = {} cS[9].textC = colors.cyan cS[9].bg = colors.gray cS[10] = {} cS[10].textC = colors.black cS[10].bg = colors.lime function center(text) local w,h = term.getSize() local x,y = term.getCursorPos() local len = string.len(text) term.setCursorPos(math.ceil((w/2)-(len/2)),y) write(text) term.setCursorPos(1,y+1) end mNames = peripheral.getNames() m= {} for i=1, #mNames do if peripheral.getType(mNames[i]) == "monitor" then table.insert(m,peripheral.wrap(mNames[i])) end end for i=1, #m do m[i].setTextScale(4) end colorChange = 0 curCS = math.random(#cS) while true do for i=1,#m do curCS = math.random(#cS) curAd = math.random(#text) curSym = math.random(#symbols) term.redirect(m[i]) term.setBackgroundColor(cS[curCS].bg) term.setTextColor(cS[curCS].textC) -- term.setTextScale(5) term.clear() term.setCursorPos(1,1) w,h= term.getSize() for j=1,w do term.setCursorPos(j,1) write(symbols[curSym]) term.setCursorPos(j,h) write(symbols[curSym]) end for j=1,h-1 do term.setCursorPos(1,j+1) write(symbols[curSym]) term.setCursorPos(w,j+1) write(symbols[curSym]) end term.setCursorPos(1,2) center("RedStoner's") term.setCursorPos(1,3) center("Stash") term.setCursorPos(1,5) for j=1, #text[curAd] do center(text[curAd][j]) end colorChange = colorChange + 1 if colorChange > 5 then colorChange = 0 curCS = math.random(3) end sleep(changeDelay) end end