Advertisement
Chill_

Untitled

May 24th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  1. loadup = function()
  2. shell.run("pastebin","get","pFHeia96","touchpoint")
  3. os.loadAPI("touchpoint")
  4. end
  5.  
  6. loadup()
  7.  
  8. local t1 = touchpoint.new("top")
  9. local t2 = touchpoint.new("top")
  10. local t3 = touchpoint.new("top")
  11. local t4 = touchpoint.new("top")
  12. local t5 = touchpoint.new("top")
  13. local t6 = touchpoint.new("top")
  14. local interface = peripheral.wrap("left")
  15. local chest = peripheral.wrap("front")
  16. local glassesBridge = peripheral.wrap("right")
  17. local xLeftMin = 2
  18. local xLeftMax = 31
  19. local xRightMin = 55
  20. local xRightMax = 70
  21. local yRow1Min = 2
  22. local yRow1Max = yRow1Min + 2
  23. local yRow2Min = yRow1Min + 3
  24. local yRow2Max = yRow2Min + 2
  25. local yRow3Min = yRow2Min + 3
  26. local yRow3Max = yRow3Min + 2
  27. local yRow4Min = yRow3Min + 3
  28. local yRow4Max = yRow4Min + 2
  29. local yRow5Min = yRow4Min + 3
  30. local yRow5Max = yRow5Min + 2
  31. local yRow6Min = yRow5Min + 3
  32. local yRow6Max = yRow6Min + 2
  33. local yRow7Min = yRow6Min + 3
  34. local yRow7Max = yRow7Min + 2
  35. local xBackMin = 60
  36. local xBackMax = 67
  37. local yBackMin = 22
  38. local yBackMax = 24
  39.  
  40.  
  41. local t
  42.  
  43. function emptytext()
  44. end
  45.  
  46. function mainMenu()
  47. t = t1
  48. end
  49.  
  50. function circlesMenu()
  51. t = t2
  52. end
  53.  
  54. function attunedStoneMenu()
  55. t = t3
  56. end
  57.  
  58. function otcFamiliarMenu()
  59. t = t4
  60. end
  61.  
  62. function necromanticStoneMenu()
  63. t = t5
  64. end
  65.  
  66. function riteOfChargingPlayer()
  67. t = t6
  68. end
  69.  
  70.  
  71.  
  72.  
  73.  
  74. function orderItem(ID,DMG,amount)
  75. local fingerprint = {id=ID,dmg = DMG}
  76. itemBasic = interface.getItemDetail(fingerprint).basic()
  77.  
  78. if(itemBasic.qty == 0) then
  79. interface.requestCrafting(itemBasic,amount)
  80. sleep(3)
  81. interface.exportItem(fingerprint,6,amount)
  82. chest.pullItem(4,1)
  83. else
  84. interface.exportItem(fingerprint,6,amount)
  85. chest.pullItem(4,1)
  86. end
  87.  
  88. end
  89.  
  90. function orderAttunedStoneCharged()
  91. orderItem("witchery:ingredient",10,1)
  92. orderItem("minecraft:glowstone_dust",0,1)
  93. orderItem("minecraft:redstone",0,1)
  94. orderItem("witchery:ingredient",18,1)
  95. orderItem("witchery:ingredient",16,1)
  96. end
  97.  
  98. function orderOTCFamiliar()
  99. orderItem("witchery:ingredient",37,1)
  100. orderItem("witchery:ingredient",36,1)
  101. orderItem("witchery:ingredient",34,1)
  102. orderItem("minecraft:diamond",0,1)
  103. orderItem("witchery:ingredient",80,1)
  104. end
  105.  
  106. function orderNecromancyStone()
  107. orderItem("witchery:ingredient",10,1)
  108. orderItem("minecraft:bone",0,1)
  109. orderItem("minecraft:rotten_flesh",0,1)
  110. orderItem("witchery:ingredient",18,1)
  111. orderItem("minecraft:iron_sword",0,1)
  112. orderItem("witchery:ingredient",66,1)
  113. end
  114.  
  115. function orderRiteOfChargingPlayer()
  116. orderItem("minecraft:potion",8193,1)
  117. end
  118.  
  119. do
  120. t1:add("Circles",circlesMenu,xLeftMin,2,xLeftMax,4)
  121.  
  122. t2:add("Attuned Stone(Charged)",attunedStoneMenu,xLeftMin,2,xLeftMax,4)
  123. t2:add("Owl, Toad, Cat Familiar",otcFamiliarMenu,xLeftMin,6,xLeftMax,8)
  124. t2:add("Necromantic Stone",necromanticStoneMenu,xLeftMin,10,xLeftMax,12)
  125. t2:add("Charge Player",riteOfChargingPlayer,xLeftMin,14,xLeftMax,16)
  126. t2:add("Back",mainMenu,xBackMin,yBackMin,xBackMax,yBackMax)
  127.  
  128. t3:add("Materials",emptytext,xLeftMin,yRow1Min,xLeftMax,yRow1Max)
  129. t3:add("Attuned Stone",emptytext,xLeftMin,yRow2Min,xLeftMax,yRow2Max)
  130. t3:add("Glowstone Dust",emptytext,xLeftMin,yRow3Min,xLeftMax,yRow3Max)
  131. t3:add("Redstone",emptytext,xLeftMin,yRow4Min,xLeftMax,yRow4Max)
  132. t3:add("Wood Ash",emptytext,xLeftMin,yRow5Min,xLeftMax,yRow5Max)
  133. t3:add("Quicklime",emptytext,xLeftMin,yRow6Min,xLeftMax,yRow6Max)
  134. t3:add("Circle",emptytext,xRightMin,yRow1Min,xRightMax,yRow1Max)
  135. t3:add("7x7 & 11x11",emptytext,xRightMin,yRow2Min,xRightMax,yRow2Max)
  136. t3:add("White & White",emptytext,xRightMin,yRow3Min,xRightMax,yRow3Max)
  137. t3:add("Order Materials",orderAttunedStoneCharged,xRightMin,yRow4Min+1,xRightMax,yRow4Max+1)
  138. t3:add("Back",circlesMenu,xBackMin,yBackMin,xBackMax,yBackMax)
  139.  
  140. t4:add("Materials",emptytext,xLeftMin,yRow1Min,xLeftMax,yRow1Max)
  141. t4:add("Tear of the Goddess",emptytext,xLeftMin,yRow2Min,xLeftMax,yRow2Max)
  142. t4:add("Odour of Purity",emptytext,xLeftMin,yRow3Min,xLeftMax,yRow3Max)
  143. t4:add("Whiff of Magic",emptytext,xLeftMin,yRow4Min,xLeftMax,yRow4Max)
  144. t4:add("Diamond",emptytext,xLeftMin,yRow5Min,xLeftMax,yRow5Max)
  145. t4:add("Demonic Blood",emptytext,xLeftMin,yRow6Min,xLeftMax,yRow6Max)
  146. t4:add("Circle",emptytext,xRightMin,yRow1Min,xRightMax,yRow1Max)
  147. t4:add("11x11",emptytext,xRightMin,yRow2Min,xRightMax,yRow2Max)
  148. t4:add("White",emptytext,xRightMin,yRow3Min,xRightMax,yRow3Max)
  149. t4:add("Order Materials",orderOTCFamiliar,xRightMin,yRow4Min+1,xRightMax,yRow4Max+1)
  150. t4:add("Back",circlesMenu,xBackMin,yBackMin,xBackMax,yBackMax)
  151.  
  152. t5:add("Materials",emptytext,xLeftMin,yRow1Min,xLeftMax,yRow1Max)
  153. t5:add("Attuned Stone",emptytext,xLeftMin,yRow2Min,xLeftMax,yRow2Max)
  154. t5:add("Bone",emptytext,xLeftMin,yRow3Min,xLeftMax,yRow3Max)
  155. t5:add("Rotten Flesh",emptytext,xLeftMin,yRow4Min,xLeftMax,yRow4Max)
  156. t5:add("Wood Ash",emptytext,xLeftMin,yRow5Min,xLeftMax,yRow5Max)
  157. t5:add("Iron Sword",emptytext,xLeftMin,yRow6Min,xLeftMax,yRow6Max)
  158. t5:add("Spectral Dust",emptytext,xLeftMin,yRow7Min,xLeftMax,yRow7Max)
  159. t5:add("Circle",emptytext,xRightMin,yRow1Min,xRightMax,yRow1Max)
  160. t5:add("7x7",emptytext,xRightMin,yRow2Min,xRightMax,yRow2Max)
  161. t5:add("White",emptytext,xRightMin,yRow3Min,xRightMax,yRow3Max)
  162. t5:add("Order Materials",orderNecromancticStone,xRightMin,yRow4Min+1,xRightMax,yRow4Max+1)
  163. t5:add("Back",circlesMenu,xBackMin,yBackMin,xBackMax,yBackMax)
  164.  
  165. t6:add("Materials",emptytext,xLeftMin,yRow1Min,xLeftMax,yRow1Max)
  166. t6:add("Potion of Regeneration(0:45)",emptytext,xLeftMin,yRow2Min,xLeftMax,yRow2Max)
  167. t6:add("Circle",emptytext,xRightMin,yRow1Min,xRightMax,yRow1Max)
  168. t6:add("7x7 & 11x11",emptytext,xRightMin,yRow2Min,xRightMax,yRow2Max)
  169. t6:add("White & White",emptytext,xRightMin,yRow3Min,xRightMax,yRow3Max)
  170. t6:add("Order Materials",orderAttunedStoneCharged,xRightMin,yRow4Min+1,xRightMax,yRow4Max+1)
  171. t6:add("Back",circlesMenu,xBackMin,yBackMin,xBackMax,xBackMax)
  172.  
  173.  
  174.  
  175. end
  176.  
  177. mainMenu()
  178. while true do
  179. t:draw()
  180. local event,p1 = t:handleEvents(os.pullEvent())
  181. if event == "button_click" then
  182. t.buttonList[p1].func()
  183. end
  184. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement