Advertisement
Inkkubus

test1

Jul 17th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4.  
  5. id1 = 0
  6. id2 = 0
  7. id3 = 0
  8. id4 = 0
  9. id5 = 0
  10. id6 = 0
  11. id7 = 0
  12. id8 = 0
  13. id9 = 0
  14. id10 = 0
  15. id11 = 0
  16. id12 = 0
  17. id13 = 0
  18. id14 = 0
  19. id15 = 0
  20. id16 = 0
  21. id17 = 0
  22. id18 = 0
  23. id19 = 0
  24. id20 = 0
  25. id21 = 0
  26. id22 = 0
  27. id23 = 0
  28. id24 = 0
  29. id25 = 0
  30. id26 = 0
  31. id27 = 0
  32. id28 = 0
  33. id29 = 0
  34. id30 = 0
  35. id31 = 0
  36. id32 = 0
  37. id33 = 0
  38. id34 = 0
  39. id35 = 0
  40. id36 = 0
  41. id37 = 0
  42. id38 = 0
  43. id39 = 0
  44. id40 = 0
  45.  
  46. -- funktion zum schreiben der konstanten variablen
  47.  
  48. function _idspeicher
  49. config = fs.open ("id_variablen" , "w" )
  50. config.writeLine("".. id1)
  51. config.writeLine("".. id2)
  52. config.writeLine("".. id3)
  53. config.writeLine("".. id4)
  54. config.writeLine("".. id5)
  55. config.writeLine("".. id6)
  56. config.writeLine("".. id7)
  57. config.writeLine("".. id8)
  58. config.writeLine("".. id9)
  59. config.writeLine("".. id10)
  60. config.writeLine("".. id11)
  61. config.writeLine("".. id12)
  62. config.writeLine("".. id13)
  63. config.writeLine("".. id14)
  64. config.writeLine("".. id15)
  65. config.writeLine("".. id16)
  66. config.writeLine("".. id17)
  67. config.writeLine("".. id18)
  68. config.writeLine("".. id19)
  69. config.writeLine("".. id21)
  70. config.writeLine("".. id22)
  71. config.writeLine("".. id23)
  72. config.writeLine("".. id24)
  73. config.writeLine("".. id25)
  74. config.writeLine("".. id26)
  75. config.writeLine("".. id27)
  76. config.writeLine("".. id28)
  77. config.writeLine("".. id29)
  78. config.writeLine("".. id30)
  79. config.writeLine("".. id31)
  80. config.writeLine("".. id32)
  81. config.writeLine("".. id33)
  82. config.writeLine("".. id34)
  83. config.writeLine("".. id35)
  84. config.writeLine("".. id36)
  85. config.writeLine("".. id37)
  86. config.writeLine("".. id38)
  87. config.writeLine("".. id40)
  88. config.close()
  89. function()
  90. end
  91.  
  92. -- funktion zum auslesen der konstanten variablen
  93.  
  94. function _idlesen
  95. config = fs.open ("id_variablen" , "r" )
  96. config.readLine("".. id1)
  97. config.readLine("".. id2)
  98. config.readLine("".. id3)
  99. config.readLine("".. id4)
  100. config.readLine("".. id5)
  101. config.readLine("".. id6)
  102. config.readLine("".. id7)
  103. config.readLine("".. id8)
  104. config.readLine("".. id9)
  105. config.readLine("".. id10)
  106. config.readLine("".. id11)
  107. config.readLine("".. id12)
  108. config.readLine("".. id13)
  109. config.readLine("".. id14)
  110. config.readLine("".. id15)
  111. config.readLine("".. id16)
  112. config.readLine("".. id17)
  113. config.readLine("".. id18)
  114. config.readLine("".. id19)
  115. config.readLine("".. id21)
  116. config.readLine("".. id22)
  117. config.readLine("".. id23)
  118. config.readLine("".. id24)
  119. config.readLine("".. id25)
  120. config.readLine("".. id26)
  121. config.readLine("".. id27)
  122. config.readLine("".. id28)
  123. config.readLine("".. id29)
  124. config.readLine("".. id30)
  125. config.readLine("".. id31)
  126. config.readLine("".. id32)
  127. config.readLine("".. id33)
  128. config.readLine("".. id34)
  129. config.readLine("".. id35)
  130. config.readLine("".. id36)
  131. config.readLine("".. id37)
  132. config.readLine("".. id38)
  133. config.readLine("".. id40)
  134. config.close()
  135. function()
  136. end
  137.  
  138. --Anfang ID abfrage
  139.  
  140. print ("Auf I von ID klicken")
  141. print ("Bitte ID auswählen:")
  142. print ("ID1 - ID2")
  143. print ("ID3 - ID4")
  144. print ("ID5 - ID6")
  145. print ("ID7 - ID8")
  146. print ("ID9 - ID10")
  147. print ("ID11 - ID12")
  148. print ("ID13 - ID14")
  149. print ("ID15 - ID16")
  150. print ("ID17 - ID18")
  151. print ("ID19 - ID20")
  152. print ("ID21 - ID22")
  153. print ("ID23 - ID24")
  154. print ("ID25 - ID26")
  155. print ("ID27 - ID28")
  156. print ("ID29 - ID30")
  157. print ("ID31 - ID32")
  158. print ("ID33 - ID34")
  159. print ("ID35 - ID36")
  160. print ("ID37 - ID38")
  161. print ("ID39 - ID40")
  162.  
  163. while true do
  164. local event, button, X, Y = os.pullEvent("mouse_click")
  165.  
  166. if X == 1 and Y == 3 and button == 1 then
  167. shell.run("pw1")
  168. break
  169. end
  170.  
  171. if X == 15 and Y == 3 and button == 1 then
  172. break
  173. end
  174.  
  175. if X == 1 and Y == 4 and button == 1 then
  176. break
  177. end
  178.  
  179. if X == 15 and Y == 4 and button == 1 then
  180. break
  181. end
  182.  
  183. if X == 1 and Y == 5 and button == 1 then
  184. break
  185. end
  186.  
  187. if X == 15 and Y == 5 and button == 1 then
  188. break
  189. end
  190.  
  191. if X == 1 and Y == 6 and button == 1 then
  192. break
  193. end
  194.  
  195. if X == 15 and Y == 6 and button == 1 then
  196. break
  197. end
  198.  
  199. if X == 1 and Y == 7 and button == 1 then
  200. break
  201. end
  202.  
  203. if X == 15 and Y == 7 and button == 1 then
  204. break
  205. end
  206.  
  207. if X == 1 and Y == 8 and button == 1 then
  208. break
  209. end
  210.  
  211. if X == 15 and Y == 8 and button == 1 then
  212. break
  213. end
  214.  
  215. if X == 1 and Y == 9 and button == 1 then
  216. break
  217. end
  218.  
  219. if X == 15 and Y == 9 and button == 1 then
  220. break
  221. end
  222.  
  223. if X == 1 and Y == 10 and button == 1 then
  224. break
  225. end
  226.  
  227. if X == 15 and Y == 10 and button == 1 then
  228. break
  229. end
  230.  
  231. if X == 1 and Y == 11 and button == 1 then
  232. break
  233. end
  234.  
  235. if X == 15 and Y == 11 and button == 1 then
  236. break
  237. end
  238.  
  239. if X == 1 and Y == 12 and button == 1 then
  240. break
  241. end
  242.  
  243. if X == 15 and Y == 12 and button == 1 then
  244. break
  245. end
  246.  
  247. if X == 1 and Y == 13 and button == 1 then
  248. break
  249. end
  250.  
  251. if X == 15 and Y == 13 and button == 1 then
  252. break
  253. end
  254.  
  255. if X == 1 and Y == 14 and button == 1 then
  256. break
  257. end
  258.  
  259. if X == 15 and Y == 14 and button == 1 then
  260. break
  261. end
  262.  
  263. if X == 1 and Y == 15 and button == 1 then
  264. break
  265. end
  266.  
  267. if X == 15 and Y == 15 and button == 1 then
  268. break
  269. end
  270.  
  271. if X == 1 and Y == 16 and button == 1 then
  272. break
  273. end
  274.  
  275. if X == 15 and Y == 16 and button == 1 then
  276. break
  277. end
  278.  
  279. if X == 1 and Y == 17 and button == 1 then
  280. break
  281. end
  282.  
  283. if X == 15 and Y == 17 and button == 1 then
  284. break
  285. end
  286.  
  287. if X == 1 and Y == 18 and button == 1 then
  288. break
  289. end
  290.  
  291. if X == 15 and Y == 18 and button == 1 then
  292. break
  293. end
  294.  
  295. if X == 1 and Y == 19 and button == 1 then
  296. break
  297. end
  298.  
  299. if X == 15 and Y == 19 and button == 1 then
  300. break
  301. end
  302.  
  303. if X == 1 and Y == 20 and button == 1 then
  304. break
  305. end
  306.  
  307. if X == 15 and Y == 20 and button == 1 then
  308. break
  309. end
  310.  
  311. if X == 1 and Y == 21 and button == 1 then
  312. break
  313. end
  314.  
  315. if X == 15 and Y == 21 and button == 1 then
  316. break
  317. end
  318.  
  319. if X == 1 and Y == 22 and button == 1 then
  320. break
  321. end
  322.  
  323. if X == 15 and Y == 22 and button == 1 then
  324. break
  325. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement