Advertisement
NanoBob

nanotech shop

Jun 25th, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. textTable={
  2.   "NanoTech custom programs.",
  3.   "",
  4.   "NanoTech Offers you programs written specificly for you",
  5.   "If you Want a custom program made for you,",
  6.   "please contact our staff when they are ingame"
  7.   "Our staff roster can be found on the monitor left of you",
  8.   "Programs cost different ammounts of money depending ",
  9.   "on the file size of the program",
  10.   "",
  11.   "Costs:",
  12.   "For less than 500 lines costs are $0.50 per line",
  13.   "For above 500 lines costs are $1.00 per line",
  14.   "Anything above 1000 lines will have custom costs.",
  15.  
  16. }
  17.  
  18. m=peripheral.wrap("top")
  19. s=peripheral.wrap("right")
  20. function writeText()
  21.     m.setCursorPos(1,1)
  22.     m.clear()
  23.     m.setTextScale(1)
  24.     --[[nearPlayers=s.getPlayerNames()
  25.     --print(nearPlayers)
  26.     --print(nearPlayers[1])
  27.     if nearPlayers[1]~=nil then
  28.         print(nearPlayers)
  29.         nearPlayers=nearPlayers[1]
  30.         m.write("Hello ")
  31.         m.setTextColor(32)
  32.         m.write(nearPlayers)
  33.         m.setTextColor(1)
  34.     end]]
  35.     for line,text in ipairs(textTable) do
  36.         m.setCursorPos(1,line)
  37.         m.write(text)
  38.     end
  39. end
  40.  
  41. while true do
  42.   writeText()
  43.   sleep(1)
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement