Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- id1 = 0
- id2 = 0
- id3 = 0
- id4 = 0
- id5 = 0
- id6 = 0
- id7 = 0
- id8 = 0
- id9 = 0
- id10 = 0
- id11 = 0
- id12 = 0
- id13 = 0
- id14 = 0
- id15 = 0
- id16 = 0
- id17 = 0
- id18 = 0
- id19 = 0
- id20 = 0
- id21 = 0
- id22 = 0
- id23 = 0
- id24 = 0
- id25 = 0
- id26 = 0
- id27 = 0
- id28 = 0
- id29 = 0
- id30 = 0
- id31 = 0
- id32 = 0
- id33 = 0
- id34 = 0
- id35 = 0
- id36 = 0
- id37 = 0
- id38 = 0
- id39 = 0
- id40 = 0
- -- funktion zum schreiben der konstanten variablen
- function _idspeicher
- config = fs.open ("id_variablen" , "w" )
- config.writeLine("".. id1)
- config.writeLine("".. id2)
- config.writeLine("".. id3)
- config.writeLine("".. id4)
- config.writeLine("".. id5)
- config.writeLine("".. id6)
- config.writeLine("".. id7)
- config.writeLine("".. id8)
- config.writeLine("".. id9)
- config.writeLine("".. id10)
- config.writeLine("".. id11)
- config.writeLine("".. id12)
- config.writeLine("".. id13)
- config.writeLine("".. id14)
- config.writeLine("".. id15)
- config.writeLine("".. id16)
- config.writeLine("".. id17)
- config.writeLine("".. id18)
- config.writeLine("".. id19)
- config.writeLine("".. id21)
- config.writeLine("".. id22)
- config.writeLine("".. id23)
- config.writeLine("".. id24)
- config.writeLine("".. id25)
- config.writeLine("".. id26)
- config.writeLine("".. id27)
- config.writeLine("".. id28)
- config.writeLine("".. id29)
- config.writeLine("".. id30)
- config.writeLine("".. id31)
- config.writeLine("".. id32)
- config.writeLine("".. id33)
- config.writeLine("".. id34)
- config.writeLine("".. id35)
- config.writeLine("".. id36)
- config.writeLine("".. id37)
- config.writeLine("".. id38)
- config.writeLine("".. id40)
- config.close()
- function()
- end
- -- funktion zum auslesen der konstanten variablen
- function _idlesen
- config = fs.open ("id_variablen" , "r" )
- config.readLine("".. id1)
- config.readLine("".. id2)
- config.readLine("".. id3)
- config.readLine("".. id4)
- config.readLine("".. id5)
- config.readLine("".. id6)
- config.readLine("".. id7)
- config.readLine("".. id8)
- config.readLine("".. id9)
- config.readLine("".. id10)
- config.readLine("".. id11)
- config.readLine("".. id12)
- config.readLine("".. id13)
- config.readLine("".. id14)
- config.readLine("".. id15)
- config.readLine("".. id16)
- config.readLine("".. id17)
- config.readLine("".. id18)
- config.readLine("".. id19)
- config.readLine("".. id21)
- config.readLine("".. id22)
- config.readLine("".. id23)
- config.readLine("".. id24)
- config.readLine("".. id25)
- config.readLine("".. id26)
- config.readLine("".. id27)
- config.readLine("".. id28)
- config.readLine("".. id29)
- config.readLine("".. id30)
- config.readLine("".. id31)
- config.readLine("".. id32)
- config.readLine("".. id33)
- config.readLine("".. id34)
- config.readLine("".. id35)
- config.readLine("".. id36)
- config.readLine("".. id37)
- config.readLine("".. id38)
- config.readLine("".. id40)
- config.close()
- function()
- end
- --Anfang ID abfrage
- print ("Auf I von ID klicken")
- print ("Bitte ID auswählen:")
- print ("ID1 - ID2")
- print ("ID3 - ID4")
- print ("ID5 - ID6")
- print ("ID7 - ID8")
- print ("ID9 - ID10")
- print ("ID11 - ID12")
- print ("ID13 - ID14")
- print ("ID15 - ID16")
- print ("ID17 - ID18")
- print ("ID19 - ID20")
- print ("ID21 - ID22")
- print ("ID23 - ID24")
- print ("ID25 - ID26")
- print ("ID27 - ID28")
- print ("ID29 - ID30")
- print ("ID31 - ID32")
- print ("ID33 - ID34")
- print ("ID35 - ID36")
- print ("ID37 - ID38")
- print ("ID39 - ID40")
- while true do
- local event, button, X, Y = os.pullEvent("mouse_click")
- if X == 1 and Y == 3 and button == 1 then
- shell.run("pw1")
- break
- end
- if X == 15 and Y == 3 and button == 1 then
- break
- end
- if X == 1 and Y == 4 and button == 1 then
- break
- end
- if X == 15 and Y == 4 and button == 1 then
- break
- end
- if X == 1 and Y == 5 and button == 1 then
- break
- end
- if X == 15 and Y == 5 and button == 1 then
- break
- end
- if X == 1 and Y == 6 and button == 1 then
- break
- end
- if X == 15 and Y == 6 and button == 1 then
- break
- end
- if X == 1 and Y == 7 and button == 1 then
- break
- end
- if X == 15 and Y == 7 and button == 1 then
- break
- end
- if X == 1 and Y == 8 and button == 1 then
- break
- end
- if X == 15 and Y == 8 and button == 1 then
- break
- end
- if X == 1 and Y == 9 and button == 1 then
- break
- end
- if X == 15 and Y == 9 and button == 1 then
- break
- end
- if X == 1 and Y == 10 and button == 1 then
- break
- end
- if X == 15 and Y == 10 and button == 1 then
- break
- end
- if X == 1 and Y == 11 and button == 1 then
- break
- end
- if X == 15 and Y == 11 and button == 1 then
- break
- end
- if X == 1 and Y == 12 and button == 1 then
- break
- end
- if X == 15 and Y == 12 and button == 1 then
- break
- end
- if X == 1 and Y == 13 and button == 1 then
- break
- end
- if X == 15 and Y == 13 and button == 1 then
- break
- end
- if X == 1 and Y == 14 and button == 1 then
- break
- end
- if X == 15 and Y == 14 and button == 1 then
- break
- end
- if X == 1 and Y == 15 and button == 1 then
- break
- end
- if X == 15 and Y == 15 and button == 1 then
- break
- end
- if X == 1 and Y == 16 and button == 1 then
- break
- end
- if X == 15 and Y == 16 and button == 1 then
- break
- end
- if X == 1 and Y == 17 and button == 1 then
- break
- end
- if X == 15 and Y == 17 and button == 1 then
- break
- end
- if X == 1 and Y == 18 and button == 1 then
- break
- end
- if X == 15 and Y == 18 and button == 1 then
- break
- end
- if X == 1 and Y == 19 and button == 1 then
- break
- end
- if X == 15 and Y == 19 and button == 1 then
- break
- end
- if X == 1 and Y == 20 and button == 1 then
- break
- end
- if X == 15 and Y == 20 and button == 1 then
- break
- end
- if X == 1 and Y == 21 and button == 1 then
- break
- end
- if X == 15 and Y == 21 and button == 1 then
- break
- end
- if X == 1 and Y == 22 and button == 1 then
- break
- end
- if X == 15 and Y == 22 and button == 1 then
- break
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement