Advertisement
Guest User

wel

a guest
May 22nd, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. mon = peripheral.wrap("top") --Screen Side
  2. mon.setTextScale(2)           --Text Size
  3. strtpos = 24                 --Start position on screen
  4. speed = 0.2                   --Scroll Speed (Seconds)
  5. text1 = "Welcome to Infinity USA. Please type /rules for more information"    --Displayed Text
  6. text2 = "Claims!, ctrl+ click on the link for help when it comes up"
  7. text3 = "Market and market spots at market warp."
  8. text4 = "1"
  9. text5 = "2"
  10. text6 = "3"
  11. text7 = "4"
  12.  
  13. pos = strtpos
  14. poslimit = -24 - strtpos
  15.  
  16. while true do
  17.  mon.setBackgroundColor(colors.white)
  18.  mon.setTextColor(colors.blue)
  19.  mon.setCursorPos(pos, 1)
  20.  mon.write(text1)
  21.  mon.setCursorPos(pos, 2)
  22.  mon.write(text2)
  23.  mon.setCursorPos(pos, 3)
  24.  mon.write(text3)
  25.  sleep(speed)
  26.  mon.clear()
  27.  
  28.  if pos == poslimit then
  29.   pos = strtpos
  30.  else
  31.   pos = pos - 1
  32.  end
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement