Advertisement
NanoBob

nanotech shop index

Jun 25th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. textTable={
  2.   "NanoTech Floors : ",
  3.   "",
  4.   "Ground Floor :",
  5.   "  Information Floor",
  6.   "Second Floor :",
  7.   "  Craftable Items Sales",
  8.   "Third  Floor :",
  9.   "  Pre-made Programs Sales",  
  10. }
  11.  
  12. m=peripheral.wrap("top")
  13. s=peripheral.wrap("right")
  14. function writeText()
  15.     m.setCursorPos(1,1)
  16.     m.clear()
  17.     m.setTextScale(1)
  18.     --[[nearPlayers=s.getPlayerNames()
  19.     --print(nearPlayers)
  20.     --print(nearPlayers[1])
  21.     if nearPlayers[1]~=nil then
  22.         print(nearPlayers)
  23.         nearPlayers=nearPlayers[1]
  24.         m.write("Hello ")
  25.         m.setTextColor(32)
  26.         m.write(nearPlayers)
  27.         m.setTextColor(1)
  28.     end]]
  29.     for line,text in ipairs(textTable) do
  30.         m.setCursorPos(1,line)
  31.         m.write(text)
  32.     end
  33. end
  34.  
  35. writeText()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement