Scorpionfien

G4 Commands

Jun 23rd, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. -- Tekkit G3 Command Program 0-0-1
  2. -- Works with: Advanced Computer & Monitor
  3. -- Environment Tested: Minecraft 1.6.4 Computer Craft version 1.5
  4. -- Modified By RC-Scorpionfien, Created By Lyqyd
  5. -- Requires TouchPoint API to work, download at pastebin.com/pFHeia96
  6. -- Download this file >> http://www.pastebin.com/6anDmXCC
  7.  
  8. --Loads the API, straightforward
  9. os.loadAPI("touchpoint")
  10.  
  11. --G3 Commands
  12.  
  13. --establish "pages" of buttons
  14. local page1 = touchpoint.new("top")
  15.  
  16. --one variable to put each page into in order to simplify switching
  17. local t
  18.  
  19. --Button Functions
  20.  
  21. function doNothing()
  22. sleep(1)
  23. end
  24.  
  25. function rcMain()
  26. page1:flash("Main")
  27. sleep(1)
  28. shell.run("main")
  29. end
  30.  
  31. function rcBack()
  32. page1:flash("Back")
  33. sleep(1)
  34. shell.run("rcG3")
  35. end
  36.  
  37. function rcRank()
  38. page1:flash("Ranks")
  39. sleep(1)
  40. shell.run("ranks")
  41. end
  42.  
  43. ---Main Menu
  44. function mainTable()
  45. t = page1
  46. end
  47.  
  48. function secTable()
  49. t = page2
  50. end
  51.  
  52. --Set Up Pages
  53. do
  54. page1:add("--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--", doNothing, 1, 1, 60, 1, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  55. page1:add(" _______ ______ _ __ _ __ _____ _______ ", doNothing, 1, 2, 60, 2, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  56. page1:add(" |__ __|| ____|| |/ /| |/ /|_ _||__ __| ", doNothing, 1, 3, 60, 3, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  57. page1:add(" | | | |__ | ' / | ' / | | | | ", doNothing, 1, 4, 60, 4, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  58. page1:add(" | | | __| | < | < | | | | ", doNothing, 1, 5, 60, 5, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  59. page1:add(" | | | |____ | . \\ | . \\ _| |_ | | ", doNothing, 1, 6, 60, 6, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  60. page1:add(" |_| |______||_|\\_\\|_|\\_\\|_____| |_| ", doNothing, 1, 7, 60, 7, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  61. page1:add("--''--''--''--''--''--''--''--''--''--''--''--''--''--''--''--''--", doNothing, 1, 8, 60, 8, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  62. page1:add("RC-Tekkit", doNothing, 1, 9, 60, 9, colors.black, colors.black, colors.magenta, colors.magenta)
  63. page1:add("....................", doNothing, 1, 10, 60, 10, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  64. page1:add("Rank", doNothing, 1, 11, 60, 11, colors.black, colors.black, colors.white, colors.white)
  65. page1:add("G3", doNothing, 1, 12, 60, 12, colors.black, colors.black, colors.cyan, colors.cyan)
  66. page1:add("Access to the Following Commands:", doNothing, 1, 14, 16, 14, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  67. page1:add("Access to All of G1 & G2 &G3 Commands", doNothing, 4, 16, 38, 16, colors.black, colors.black, colors.lightBlue)
  68. page1:add("/skull --Ability Spawn a Players Skull", doNothing, 4, 17, 43, 17, colors.black, colors.black, colors.lightBlue)
  69. page1:add("/tree --Binds Tree Tool to Current Item, /none to Undo", doNothing, 4, 18, 59, 18, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  70. page1:add("/god --Become Impervious to Death!", doNothing, 4, 19, 39, 19, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  71. page1:add("/workbench --Ability to Craft on the Go", doNothing, 4, 20, 44, 20, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  72. page1:add("Back", rcBack, 4, 22, 10, 23, colors.black, colors.lime, colors.white, colors.black)
  73. page1:add("Ranks", rcRank, 14, 22, 20, 23, colors.black, colors.lime, colors.white, colors.black)
  74. page1:add("Main", rcMain, 24, 22, 30, 23, colors.black, colors.lime, colors.white, colors.black)
  75. page1:add("Next", secTable, 34, 22, 40, 23, colors.black, colors.lime, colors.white, colors.black)
  76.  
  77. page2:add("--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--..--", doNothing, 1, 1, 60, 1, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  78. page2:add(" _______ ______ _ __ _ __ _____ _______ ", doNothing, 1, 2, 60, 2, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  79. page2:add(" |__ __|| ____|| |/ /| |/ /|_ _||__ __| ", doNothing, 1, 3, 60, 3, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  80. page2:add(" | | | |__ | ' / | ' / | | | | ", doNothing, 1, 4, 60, 4, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  81. page2:add(" | | | __| | < | < | | | | ", doNothing, 1, 5, 60, 5, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  82. page2:add(" | | | |____ | . \\ | . \\ _| |_ | | ", doNothing, 1, 6, 60, 6, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  83. page2:add(" |_| |______||_|\\_\\|_|\\_\\|_____| |_| ", doNothing, 1, 7, 60, 7, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  84. page2:add("--''--''--''--''--''--''--''--''--''--''--''--''--''--''--''--''--", doNothing, 1, 8, 60, 8, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  85. page2:add("RC-Tekkit", doNothing, 1, 9, 60, 9, colors.black, colors.black, colors.magenta, colors.magenta)
  86. page2:add("....................", doNothing, 1, 10, 60, 10, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  87. page2:add("Rank", doNothing, 1, 11, 60, 11, colors.black, colors.black, colors.white, colors.white)
  88. page2:add("G3", doNothing, 1, 12, 60, 12, colors.black, colors.black, colors.cyan, colors.cyan)
  89. page2:add("Access to the Following Commands:", doNothing, 1, 14, 16, 14, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  90. page2:add("/repair --Repair Everything", doNothing 4, 16, 32, 16, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  91. page2:add("/near --Ability to See Who is Near You", doNothing, 4, 17, 43, 17, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  92. page2:add("Ability to Keep Your Experience when You Die!", doNothing, 4, 18, 50, 18, colors.black, colors.black, colors.lightBlue, colors.lightBlue)
  93. page2:add("Prev", mainTable, 4, 22, 10, 23, colors.black, colors.lime, colors.white, colors.black)
  94. page2:add("Back", rcBack, 14, 22, 20, 23, colors.black, colors.lime, colors.white, colors.black)
  95. page2:add("Ranks", rcRank, 24, 22, 30, 23, colors.black, colors.lime, colors.white, colors.black)
  96. page2:add("Main", rcMain, 34, 22, 40, 23, colors.black, colors.lime, colors.white, colors.black)
  97. end
  98.  
  99. --Starts with the main Table, then checks for buttons clicked, toggles them, and runs the program it has with my modified t:run2()
  100. mainTable()
  101. while true do
  102. t:draw()
  103. -- local event, p1, p2, p3 = os.pullEvent() ---monitor_touch, side, xpos, ypos
  104. local event, p1 = t:handleEvents(os.pullEvent()) ---button_click, name
  105. if event == "button_click" then
  106. --remove toggling and simplify button running
  107. t.buttonList[p1].func()
  108. end
  109. end
Advertisement
Add Comment
Please, Sign In to add comment