Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Schreibgeschuetzt :P
- --ö
- shell.run("delete ecco")
- shell.run("pastebin get t4WJV7fp ecco")
- shell.run("pastebin get USRY4qQU email")
- shell.run("delete bild")
- shell.run("pastebin get dzeTw5Qs bild")
- shell.run("delete terraria")
- shell.run("pastebin get 9Pit75eD terraria")
- shell.run("rm startup")
- shell.run("pastebin get h5ScYTtk startup")
- term.setBackgroundColor(colors.black)
- function wrap(peripName)
- sides={"top","bottom","back","front","left","right"}
- for i=1,6 do
- if peripheral.getType(sides[i]) == periName then
- return peripheral.wrap(sides[i])
- end
- end
- end
- m=wrap("monitor")
- c=wrap("chat")
- s=wrap("speaker")
- p=wrap("printer")
- t=wrap("terminal_glasses_bridge")
- com=wrap("computer")
- mod=wrap("modem")
- n=wrap("note")
- player=wrap("player")
- sides={"top","bottom","back","front","left","right"}
- for i=1,6 do
- if peripheral.getType(sides[i]) == "monitor" then
- m=peripheral.wrap(sides[i])
- end
- end
- term.clear()
- m.setCursorPos(1,1)
- --print("Spiel ecco-Clicker")
- m.setTextColor(colors.orange)
- print("Spiel ecco-Clicker")
- m.setTextColor(colors.white)
- --print("euch im schlaf.")
- bild=paintutils.loadImage("ecco")
- paintutils.drawImage(bild,1,3)
- function Clicker()
- m.write(count)
- m.setCursorPos(1,2)
- m.write("Clicks:")
- while true do
- event, side, xPos, yPos = os.pullEvent("monitor_touch")
- m.setCursorPos(8,2)
- m.write(count)
- count=count+1
- end
- end
- function Terraria()
- shell.run("terraria")
- end
- --Speicherabfrage
- if fs.exists("ClickerCount")==false then
- h=fs.open("ClickerCount","w")
- h.writeLine("1")
- h.close()
- end
- h=fs.open("ClickerCount","r")
- ccount=h.readLine()
- h.close()
- --http.post("http://5.230.146.116/eccoclicker.php?ID="..os.getComputerID().."&Label="..os.getComputerLabel().."&Clicks="..ccount)
- term.setBackgroundColor(colors.black)
- m.setCursorPos(8,2)
- m.write(ccount)
- m.setCursorPos(1,2)
- m.write("Clicks:")
- function main()
- while true do
- event, side, xPos, yPos = os.pullEvent("monitor_touch")
- if event=="monitor_touch" then
- ccount=ccount+1
- m.setCursorPos(8,2)
- m.write(ccount)
- h=fs.open("ClickerCount","w")
- h.writeLine(ccount)
- h.writeLine("--ä")
- h.close()
- if math.fmod(ccount,100)==0 then
- --http.post("http://5.230.146.116/eccoclicker.php?ID="..os.getComputerID().."&Label="..os.getComputerLabel().."&Clicks="..ccount)
- if p~=nil then end
- end
- end
- end
- end--main ende
- function bing()
- while true do
- search(io.read(),5)
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement