Advertisement
JasonMcRay

Untitled

Feb 18th, 2014
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. m = peripheral.wrap("top")
  2. m.clear()
  3. m.setCursorPos(1,1)
  4.  
  5. local function centerText(text)
  6. x,y = m.getSize()
  7. x1,y1 = m.getCursorPos()
  8. m.setCursorPos((math.floor(x/2) - (math.floor(#text/2))), y1)
  9. m.write(text)
  10. end
  11.  
  12. m.setTextColor(colors.red)
  13. centerText("How to use Chest Shops!")
  14. m.setCursorPos(1, 3)
  15. m.setTextColor(colors.white)
  16. centerText("Left Mouse Button = Sell")
  17. m.setCursorPos(1, 4)
  18. centerText("Right Mouse Button = Buy")
  19. m.setCursorPos(1, 7)
  20. m.setTextColor(colors.red)
  21. centerText("What all the lines on sign means?")
  22. m.setCursorPos(1, 9)
  23. m.setTextColor(colors.white)
  24. centerText("{Owner}")
  25. m.setCursorPos(1, 10)
  26. centerText("{Number of Items}")
  27. m.setCursorPos(1, 11)
  28. centerText("B x = Buy from {Owner} for x$; S x = Sell to {Owner} for x$")
  29. m.setCursorPos(1, 12)
  30. centerText("{Name of item (xID)}")
  31. m.setCursorPos(1, 15)
  32. m.setTextColor(colors.red)
  33. centerText("To set your own Chest Shop:")
  34. m.setCursorPos(1, 17)
  35. m.setTextColor(colors.white)
  36. centerText("Put a sign above wooden chest")
  37. m.setCursorPos(1, 18)
  38. centerText("Leave first line on the sign empty")
  39. m.setCursorPos(1, 19)
  40. centerText("And fill the 2nd,3rd and 4th line")
  41. m.setCursorPos(1, 13)
  42. m.setTextColor(colors.lime)
  43. centerText("xID = ID of non-vanilla item")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement