Advertisement
Guest User

print

a guest
Nov 25th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | None | 0 0
  1. colours = { colours.red, colours.orange, colours.yellow, colours.green, colours.cyan, colours.blue, colours.pink, colours.purple }
  2. c = peripheral.wrap("bottom")
  3. m = peripheral.wrap("right")
  4. m.clear()
  5. m.setCursorPos(1, 1)
  6. fraze = " IS PARTAY-ING HARD!"
  7. posx = 1
  8. posy = 1
  9. colour = 1
  10. m.setBackgroundColour(1)
  11. m.clear()
  12. coloursM = { 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768 }
  13. while true do
  14.   if posy > 26 then
  15.     posy = 1
  16.     m.clear()
  17.   end
  18.  
  19.   --if colour > 8 then
  20.   --  colour = 1
  21.   --end
  22.   --m.setTextColour(colours[colour])
  23.   --colour = colour + 1
  24.   evt, player, mess = os.pullEvent()
  25.   if evt == "chat" then
  26.   if player == "Darth_Ben17" then
  27.     col = 512
  28.     player = "Darth"
  29.   elseif player == "MrBlueCreepers" then
  30.     col = 2048
  31.     player = "MrBlue"
  32.   elseif player == "TheNinjaGraffe" then
  33.     col = 1024
  34.     player = "Giraffi"
  35.   elseif player == "skrymir69" then
  36.     col = 2
  37.   elseif player == "bobin01" then
  38.     col = 16384
  39.     player = "Bob"
  40.   elseif player == "iParmetries" then
  41.     col = 1024
  42.     player = "Parmigiana"
  43.   elseif player == "NikleKing" then
  44.     col = 32
  45.     player = "PickleKing"
  46.   elseif player == "CivicCoin2608" then
  47.     col = 32
  48.     player = "Gymph"
  49.   elseif player == "BlueCreeper600" then
  50.     col = 2
  51.     player = "Imposter"
  52.   elseif player == "FishFinger360" then
  53.     col = 128
  54.     player = "Fishy"
  55.   elseif player == "funkeymonkey9899" then
  56.     col = 2
  57.     player = "Funk"
  58.   elseif player == "Archmagius" then
  59.     col = 4
  60.     player = "Archy-Warchy"
  61.   elseif player == "Darkarms420" then
  62.     col = 10
  63.     player = "DarkArms"
  64.     --mess = " "    
  65.   else
  66.     col = 32768
  67.   end
  68.   if mess == "badass pancakes" then
  69.     m.setTextColour(2)
  70.     m.setCursorPos(posx, posy)
  71.     m.write(player)
  72.     m.write(fraze)
  73.     posy = posy + 1
  74.   end
  75.    
  76.   m.setTextColour(col)
  77.  
  78.   m.setCursorPos(posx, posy)
  79.   m.write(player..": "..mess)
  80.  
  81.   posy = + 1
  82.   elseif evt == "player" then
  83.     m.setCursorPos(posx, posy)
  84.     m.setTextColour(coloursM[math.random(1, #coloursM)])
  85.     m.write(player.." says hi!")
  86.     posy = posy + 1
  87.   end
  88. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement