Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- colours = { colours.red, colours.orange, colours.yellow, colours.green, colours.cyan, colours.blue, colours.pink, colours.purple }
- c = peripheral.wrap("bottom")
- m = peripheral.wrap("right")
- m.clear()
- m.setCursorPos(1, 1)
- posx = 1
- posy = 1
- colour = 1
- m.setBackgroundColour(1)
- m.clear()
- coloursM = { 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768 }
- while true do
- if posy > 26 then
- posy = 1
- m.clear()
- end
- --if colour > 8 then
- -- colour = 1
- --end
- --m.setTextColour(colours[colour])
- --colour = colour + 1
- evt, player, mess = os.pullEvent()
- if evt == "chat" then
- if player == "Darth_Ben17" then
- col = 512
- player = "Darth"
- elseif player == "MrBlueCreepers" then
- col = 2048
- player = "MrBlue"
- elseif player == "TheNinjaGraffe" then
- col = 1024
- player = "Giraffi"
- elseif player == "skrymir69" then
- col = 2
- elseif player == "bobin01" then
- col = 16384
- player = "Bob"
- elseif player == "iParmetries" then
- col = 1024
- player = "Parmigiana"
- elseif player == "NikleKing" then
- col = 32
- player = "PickleKing"
- elseif player == "CivicCoin2608" then
- col = 32
- player = "Gymph"
- elseif player == "BlueCreeper600" then
- col = 2
- player = "Imposter"
- elseif player == "Darkarms420" then
- col = 32768
- player = " "
- mess = " ****Message Deleted**** :"
- else
- col = 32768
- end
- m.setTextColour(col)
- m.setCursorPos(posx, posy)
- m.write(player..": "..mess)
- posy = posy + 1
- elseif evt == "player" then
- m.setCursorPos(posx, posy)
- m.setTextColour(coloursM[math.random(1, #coloursM)])
- m.write(player.." says hi!")
- posy = posy + 1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement